xref: /haiku/src/system/boot/arch/arm64/Jamfile (revision cbdb30f4676680970c8d85860e7b8195b9f9b67b)
1*cbdb30f4SJaroslaw PelczarSubDir HAIKU_TOP src system boot arch arm64 ;
2*cbdb30f4SJaroslaw Pelczar
3*cbdb30f4SJaroslaw PelczarUseLibraryHeaders [ FDirName libfdt ] ;
4*cbdb30f4SJaroslaw PelczarUsePrivateHeaders [ FDirName kernel platform $(TARGET_BOOT_PLATFORM) ] ;
5*cbdb30f4SJaroslaw PelczarSubDirHdrs $(HAIKU_TOP) src add-ons kernel bus_managers fdt ;
6*cbdb30f4SJaroslaw Pelczar
7*cbdb30f4SJaroslaw Pelczar# TODO: Is there any reason to recompile arch_string.S here?
8*cbdb30f4SJaroslaw Pelczarlocal librootArchObjects =
9*cbdb30f4SJaroslaw Pelczar#	<src!system!libroot!posix!string!arch!$(TARGET_ARCH)>arch_string.o
10*cbdb30f4SJaroslaw Pelczar	arch_string.S
11*cbdb30f4SJaroslaw Pelczar;
12*cbdb30f4SJaroslaw Pelczar
13*cbdb30f4SJaroslaw Pelczarlocal kernelLibArchObjects =
14*cbdb30f4SJaroslaw Pelczar	<src!system!kernel!lib!arch!$(TARGET_ARCH)>byteorder.o
15*cbdb30f4SJaroslaw Pelczar	<src!system!kernel!lib!arch!$(TARGET_ARCH)>memset.o
16*cbdb30f4SJaroslaw Pelczar;
17*cbdb30f4SJaroslaw Pelczar
18*cbdb30f4SJaroslaw Pelczarlocal platform ;
19*cbdb30f4SJaroslaw Pelczarfor platform in [ MultiBootSubDirSetup u-boot efi ] {
20*cbdb30f4SJaroslaw Pelczar    on $(platform) {
21*cbdb30f4SJaroslaw Pelczar		DEFINES += _BOOT_MODE ;
22*cbdb30f4SJaroslaw Pelczar		BootMergeObject [ FGristFiles boot_arch_$(TARGET_KERNEL_ARCH).o ] :
23*cbdb30f4SJaroslaw Pelczar			# Reuse a subset of kernel debugging.
24*cbdb30f4SJaroslaw Pelczar			$(librootArchObjects)
25*cbdb30f4SJaroslaw Pelczar			:
26*cbdb30f4SJaroslaw Pelczar			:
27*cbdb30f4SJaroslaw Pelczar			$(kernelLibArchObjects)
28*cbdb30f4SJaroslaw Pelczar		;
29*cbdb30f4SJaroslaw Pelczar		SEARCH on [ FGristFiles arch_elf.cpp $(kernelArchDriverSources) ]
30*cbdb30f4SJaroslaw Pelczar			= [ FDirName $(HAIKU_TOP) src system kernel arch $(TARGET_KERNEL_ARCH) ] ;
31*cbdb30f4SJaroslaw Pelczar
32*cbdb30f4SJaroslaw Pelczar		SEARCH on [ FGristFiles $(kernelGenericDriverSources) ]
33*cbdb30f4SJaroslaw Pelczar			= [ FDirName $(HAIKU_TOP) src system kernel arch generic ] ;
34*cbdb30f4SJaroslaw Pelczar
35*cbdb30f4SJaroslaw Pelczar		SEARCH on [ FGristFiles $(librootArchObjects) ]
36*cbdb30f4SJaroslaw Pelczar			= [ FDirName $(HAIKU_TOP) src system libroot posix string arch $(TARGET_ARCH) ] ;
37*cbdb30f4SJaroslaw Pelczar
38*cbdb30f4SJaroslaw Pelczar		SEARCH on [ FGristFiles $(kernelDebugSources) ]
39*cbdb30f4SJaroslaw Pelczar			= [ FDirName $(HAIKU_TOP) src system kernel debug ] ;
40*cbdb30f4SJaroslaw Pelczar	}
41*cbdb30f4SJaroslaw Pelczar}
42