mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:47:45 +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
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()
|
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)
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/Prekernel" DESTINATION boot)
|
||||||
|
|
||||||
# Remove options which the Prekernel environment doesn't support.
|
# Remove options which the Prekernel environment doesn't support.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue