From 241236f17ccf298c3b7eeaccbd310e12f3f57897 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Pouiller?= Date: Tue, 29 Oct 2024 13:49:09 +0100 Subject: [PATCH] github: workflows: Add test for flash driver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Jérôme Pouiller Signed-off-by: Martin Hoff --- .github/workflows/build.yml | 6 +++++ .github/workflows/upstream-build.yml | 6 +++++ .../common/boards/siwx917_rb4338a.overlay | 22 +++++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 tests/drivers/flash/common/boards/siwx917_rb4338a.overlay diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c704560..399254a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/.github/workflows/upstream-build.yml b/.github/workflows/upstream-build.yml index 426eade..8bea405 100644 --- a/.github/workflows/upstream-build.yml +++ b/.github/workflows/upstream-build.yml @@ -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 diff --git a/tests/drivers/flash/common/boards/siwx917_rb4338a.overlay b/tests/drivers/flash/common/boards/siwx917_rb4338a.overlay new file mode 100644 index 0000000..ae5d652 --- /dev/null +++ b/tests/drivers/flash/common/boards/siwx917_rb4338a.overlay @@ -0,0 +1,22 @@ +/* + * 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)>; + }; + }; +};