Skip to content

Commit ae4e4b7

Browse files
galaknashif
authored andcommitted
x86: Fix zefi.py generation to use SDK toolchain
With SDK 0.12.2 we have support to generation EFI binaries in binutils which is needed by the zefi.py script. Now that is there we can utilize the SDK objcopy instead of assuming the host objcopy can do this (which would only be the case on x86 linux host systems). Fixes #27047 Signed-off-by: Kumar Gala <[email protected]>
1 parent 8cf62f1 commit ae4e4b7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

boards/x86/ehl_crb/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ if(CONFIG_BOARD_EHL_CRB)
33
set_property(GLOBAL APPEND PROPERTY extra_post_build_commands
44
COMMAND ${PYTHON_EXECUTABLE} ${PROJECT_SOURCE_DIR}/arch/x86/zefi/zefi.py
55
-c ${CMAKE_C_COMPILER}
6-
-o objcopy
6+
-o ${CMAKE_OBJCOPY}
77
-f ${PROJECT_BINARY_DIR}/${CONFIG_KERNEL_BIN_NAME}.elf
88
$<$<BOOL:${CMAKE_VERBOSE_MAKEFILE}>:--verbose>
99
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}

boards/x86/up_squared/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ if(CONFIG_BOARD_UP_SQUARED)
33
set_property(GLOBAL APPEND PROPERTY extra_post_build_commands
44
COMMAND ${PYTHON_EXECUTABLE} ${PROJECT_SOURCE_DIR}/arch/x86/zefi/zefi.py
55
-c ${CMAKE_C_COMPILER}
6-
-o objcopy
6+
-o ${CMAKE_OBJCOPY}
77
-f ${PROJECT_BINARY_DIR}/${CONFIG_KERNEL_BIN_NAME}.elf
88
$<$<BOOL:${CMAKE_VERBOSE_MAKEFILE}>:--verbose>
99
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}

0 commit comments

Comments
 (0)