2026-02-19 19:31:15 +00:00
|
|
|
file(GLOB c_sources *.c *.h)
|
|
|
|
|
file(GLOB arch_sources arch/${CMAKE_SYSTEM_PROCESSOR}/*.S)
|
|
|
|
|
|
|
|
|
|
set_property(SOURCE ${arch_sources} PROPERTY LANGUAGE C)
|
|
|
|
|
|
|
|
|
|
add_executable(bootstrap ${c_sources} ${arch_sources})
|
|
|
|
|
|
2026-03-06 20:18:54 +00:00
|
|
|
target_link_libraries(bootstrap
|
|
|
|
|
libmango libc-core libc-malloc libfs-static liblaunch
|
|
|
|
|
interface::fs)
|
2026-02-19 19:31:15 +00:00
|
|
|
|
|
|
|
|
target_compile_options(bootstrap PRIVATE
|
2026-03-06 20:18:54 +00:00
|
|
|
-fno-stack-protector -nostdlib -ffreestanding)
|
2026-02-19 19:31:15 +00:00
|
|
|
target_link_options(bootstrap PRIVATE
|
2026-03-06 20:18:54 +00:00
|
|
|
-static -nostdlib -ffreestanding)
|
|
|
|
|
#-T ${CMAKE_CURRENT_SOURCE_DIR}/arch/${TARGET_ARCH}/layout.ld)
|