From 06e34e6e5a982bc264d8390516c53ad5660f0984 Mon Sep 17 00:00:00 2001 From: Christian Lamparter Date: Sat, 13 Feb 2021 11:05:07 +0100 Subject: [PATCH] carl9170 firmware build: explicitly list carl9170.elf in dependency This should fix build errors like: sh-elf-objcopy: 'carl9170.elf': No such file make[2]: *** [carlfw/CMakeFiles/firmware.dir/build.make:76: firmware] Error 1 make[1]: *** [CMakeFiles/Makefile2:204: carlfw/CMakeFiles/firmware.dir/all] Error 2 make: *** [Makefile:103: all] Error 2 no idea what broke in cmake there. Signed-off-by: Christian Lamparter --- carlfw/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/carlfw/CMakeLists.txt b/carlfw/CMakeLists.txt index 8647a75..c32b43f 100644 --- a/carlfw/CMakeLists.txt +++ b/carlfw/CMakeLists.txt @@ -39,7 +39,7 @@ set_target_properties(carl9170.elf PROPERTIES LINKER_LANGUAGE C) set_target_properties(carl9170.elf PROPERTIES COMPILE_FLAGS "${CARLFW_CFLAGS}") set_target_properties(carl9170.elf PROPERTIES LINK_FLAGS "${CARLFW_CFLAGS} -Wl,-Tcarl9170.lds") -add_custom_target(firmware ALL) +add_custom_target(firmware ALL DEPENDS carl9170.elf) add_custom_command( DEPENDS carl9170.elf -- 2.31.1