xref: /haiku/src/system/boot/arch/arm/Jamfile (revision 02354704729d38c3b078c696adc1bbbd33cbcf72)
1SubDir HAIKU_TOP src system boot arch arm ;
2
3UsePrivateHeaders [ FDirName kernel platform $(TARGET_BOOT_PLATFORM) ] ;
4
5# These must be recompiled due to differing wchar lengths in EFI
6local librootArchSources =
7	arch_string.S
8;
9
10local librootGenericSources =
11	memset.c
12;
13
14local kernelLibArchObjects =
15	<src!system!kernel!lib!arch!$(TARGET_ARCH)>byteorder.o
16;
17
18local kernelArchSources =
19	arch_elf.cpp
20	arch_uart_pl011.cpp
21;
22
23local kernelDebugSources =
24	blue_screen.cpp
25	font.cpp
26	font_spleen.cpp
27	frame_buffer_console.cpp
28;
29
30local kernelGenericDriverSources =
31	debug_uart.cpp
32	debug_uart_8250.cpp
33;
34
35local platform ;
36for platform in [ MultiBootSubDirSetup u-boot efi ] {
37    on $(platform) {
38		DEFINES += _BOOT_MODE ;
39		BootMergeObject [ FGristFiles boot_arch_$(TARGET_KERNEL_ARCH).o ] :
40			# Kernel Drivers (src/system/kernel)
41			$(kernelGenericDriverSources)
42			$(kernelArchSources)
43
44			arch_cpu.cpp
45
46			# Reuse a subset of kernel debugging.
47			kernel_stubs.cpp
48			$(kernelDebugSources)
49
50			$(librootGenericSources)
51			$(librootArchSources)
52			:
53			:
54			$(kernelLibArchObjects)
55		;
56
57		SEARCH on [ FGristFiles $(kernelGenericSources) ]
58			= [ FDirName $(HAIKU_TOP) src system kernel arch $(TARGET_KERNEL_ARCH_DIR) ] ;
59
60		SEARCH on [ FGristFiles $(kernelArchSources) ]
61			= [ FDirName $(HAIKU_TOP) src system kernel arch $(TARGET_KERNEL_ARCH_DIR) ] ;
62
63		SEARCH on [ FGristFiles $(kernelGenericDriverSources) ]
64			= [ FDirName $(HAIKU_TOP) src system kernel arch generic ] ;
65
66		SEARCH on [ FGristFiles $(librootArchSources) ]
67			= [ FDirName $(HAIKU_TOP) src system libroot posix string arch $(TARGET_ARCH) ] ;
68
69		SEARCH on [ FGristFiles $(librootGenericSources) ]
70			= [ FDirName $(HAIKU_TOP) src system libroot posix string arch generic ] ;
71
72		SEARCH on [ FGristFiles $(kernelDebugSources) ]
73			= [ FDirName $(HAIKU_TOP) src system kernel debug ] ;
74	}
75}
76
77