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