From: Christian Lamparter Date: Sat, 13 Feb 2021 10:05:07 +0000 (+0100) Subject: carl9170 firmware build: explicitly list carl9170.elf in dependency X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=06e34e6e5a982bc264d8390516c53ad5660f0984;p=carl9170fw.git 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 --- 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