diff --git a/Kernel/Prekernel/CMakeLists.txt b/Kernel/Prekernel/CMakeLists.txt index d4f015aaa9..e370e2ad59 100644 --- a/Kernel/Prekernel/CMakeLists.txt +++ b/Kernel/Prekernel/CMakeLists.txt @@ -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.