mirror of https://github.com/wolfSSL/wolfBoot.git
CMake: Add BUILD_IMAGE option
parent
f0b340068a
commit
2d699b4fec
|
@ -126,7 +126,8 @@ add_option(
|
|||
"no"
|
||||
"yes;no")
|
||||
add_option("DEBUG_UART" "Enable trace debugging over a UART (default: disabled)" "no" "yes;no")
|
||||
add_option("BUILD_TEST_APPS" "Build the wolfBoot test apps (default: disabled)" "no" "yes;no")
|
||||
add_option("BUILD_TEST_APPS" "Build the wolfBoot image and test apps (default: disabled)" "no" "yes;no")
|
||||
add_option("BUILD_IMAGE" "Build the wolfBoot image (default: disabled)" "no" "yes;no")
|
||||
add_option("PYTHON_KEYTOOLS" "Use wolfCrypt-py for key generation and signing (default: disabled)"
|
||||
"no" "yes;no")
|
||||
add_option(
|
||||
|
@ -650,9 +651,8 @@ set(WOLFBOOT_LSCRIPT_TEMPLATE hal/${WOLFBOOT_TARGET}.ld)
|
|||
# wolfcrypt
|
||||
add_subdirectory(lib)
|
||||
|
||||
if(BUILD_TEST_APPS)
|
||||
# test applications
|
||||
message(STATUS "Building wolfboot test apps")
|
||||
if(BUILD_TEST_APPS OR BUILD_IMAGE)
|
||||
message(STATUS "Building wolfBoot image")
|
||||
add_subdirectory(test-app)
|
||||
endif()
|
||||
|
||||
|
|
|
@ -104,6 +104,8 @@ else()
|
|||
gen_wolfboot_platform_target(${PLATFORM_NAME} bootloader_linker_script)
|
||||
endif()
|
||||
|
||||
if(BUILD_TEST_APPS)
|
||||
message(STATUS "Building wolfBoot test apps")
|
||||
add_executable(image)
|
||||
|
||||
target_sources(image PRIVATE ${APP_SOURCES})
|
||||
|
@ -139,3 +141,4 @@ if(WOLFBOOT_TARGET IN_LIST ARM_TARGETS)
|
|||
else()
|
||||
gen_wolfboot_signed_image(image)
|
||||
endif()
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue