xref: /haiku/src/system/boot/arch/arm/Jamfile (revision 4a32f48e70297d9a634646f01e08c2f451ecd6bd)
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_8250.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_8250.cpp
32;
33
34local platform ;
35for platform in [ MultiBootSubDirSetup u-boot efi ] {
36    on $(platform) {
37		DEFINES += _BOOT_MODE ;
38		BootMergeObject [ FGristFiles boot_arch_$(TARGET_KERNEL_ARCH).o ] :
39			# Kernel Drivers (src/system/kernel)
40			$(kernelGenericDriverSources)
41			$(kernelArchSources)
42
43			arch_cpu.cpp
44
45			# Reuse a subset of kernel debugging.
46			kernel_stubs.cpp
47			$(kernelDebugSources)
48
49			$(librootGenericSources)
50			$(librootArchSources)
51			:
52			:
53			$(kernelLibArchObjects)
54		;
55
56		SEARCH on [ FGristFiles $(kernelGenericSources) ]
57			= [ FDirName $(HAIKU_TOP) src system kernel arch $(TARGET_KERNEL_ARCH) ] ;
58
59		SEARCH on [ FGristFiles $(kernelArchSources) ]
60			= [ FDirName $(HAIKU_TOP) src system kernel arch $(TARGET_KERNEL_ARCH) ] ;
61
62		SEARCH on [ FGristFiles $(kernelGenericDriverSources) ]
63			= [ FDirName $(HAIKU_TOP) src system kernel arch generic ] ;
64
65		SEARCH on [ FGristFiles $(librootArchSources) ]
66			= [ FDirName $(HAIKU_TOP) src system libroot posix string arch $(TARGET_ARCH) ] ;
67
68		SEARCH on [ FGristFiles $(librootGenericSources) ]
69			= [ FDirName $(HAIKU_TOP) src system libroot posix string arch generic ] ;
70
71		SEARCH on [ FGristFiles $(kernelDebugSources) ]
72			= [ FDirName $(HAIKU_TOP) src system kernel debug ] ;
73	}
74}
75
76