Bootloader: Build with cmake instead of custom script

This commit is contained in:
2023-11-14 03:44:47 +02:00
parent bd3f2bb61c
commit c791a1c200
4 changed files with 30 additions and 19 deletions

15
bootloader/CMakeLists.txt Normal file
View File

@@ -0,0 +1,15 @@
cmake_minimum_required(VERSION 3.26)
project(bootloader ASM)
set(BOOTLOADER_SOURCES
boot.S
command_line.S
disk.S
memory_map.S
utils.S
)
add_executable(bootloader ${BOOTLOADER_SOURCES})
target_link_options(bootloader PUBLIC LINKER:-T,${CMAKE_CURRENT_SOURCE_DIR}/linker.ld)
target_link_options(bootloader PUBLIC -nostdlib)