forked from Firmware/Firmwares
extends build system to propagate more settings
This commit is contained in:
parent
9dd7dcb4ce
commit
3217871752
|
@ -1,15 +1,18 @@
|
|||
if (NOT DEFINED TARGET)
|
||||
set(TARGET iss)
|
||||
if (NOT DEFINED BOARD)
|
||||
set(BOARD iss)
|
||||
endif()
|
||||
if (NOT DEFINED ISA)
|
||||
set(ISA imc)
|
||||
endif()
|
||||
add_custom_target(fw-hello-world ALL
|
||||
COMMAND make -C ${riscvfw_SOURCE_DIR}/hello-world BOARD=${TARGET}
|
||||
COMMAND make -C ${riscvfw_SOURCE_DIR}/hello-world BOARD=${BOARD} ISA=${ISA}
|
||||
USES_TERMINAL
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
add_custom_target(fw-dhrystone ALL
|
||||
COMMAND make -C ${riscvfw_SOURCE_DIR}/benchmarks/dhrystone BOARD=${TARGET}
|
||||
COMMAND make -C ${riscvfw_SOURCE_DIR}/benchmarks/dhrystone BOARD=${TARGET} ISA=${ISA}
|
||||
USES_TERMINAL
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
add_custom_target(fw-coremark ALL
|
||||
COMMAND make -C ${riscvfw_SOURCE_DIR}/benchmarks/coremark/cm PORT_DIR=../tgc BOARD=${TARGET}
|
||||
COMMAND make -C ${riscvfw_SOURCE_DIR}/benchmarks/coremark/cm PORT_DIR=../tgc BOARD=${TARGET} ISA=${ISA}
|
||||
USES_TERMINAL
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
|
Loading…
Reference in New Issue