1SubDir HAIKU_TOP src system boot arch arm64 ; 2 3local platform ; 4 5local kernelArchSources = 6 arch_elf.cpp 7 arch_uart_linflex.cpp 8; 9 10local kernelArchReusableSources = 11 arch_uart_pl011.cpp 12; 13 14local kernelGenericDriverSources = 15 debug_uart.cpp 16 debug_uart_8250.cpp 17; 18 19kernelLibGenericSources = 20 memcpy.c 21 memset.c 22; 23 24local kernelLibArchSources = ; 25 26local librootOsArchSources = 27 byteorder.S 28; 29 30for platform in [ MultiBootSubDirSetup efi ] { 31 on $(platform) { 32 DEFINES += _BOOT_MODE ; 33 34 35 BootMergeObject [ FGristFiles boot_arch_$(TARGET_KERNEL_ARCH).o ] : 36 $(kernelGenericDriverSources) 37 $(kernelArchSources) 38 $(kernelArchReusableSources) 39 $(kernelLibArchSources) 40 $(kernelLibGenericSources) 41 $(librootOsArchSources) 42 43 arch_cpu.cpp 44 : # additional flags 45 ; 46 47 SEARCH on [ FGristFiles $(kernelGenericDriverSources) ] 48 = [ FDirName $(HAIKU_TOP) src system kernel arch generic ] ; 49 SEARCH on [ FGristFiles $(kernelArchSources) ] 50 = [ FDirName $(HAIKU_TOP) src system kernel arch $(TARGET_KERNEL_ARCH_DIR) ] ; 51 SEARCH on [ FGristFiles $(kernelArchReusableSources) ] 52 = [ FDirName $(HAIKU_TOP) src system kernel arch arm ] ; 53 SEARCH on [ FGristFiles $(kernelLibGenericSources) ] 54 = [ FDirName $(HAIKU_TOP) src system libroot posix string arch generic ] ; 55 SEARCH on [ FGristFiles $(kernelLibArchSources) ] 56 = [ FDirName $(HAIKU_TOP) src system libroot posix string arch arm64 ] ; 57 SEARCH on [ FGristFiles $(librootOsArchSources) ] 58 = [ FDirName $(HAIKU_TOP) src system libroot os arch arm64 ] ; 59 } 60} 61