xref: /haiku/src/system/boot/arch/arm/Jamfile (revision 56430ad8002b8fd1ac69b590e9cc130de6d9e852)
1SubDir HAIKU_TOP src system boot arch arm ;
2
3UsePrivateHeaders [ FDirName kernel platform $(TARGET_BOOT_PLATFORM) ] ;
4
5#XXX: should not be needed here
6UsePrivateHeaders [ FDirName kernel arch $(TARGET_KERNEL_ARCH) board $(TARGET_BOOT_BOARD) ] ;
7UseLibraryHeaders [ FDirName libfdt ] ;
8
9{
10	local defines = _BOOT_MODE ;
11
12	defines = [ FDefines $(defines) ] ;
13	SubDirCcFlags $(defines) ;
14	SubDirC++Flags $(defines) -fno-rtti -std=c++1y ;
15}
16
17# TODO: Is there any reason to recompile arch_string.S here?
18local librootArchObjects =
19#	<src!system!libroot!posix!string!arch!$(TARGET_ARCH)>arch_string.o
20	arch_string.S
21;
22
23local kernelLibArchObjects =
24	<src!system!kernel!lib!arch!$(TARGET_ARCH)>byteorder.o
25	<src!system!kernel!lib!arch!$(TARGET_ARCH)>memset.o
26;
27
28local kernelDebugSources =
29	blue_screen.cpp
30	frame_buffer_console.cpp
31;
32
33BootMergeObject boot_arch_$(TARGET_KERNEL_ARCH).o :
34	debug_uart_8250.cpp
35	arch_uart_8250.cpp
36	arch_uart_pl011.cpp
37	arch_elf.cpp
38	arch_framebuffer_920.cpp
39	arch_framebuffer_bcm2835.cpp
40	arch_framebuffer_pxa.cpp
41	arch_framebuffer_omap3.cpp
42	arch_mailbox_bcm2835.cpp
43	arch_cpu.cpp
44	arch_mmu.cpp
45	arch_start_kernel.S
46
47	# Reuse a subset of kernel debugging.
48	kernel_stubs.cpp
49	$(kernelDebugSources)
50
51	$(librootArchObjects)
52	: -fno-pic
53	:
54	$(kernelLibArchObjects)
55;
56
57SEARCH on [ FGristFiles arch_elf.cpp uart.cpp arch_uart_8250.cpp arch_uart_pl011.cpp ]
58	= [ FDirName $(HAIKU_TOP) src system kernel arch $(TARGET_KERNEL_ARCH) ] ;
59
60SEARCH on [ FGristFiles debug_uart_8250.cpp ]
61	= [ FDirName $(HAIKU_TOP) src system kernel arch generic ] ;
62
63SEARCH on [ FGristFiles $(librootArchObjects) ]
64	= [ FDirName $(HAIKU_TOP) src system libroot posix string arch $(TARGET_ARCH) ] ;
65
66SEARCH on [ FGristFiles $(kernelDebugSources) ]
67	= [ FDirName $(HAIKU_TOP) src system kernel debug ] ;
68