feat: kernel is now elf
This commit is contained in:
@@ -33,14 +33,11 @@ target_link_options(Kernel PRIVATE
|
||||
-no-pie
|
||||
-T "${CMAKE_CURRENT_SOURCE_DIR}/linker.ld"
|
||||
-z max-page-size=0x1000
|
||||
--image-base=0x40100000
|
||||
--no-dynamic-linker
|
||||
)
|
||||
|
||||
set_target_properties(Kernel PROPERTIES
|
||||
OUTPUT_NAME "Kernel.elf"
|
||||
OUTPUT_NAME "ksOSKernel.elf"
|
||||
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
|
||||
)
|
||||
|
||||
add_custom_command(TARGET Kernel POST_BUILD
|
||||
COMMAND ${LLVM_OBJCOPY} -O binary ${CMAKE_BINARY_DIR}/Kernel.elf ${CMAKE_BINARY_DIR}/Kernel.bin
|
||||
COMMENT "Generating ksOSKernel.bin from Kernel.elf"
|
||||
)
|
||||
Reference in New Issue
Block a user