2023-11-18 13:59:45 +02:00
|
|
|
cmake_minimum_required(VERSION 3.26)
|
|
|
|
|
|
|
|
project(bootloader ASM)
|
|
|
|
|
|
|
|
set(BOOTLOADER_SOURCES
|
2024-01-11 22:03:52 +02:00
|
|
|
a20_line.S
|
2023-11-18 13:59:45 +02:00
|
|
|
boot.S
|
|
|
|
command_line.S
|
|
|
|
disk.S
|
|
|
|
elf.S
|
|
|
|
ext2.S
|
|
|
|
framebuffer.S
|
|
|
|
memory_map.S
|
|
|
|
utils.S
|
|
|
|
)
|
|
|
|
|
|
|
|
add_executable(bootloader ${BOOTLOADER_SOURCES})
|
2024-04-20 17:57:16 +03:00
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
2023-11-18 13:59:45 +02:00
|
|
|
target_link_options(bootloader PRIVATE LINKER:-T,${CMAKE_CURRENT_SOURCE_DIR}/linker.ld)
|
|
|
|
target_link_options(bootloader PRIVATE -nostdlib)
|