tests: fat_fs_api: Conditionally compile MKFS test
MKFS testing inappropriately uses flash API in the FAT FS API test, causing build errors for the test when testing file systems on storage devices other than flash. Hotfix by making this part of the test conditional on CONFIG_FLASH. Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
This commit is contained in:
parent
c5b270e7b0
commit
ff830fb0f8
1 changed files with 2 additions and 4 deletions
|
@ -5,7 +5,5 @@ find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
|||
project(fat_fs_api)
|
||||
|
||||
FILE(GLOB app_sources src/*.c)
|
||||
target_sources(app PRIVATE
|
||||
${app_sources}
|
||||
../common/test_fs_open_flags.c
|
||||
../common/test_fs_mkfs.c)
|
||||
target_sources(app PRIVATE ${app_sources} ../common/test_fs_open_flags.c)
|
||||
target_sources_ifdef(CONFIG_FLASH app PRIVATE ../common/test_fs_mkfs.c)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue