1SubDir HAIKU_TOP src system boot platform efi ; 2 3UsePrivateHeaders [ FDirName kernel boot ] ; 4UsePrivateHeaders [ FDirName kernel platform ] ; 5UsePrivateHeaders [ FDirName kernel boot platform efi ] ; 6UsePrivateHeaders [ FDirName kernel arch $(TARGET_KERNEL_ARCH) ] ; 7 8SubDirHdrs $(HAIKU_TOP) src add-ons kernel partitioning_systems gpt ; 9 10{ 11 local defines = _BOOT_MODE _BOOT_PLATFORM_EFI ; 12 defines = [ FDefines $(defines) ] ; 13 SubDirCcFlags $(defines) ; 14 SubDirC++Flags $(defines) -fno-rtti ; 15} 16 17local platform_src = 18 start.cpp 19 console.cpp 20 video.cpp 21 debug.cpp 22 mmu.cpp 23 heap.cpp 24 acpi.cpp 25 timer.cpp 26 menu.cpp 27 devices.cpp 28 cpu.cpp 29 quirks.cpp 30 smp.cpp 31 serial.cpp 32 ; 33 34local support_libs ; 35 36local platform ; 37for platform in [ MultiBootSubDirSetup efi ] { 38 on $(platform) { 39 40 BootMergeObject boot_platform_efi_common.o : 41 $(platform_src) 42 : : 43 $(support_libs) 44 boot_platform_generic_efi.a 45 ; 46 47 BootMergeObject boot_platform_efi.o : 48 : : 49 boot_platform_efi_$(TARGET_ARCH).o 50 boot_platform_efi_common.o 51 ; 52 } 53} 54 55SubInclude HAIKU_TOP src system boot platform efi arch $(TARGET_ARCH) ; 56