Skip to content

Commit

Permalink
in-app-flasher\CMakeLists.txt : fix missing check&define for EVAL_BOARD
Browse files Browse the repository at this point in the history
  • Loading branch information
KlausStrohhaecker committed Feb 8, 2021
1 parent 2dfd0da commit 9303a44
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions firmware/src/in-app-flasher/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# input variables: MAIN_APP_NAME, FLASH_APP_NAME, LINKER_SCRIPT_SUFFIX, SYSEX_SUFFIX, SYSEX_TARGET_SUFFIX, IMAGE_OBJECT_SUFFIX, IMAGE_OBJECT_TARGET_SUFFIX, LINKER_SCRIPTS_PATH

option(EVAL_BOARD "Evaluation Board specifics (GPIOs for LEDs etc)" OFF) #OFF by default
if(EVAL_BOARD)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D EVAL_BOARD")
endif(EVAL_BOARD)
unset(EVAL_BOARD) # <---- this is the important!!

set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mcpu=cortex-m4 -mthumb")
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Os")
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -fno-builtin -nodefaultlibs -nostdlib")
Expand Down

0 comments on commit 9303a44

Please sign in to comment.