X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=carlfw%2FCMakeLists.txt;h=c32b43fdd13d569cf4a66f765b38de3305838c97;hb=06e34e6e5a982bc264d8390516c53ad5660f0984;hp=02c80bf138badd45cb9611e1eddb5b4f5a806869;hpb=8ae3dec58fde00849f91fa42440f30a14a4839e8;p=carl9170fw.git diff --git a/carlfw/CMakeLists.txt b/carlfw/CMakeLists.txt index 02c80bf..c32b43f 100644 --- a/carlfw/CMakeLists.txt +++ b/carlfw/CMakeLists.txt @@ -7,7 +7,7 @@ include("../config.cmake") set(CARL9170_FW_ELF carl9170.elf) set(CARLFW_CFLAGS_WARNING "-W -Wall -Wextra -Wunreachable-code -Winline -Wlogical-op -Wno-packed-bitfield-compat -Winit-self -Wshadow -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wformat=2 -Wcast-align -Wmissing-format-attribute -Wmissing-prototypes -Wtype-limits -Wmissing-declarations -Wmissing-noreturn -Wredundant-decls -Wnested-externs -Wdisabled-optimization -Wpointer-arith -Wvolatile-register-var -Waddress -Wbad-function-cast -Wunsafe-loop-optimizations") -set(CARLFW_CFLAGS_EXTRA "-mbitops -std=gnu99 -ffunction-sections -Wframe-larger-than=128 -Werror") +set(CARLFW_CFLAGS_EXTRA "-mbitops -ffunction-sections -Wframe-larger-than=128 -Werror") set(CARLFW_CFLAGS_DEF "-D__CARL9170FW__") if (CONFIG_CARL9170FW_AGGRESSIVE_CFLAGS) set(CARLFW_CFLAGS_AGGRESSIVE "-fomit-frame-pointer -fsee -frename-registers -ftree-vectorize -flto -fstrict-volatile-bitfields -fmodulo-sched -fwhole-program") @@ -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