tests: fat_fs_api: MKFS still causing build errors

The MKFS portion of the test is still was being included
in the build when it shouldn't because of a file glob

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
This commit is contained in:
Declan Snyder 2022-12-16 09:45:35 -06:00 committed by Carles Cufí
parent 2112844eea
commit 0afa2608db

View file

@ -4,6 +4,17 @@ cmake_minimum_required(VERSION 3.20.0)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(fat_fs_api) project(fat_fs_api)
FILE(GLOB app_sources src/*.c) target_sources(app PRIVATE
target_sources(app PRIVATE ${app_sources} ../common/test_fs_open_flags.c) src/common.c
target_sources_ifdef(CONFIG_FLASH app PRIVATE ../common/test_fs_mkfs.c) src/main.c
src/test_fat_fs.c
src/test_fat_dir.c
src/test_fat_mount.c
src/test_fat_rename.c
src/test_fat_rename.c
src/test_fat_rd_only_mount.c
src/test_fat_file.c
../common/test_fs_open_flags.c)
target_sources_ifdef(CONFIG_FLASH app PRIVATE
../common/test_fs_mkfs.c
src/test_fat_mkfs.c)