1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:27:34 +00:00

Kernel/aarch64: Embed disk image into kernel binary

This allows us to actually boot to userspace in the next commit! :^)
This commit is contained in:
Timon Kruiper 2023-01-30 14:07:37 +01:00 committed by Linus Groh
parent da89cd948f
commit 3b65fd64fc
4 changed files with 18 additions and 3 deletions

View file

@ -726,6 +726,7 @@ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/kernel.map" DESTINATION res)
if ("${SERENITY_ARCH}" STREQUAL "aarch64")
embed_resource(Kernel serenity_boot_logo "Arch/aarch64/SerenityLogoRGB.ppm")
embed_resource(Kernel disk_image "../Build/aarch64/_disk_image")
add_custom_command(
TARGET Kernel POST_BUILD
COMMAND ${CMAKE_OBJCOPY} -O binary Kernel kernel8.img