Added SDI_PRINTF CMake option
This commit is contained in:
parent
684eb7c858
commit
545b390d29
1 changed files with 4 additions and 0 deletions
|
@ -23,6 +23,10 @@ add_definitions(-finline-functions-called-once -g)
|
||||||
|
|
||||||
add_definitions(-Wall -Wextra -march=rv32imac_zicsr_zifencei -mabi=ilp32 -msmall-data-limit=0 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -mcmodel=medany)
|
add_definitions(-Wall -Wextra -march=rv32imac_zicsr_zifencei -mabi=ilp32 -msmall-data-limit=0 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -mcmodel=medany)
|
||||||
|
|
||||||
|
IF(SDI_PRINTF)
|
||||||
|
add_definitions(-DSDI_PRINT=1)
|
||||||
|
ENDIF(SDI_PRINTF)
|
||||||
|
|
||||||
file(GLOB SOURCES "Debug/*.c" "Core/*.c" "User/*.c" "Peripheral/src/*.c" "Startup/*.S")
|
file(GLOB SOURCES "Debug/*.c" "Core/*.c" "User/*.c" "Peripheral/src/*.c" "Startup/*.S")
|
||||||
|
|
||||||
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_PROJECT_NAME}.hex
|
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_PROJECT_NAME}.hex
|
||||||
|
|
Loading…
Reference in a new issue