xref: /haiku/src/system/boot/platform/efi/arch/x86/Jamfile (revision bb83316a5811a550c4f850d07fa8e328e7ac0a94)
1 SubDir HAIKU_TOP src system boot platform efi arch x86 ;
2 
3 SubDirHdrs $(SUBDIR) $(DOTDOT) $(DOTDOT) ;
4 SubDirHdrs $(SUBDIR) $(DOTDOT) generic ;
5 
6 UsePrivateHeaders [ FDirName kernel platform ] ;
7 UsePrivateHeaders [ FDirName kernel boot platform efi ] ;
8 
9 local platform ;
10 for platform in [ MultiBootSubDirSetup efi ] {
11 	on $(platform) {
12 		{
13 			local defines = _BOOT_PLATFORM_EFI ;
14 			defines = [ FDefines $(defines) ] ;
15 			SubDirCcFlags $(defines) ;
16 			SubDirC++Flags $(defines) -fno-rtti ;
17 		}
18 
19 		local arch_src =
20 			crt0-efi-$(TARGET_ARCH).S
21 			entry.S
22 			smp_trampoline.S
23 			support.S
24 			relocation_func.cpp
25 			arch_mmu.cpp
26 			arch_smp.cpp
27 			arch_smp_32.cpp
28 			arch_start.cpp
29 			arch_timer.cpp
30 			;
31 
32 		local generic_src =
33 			generic_mmu.cpp
34 			;
35 
36 		BootMergeObject boot_platform_efi_x86.o :
37 			$(arch_src)
38 			$(generic_src)
39 			;
40 
41 		SEARCH on [ FGristFiles $(generic_src) ]
42 			= [ FDirName $(SUBDIR) $(DOTDOT) generic ] ;
43 	}
44 }
45