xref: /haiku/src/system/boot/platform/pxe_ia32/Jamfile (revision 52c4471a3024d2eb81fe88e2c3982b9f8daa5e56)
1SubDir HAIKU_TOP src system boot platform pxe_ia32 ;
2
3SubDirHdrs $(SUBDIR) $(DOTDOT) bios_ia32 ;
4SubDirHdrs $(HAIKU_TOP) headers private kernel boot platform bios_ia32 ;
5SubDirHdrs $(HAIKU_TOP) headers private kernel boot platform pxe_ia32 ;
6
7UsePrivateHeaders [ FDirName kernel disk_device_manager ] ;
8UsePrivateHeaders [ FDirName graphics common ] ;
9UsePrivateHeaders [ FDirName graphics vesa ] ;
10UsePrivateHeaders [ FDirName storage ] ;
11
12{
13	local defines = _PXE_ENV _BOOT_PLATFORM_BIOS ;
14
15	defines = [ FDefines $(defines) ] ;
16	SubDirCcFlags $(defines) ;
17	SubDirC++Flags $(defines) -fno-rtti ;
18}
19
20local bios_ia32_src =
21	start.cpp
22	debug.cpp
23	bios.cpp
24	bios_asm.S
25	console.cpp
26	serial.cpp
27	keyboard.cpp
28	menu.cpp
29	mmu.cpp
30	multiboot.cpp
31	cpu.cpp
32	acpi.cpp
33	smp.cpp
34	support.S
35	video.cpp
36	apm.cpp
37	interrupts.cpp
38	interrupts_asm.S
39	long.cpp
40	long_asm.S
41;
42
43local bios_ia32_edid_src =
44	decode_edid.c
45	dump_edid.c
46;
47
48
49local platform ;
50for platform in [ MultiBootSubDirSetup pxe_ia32 ] {
51	on $(platform) {
52		BootMergeObject boot_platform_pxe_ia32.o :
53			pxe_stage2.S
54			smp_trampoline.S
55			pxe_bios.S
56			devices.cpp
57			network.cpp
58			pxe_undi.cpp
59			$(bios_ia32_src)
60			$(bios_ia32_edid_src)
61
62			:
63			: boot_platform_generic_pxe_ia32.a
64		;
65
66
67		SEARCH on [ FGristFiles $(bios_ia32_src) ]
68			= [ FDirName $(SUBDIR) $(DOTDOT) bios_ia32 ] ;
69
70		SEARCH on [ FGristFiles $(bios_ia32_edid_src) ]
71			= [ FDirName $(HAIKU_TOP) src add-ons accelerants common ] ;
72
73		SEARCH on [ FGristFiles $(genericPlatformSources) ]
74			= [ FDirName $(HAIKU_TOP) src system boot platform generic ] ;
75
76		# We also need the bios_ia32 stage1.bin for building bin/makebootable
77		SEARCH on stage1.bin
78			= [ FDirName $(SUBDIR) $(DOTDOT) bios_ia32 ] ;
79	}
80}
81