# XT Boot Loader PROJECT(XTLDR_ELF_O) # Specify include directories include_directories( ${EXECTOS_SOURCE_DIR}/sdk/xtdk ${XTLDR_ELF_O_SOURCE_DIR}/includes) # Specify list of source code files list(APPEND XTLDR_ELF_O_SOURCE ${XTLDR_ELF_O_SOURCE_DIR}/elf.c) # Link bootloader executable add_executable(elf_o ${XTLDR_ELF_O_SOURCE}) # Add linker libraries target_link_libraries(elf_o libxtos libxtldr) # Set proper binary name and install target set_target_properties(elf_o PROPERTIES SUFFIX .efi) set_install_target(elf_o efi/boot/xtldr/modules) # Set module entrypoint and subsystem set_entrypoint(elf_o "XtLdrModuleMain") set_linker_map(elf_o TRUE) set_subsystem(elf_o efi_boot_service_driver)