Skip to content

Commit c58ca61

Browse files
galaknashif
authored andcommitted
samples: flash_shell: Enable on all platforms with a flash driver
Try and build the flash_shell on all platforms that have a flash driver rather than a limited set of know platforms. This hopefully acts as a build coverage test for all the flash drivers. The flash shell requires around 10K of memory so limit it to systems with 12K or more. Signed-off-by: Kumar Gala <[email protected]>
1 parent 0e42d48 commit c58ca61

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Copyright (c) 2020, Linaro Ltd.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
source "Kconfig.zephyr"
5+
6+
if ARM_MPU
7+
config MPU_ALLOW_FLASH_WRITE
8+
def_bool y
9+
endif

samples/drivers/flash_shell/prj.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,3 @@ CONFIG_FLASH=y
77
# If that's the case and you're interested in the flash layout, enable
88
# it here.
99
# CONFIG_FLASH_PAGE_LAYOUT=y
10-
CONFIG_MPU_ALLOW_FLASH_WRITE=y

samples/drivers/flash_shell/sample.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ sample:
44
name: Flash shell
55
tests:
66
sample.drivers.flash.shell:
7-
platform_whitelist: 96b_carbon frdm_k64f frdm_kw41z frdm_kl25z nucleo_f746zg
87
tags: flash shell
8+
filter: CONFIG_FLASH_HAS_DRIVER_ENABLED
99
harness: keyboard
10+
min_ram: 12

0 commit comments

Comments
 (0)