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