SubDir HAIKU_TOP src system boot arch arm64 ; UseLibraryHeaders [ FDirName libfdt ] ; UsePrivateHeaders [ FDirName kernel platform $(TARGET_BOOT_PLATFORM) ] ; SubDirHdrs $(HAIKU_TOP) src add-ons kernel bus_managers fdt ; # TODO: Is there any reason to recompile arch_string.S here? local librootArchObjects = # arch_string.o arch_string.S ; local kernelLibArchObjects = byteorder.o memset.o ; local platform ; for platform in [ MultiBootSubDirSetup u-boot efi ] { on $(platform) { DEFINES += _BOOT_MODE ; BootMergeObject [ FGristFiles boot_arch_$(TARGET_KERNEL_ARCH).o ] : # Reuse a subset of kernel debugging. $(librootArchObjects) : : $(kernelLibArchObjects) ; SEARCH on [ FGristFiles arch_elf.cpp $(kernelArchDriverSources) ] = [ FDirName $(HAIKU_TOP) src system kernel arch $(TARGET_KERNEL_ARCH) ] ; SEARCH on [ FGristFiles $(kernelGenericDriverSources) ] = [ FDirName $(HAIKU_TOP) src system kernel arch generic ] ; SEARCH on [ FGristFiles $(librootArchObjects) ] = [ FDirName $(HAIKU_TOP) src system libroot posix string arch $(TARGET_ARCH) ] ; SEARCH on [ FGristFiles $(kernelDebugSources) ] = [ FDirName $(HAIKU_TOP) src system kernel debug ] ; } }