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