1SubDir HAIKU_TOP src system boot arch arm ; 2 3UsePrivateHeaders [ FDirName kernel platform $(TARGET_BOOT_PLATFORM) ] ; 4 5#XXX: should not be needed here 6UseLibraryHeaders [ FDirName libfdt ] ; 7 8{ 9 local defines = _BOOT_MODE ; 10 11 defines = [ FDefines $(defines) ] ; 12 SubDirCcFlags $(defines) ; 13 SubDirC++Flags $(defines) -fno-rtti -std=c++1y ; 14} 15 16# TODO: Is there any reason to recompile arch_string.S here? 17local librootArchObjects = 18# <src!system!libroot!posix!string!arch!$(TARGET_ARCH)>arch_string.o 19 arch_string.S 20; 21 22local kernelLibArchObjects = 23 <src!system!kernel!lib!arch!$(TARGET_ARCH)>byteorder.o 24 <src!system!kernel!lib!arch!$(TARGET_ARCH)>memset.o 25; 26 27local kernelDebugSources = 28 blue_screen.cpp 29 frame_buffer_console.cpp 30; 31 32local kernelArchDriverSources = 33 # Serial UART Drivers 34 arch_uart_8250.cpp 35 arch_uart_8250_omap.cpp 36 arch_uart_pl011.cpp 37; 38 39local kernelGenericDriverSources = 40 debug_uart_8250.cpp 41; 42 43BootMergeObject boot_arch_$(TARGET_KERNEL_ARCH).o : 44 # Kernel Drivers (src/system/kernel) 45 $(kernelGenericDriverSources) 46 $(kernelArchDriverSources) 47 48 # Framebuffer Drivers 49 arch_framebuffer_920.cpp 50 arch_framebuffer_bcm2835.cpp 51 arch_framebuffer_pxa.cpp 52 arch_framebuffer_omap3.cpp 53 54 # Mailbox drivers 55 arch_mailbox_bcm2835.cpp 56 57 arch_elf.cpp 58 arch_cpu.cpp 59 arch_mmu.cpp 60 arch_start_kernel.S 61 62 # Reuse a subset of kernel debugging. 63 kernel_stubs.cpp 64 $(kernelDebugSources) 65 66 $(librootArchObjects) 67 : 68 : 69 $(kernelLibArchObjects) 70; 71 72SEARCH on [ FGristFiles arch_elf.cpp $(kernelArchDriverSources) ] 73 = [ FDirName $(HAIKU_TOP) src system kernel arch $(TARGET_KERNEL_ARCH) ] ; 74 75SEARCH on [ FGristFiles $(kernelGenericDriverSources) ] 76 = [ FDirName $(HAIKU_TOP) src system kernel arch generic ] ; 77 78SEARCH on [ FGristFiles $(librootArchObjects) ] 79 = [ FDirName $(HAIKU_TOP) src system libroot posix string arch $(TARGET_ARCH) ] ; 80 81SEARCH on [ FGristFiles $(kernelDebugSources) ] 82 = [ FDirName $(HAIKU_TOP) src system kernel debug ] ; 83