2023-11-14 03:44:47 +02:00
|
|
|
cmake_minimum_required(VERSION 3.26)
|
|
|
|
|
|
|
|
project(bootloader ASM)
|
|
|
|
|
|
|
|
set(BOOTLOADER_SOURCES
|
|
|
|
boot.S
|
|
|
|
command_line.S
|
|
|
|
disk.S
|
2023-11-17 16:36:29 +02:00
|
|
|
elf.S
|
2023-11-15 16:36:53 +02:00
|
|
|
ext2.S
|
2023-11-17 22:45:35 +02:00
|
|
|
framebuffer.S
|
2023-11-14 03:44:47 +02:00
|
|
|
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)
|