xref: /haiku/src/system/boot/arch/arm/Jamfile (revision 52f7c9389475e19fc21487b38064b4390eeb6fea)
1SubDir HAIKU_TOP src system boot arch arm ;
2
3UsePrivateHeaders [ FDirName kernel arch arm ] ;
4UsePrivateHeaders [ FDirName kernel boot arch arm ] ;
5UsePrivateHeaders [ FDirName kernel platform $(TARGET_BOOT_PLATFORM) ] ;
6
7local librootGenericSources =
8	memcpy.c
9	memset.c
10;
11
12local kernelLibArchObjects =
13	<src!system!kernel!lib!arch!$(TARGET_ARCH)>byteorder.o
14;
15
16local kernelArchSources =
17	arch_elf.cpp
18	arch_uart_pl011.cpp
19;
20
21local kernelGenericDriverSources =
22	debug_uart.cpp
23	debug_uart_8250.cpp
24;
25
26local platform ;
27for platform in [ MultiBootSubDirSetup u-boot efi ] {
28    on $(platform) {
29		DEFINES += _BOOT_MODE ;
30		BootMergeObject [ FGristFiles boot_arch_$(TARGET_KERNEL_ARCH).o ] :
31			# Kernel Drivers (src/system/kernel)
32			$(kernelGenericDriverSources)
33			$(kernelArchSources)
34
35			arch_cpu.cpp
36
37			$(librootGenericSources)
38			$(librootArchSources)
39			:
40			:
41			$(kernelLibArchObjects)
42		;
43
44		SEARCH on [ FGristFiles $(kernelGenericSources) ]
45			= [ FDirName $(HAIKU_TOP) src system kernel arch $(TARGET_KERNEL_ARCH_DIR) ] ;
46
47		SEARCH on [ FGristFiles $(kernelArchSources) ]
48			= [ FDirName $(HAIKU_TOP) src system kernel arch $(TARGET_KERNEL_ARCH_DIR) ] ;
49
50		SEARCH on [ FGristFiles $(kernelGenericDriverSources) ]
51			= [ FDirName $(HAIKU_TOP) src system kernel arch generic ] ;
52
53		SEARCH on [ FGristFiles $(librootGenericSources) ]
54			= [ FDirName $(HAIKU_TOP) src system libroot posix string arch generic ] ;
55	}
56}
57
58