xref: /haiku/src/system/boot/platform/efi/Jamfile (revision 410ed2fbba58819ac21e27d3676739728416761d)
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 boot 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	cpu.cpp
21	video.cpp
22	debug.cpp
23	mmu.cpp
24	heap.cpp
25	acpi.cpp
26	dtb.cpp
27	timer.cpp
28	menu.cpp
29	devices.cpp
30	quirks.cpp
31	smp.cpp
32	serial.cpp
33	;
34
35local support_libs ;
36
37local platform ;
38for platform in [ MultiBootSubDirSetup efi ] {
39	on $(platform) {
40
41		BootMergeObject boot_platform_efi_common.o :
42			$(platform_src)
43			: :
44			$(support_libs)
45			boot_platform_generic_efi.a
46		;
47
48		BootMergeObject boot_platform_efi.o :
49			: :
50			boot_platform_efi_$(TARGET_ARCH).o
51			boot_platform_efi_common.o
52		;
53	}
54}
55
56SubInclude HAIKU_TOP src system boot platform efi arch $(TARGET_ARCH) ;
57