Skip to content

Commit

Permalink
github: workflows: Add test for flash driver
Browse files Browse the repository at this point in the history
Allow CI to build tests concerning flash driver.
Extra-arg in the twister command line (DTC_OVERLAY_FILE) allows
to have the .overlay file in zephyr-silabs repository and not in the
official zephyr repository.

Co-authored-by: Martin Hoff <[email protected]>

Signed-off-by: Jérôme Pouiller <[email protected]>
Signed-off-by: Martin Hoff <[email protected]>
  • Loading branch information
jerome-pouiller authored and Martinhoff-maker committed Nov 19, 2024
1 parent b34af0e commit 0712e79
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ jobs:
run: |
west twister -s drivers.entropy -p siwx917_rb4338a -v --inline-logs
- name: Build Flash test
working-directory: zephyr-silabs
shell: bash
run: |
west twister -s drivers.flash.common.default -p siwx917_rb4338a -x DTC_OVERLAY_FILE=$(pwd)/tests/drivers/flash/common/boards/siwx917_rb4338a.overlay -v --inline-logs
- name: Build Bluetooth samples
working-directory: zephyr-silabs
shell: bash
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/upstream-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ jobs:
run: |
west twister -s drivers.entropy -p siwx917_rb4338a -v --inline-logs -K
- name: Build Flash test
working-directory: zephyr-silabs
shell: bash
run: |
west twister -s drivers.flash.common.default -p siwx917_rb4338a -x DTC_OVERLAY_FILE=$(pwd)/tests/drivers/flash/common/boards/siwx917_rb4338a.overlay -v --inline-logs
- name: Build Bluetooth samples
working-directory: zephyr-silabs
shell: bash
Expand Down
23 changes: 23 additions & 0 deletions tests/drivers/flash/common/boards/siwx917_rb4338a.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
* Copyright (c) 2024 Silicon Laboratories Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/

&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

code_partition: partition@0 {
label = "code_partition";
reg = <0x0000000 DT_SIZE_K(2048-8-16)>;
};
storage_partition: partition@1FA000 {
label = "storage";
reg = <0x01FA000 DT_SIZE_K(16)>;
};
};
};

0 comments on commit 0712e79

Please sign in to comment.