From 0afa2608db953c8e3dc258ad7b386be890267b2b Mon Sep 17 00:00:00 2001 From: Declan Snyder Date: Fri, 16 Dec 2022 09:45:35 -0600 Subject: [PATCH] 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 --- tests/subsys/fs/fat_fs_api/CMakeLists.txt | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/tests/subsys/fs/fat_fs_api/CMakeLists.txt b/tests/subsys/fs/fat_fs_api/CMakeLists.txt index 1d60669320..54fa261231 100644 --- a/tests/subsys/fs/fat_fs_api/CMakeLists.txt +++ b/tests/subsys/fs/fat_fs_api/CMakeLists.txt @@ -4,6 +4,17 @@ cmake_minimum_required(VERSION 3.20.0) 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) -target_sources_ifdef(CONFIG_FLASH app PRIVATE ../common/test_fs_mkfs.c) +target_sources(app PRIVATE + src/common.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)