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