mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00: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
Notes:
sideshowbarker
2024-07-18 03:35:30 +09:00
Author: https://github.com/jamesmintram
Commit: d92967406a
Pull-request: https://github.com/SerenityOS/serenity/pull/10464
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
Add a link
Reference in a new issue