mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 09:51:57 -05:00
Kernel: Add post build step to generate kernel8.img
Add a postbuild step which creates a raw binary file called kernel8.img from the Prekernel elf file.
This commit is contained in:
parent
42f6bd5f83
commit
d92967406a
1 changed files with 8 additions and 0 deletions
|
@ -61,6 +61,14 @@ if ("${SERENITY_ARCH}" STREQUAL "i686" OR "${SERENITY_ARCH}" STREQUAL "x86_64")
|
|||
)
|
||||
endif()
|
||||
|
||||
if ("${SERENITY_ARCH}" STREQUAL "aarch64")
|
||||
add_custom_command(
|
||||
TARGET Prekernel POST_BUILD
|
||||
COMMAND ${CMAKE_OBJCOPY} -O binary Prekernel kernel8.img
|
||||
BYPRODUCTS ${CMAKE_CURRENT_BINARY_DIR}/kernel8.img
|
||||
)
|
||||
endif()
|
||||
|
||||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/Prekernel" DESTINATION boot)
|
||||
|
||||
# Remove options which the Prekernel environment doesn't support.
|
||||
|
|
Loading…
Add table
Reference in a new issue