Skip to content

Commit baeee0e

Browse files
ADKastergmta
authored andcommitted
Kernel: Restore kernel8.img for aarch64 build
This was erroneously deleted in 420952a
1 parent 2d05c63 commit baeee0e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Kernel/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,14 @@ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/Kernel" DESTINATION boot)
736736
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/Kernel.debug" DESTINATION boot)
737737
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/kernel.map" DESTINATION res)
738738

739+
if ("${SERENITY_ARCH}" STREQUAL "aarch64")
740+
add_custom_command(
741+
TARGET Kernel POST_BUILD
742+
COMMAND ${CMAKE_OBJCOPY} -O binary Kernel kernel8.img
743+
BYPRODUCTS ${CMAKE_CURRENT_BINARY_DIR}/kernel8.img
744+
)
745+
endif()
746+
739747
serenity_install_headers(Kernel)
740748
serenity_install_sources(Kernel)
741749

0 commit comments

Comments
 (0)