carl9170 firmware build: explicitly list carl9170.elf in dependency
authorChristian Lamparter <chunkeey@gmail.com>
Sat, 13 Feb 2021 10:05:07 +0000 (11:05 +0100)
committerChristian Lamparter <chunkeey@gmail.com>
Sat, 13 Feb 2021 10:11:07 +0000 (11:11 +0100)
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 <chunkeey@gmail.com>
carlfw/CMakeLists.txt

index 8647a759d3e17a89d5883420a75c1c3b4ace1c30..c32b43fdd13d569cf4a66f765b38de3305838c97 100644 (file)
@@ -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