2020-12-11 02:10:54 +08:00
|
|
|
# Create an EFI image
|
2021-01-26 19:58:30 +08:00
|
|
|
if(CONFIG_BOARD_EHL_CRB AND CONFIG_BUILD_OUTPUT_EFI)
|
2020-12-11 02:10:54 +08:00
|
|
|
set_property(GLOBAL APPEND PROPERTY extra_post_build_commands
|
|
|
|
COMMAND ${PYTHON_EXECUTABLE} ${PROJECT_SOURCE_DIR}/arch/x86/zefi/zefi.py
|
2021-01-20 18:24:20 +08:00
|
|
|
-c ${CMAKE_C_COMPILER}
|
2021-01-26 00:14:42 +08:00
|
|
|
-o ${CMAKE_OBJCOPY}
|
2021-02-25 20:16:53 +08:00
|
|
|
-i ${ZEPHYR_BASE}/include
|
2022-03-30 03:52:59 +08:00
|
|
|
-i ${ZEPHYR_BASE}/include/zephyr
|
2020-12-11 02:10:54 +08:00
|
|
|
-f ${PROJECT_BINARY_DIR}/${CONFIG_KERNEL_BIN_NAME}.elf
|
|
|
|
$<$<BOOL:${CMAKE_VERBOSE_MAKEFILE}>:--verbose>
|
|
|
|
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
|
|
|
|
)
|
|
|
|
endif()
|