1SubDir HAIKU_TOP src system boot arch riscv64 ; 2 3{ 4 local defines = _BOOT_MODE ; 5 6 defines = [ FDefines $(defines) ] ; 7 SubDirCcFlags $(defines) ; 8 SubDirC++Flags $(defines) -fno-rtti ; 9} 10 11 12local kernelLibArchObjects = 13 <src!system!kernel!lib!arch!$(TARGET_ARCH)>byteorder.o 14 <src!system!kernel!lib!arch!$(TARGET_ARCH)>memcpy.o 15 <src!system!kernel!lib!arch!$(TARGET_ARCH)>memset.o 16; 17 18local kernelDebugSources = 19 blue_screen.cpp 20 frame_buffer_console.cpp 21; 22 23local kernelArchDriverSources = 24 arch_elf.cpp 25 26 # Serial UART Drivers 27 #arch_uart_8250.cpp 28 #arch_uart_8250_omap.cpp 29 #arch_uart_pl011.cpp 30; 31 32local kernelGenericDriverSources = 33 debug_uart_8250.cpp 34; 35 36local platform ; 37for platform in [ MultiBootSubDirSetup u-boot efi ] { 38 on $(platform) { 39 DEFINES += _BOOT_MODE ; 40 BootMergeObject [ FGristFiles boot_arch_$(TARGET_KERNEL_ARCH).o ] : 41 $(kernelDebugSources) 42 $(kernelArchDriverSources) 43 $(kernelGenericDriverSources) 44 arch_cpu.cpp 45 kernel_stubs.cpp 46 : # additional flags 47 : 48 $(kernelArchObjects) 49 $(kernelLibArchObjects) 50 ; 51 52 SEARCH on [ FGristFiles $(kernelArchDriverSources) ] 53 = [ FDirName $(HAIKU_TOP) src system kernel arch $(TARGET_KERNEL_ARCH) ] ; 54 SEARCH on [ FGristFiles $(kernelGenericDriverSources) ] 55 = [ FDirName $(HAIKU_TOP) src system kernel arch generic ] ; 56 SEARCH on [ FGristFiles $(kernelDebugSources) ] 57 = [ FDirName $(HAIKU_TOP) src system kernel debug ] ; 58 } 59} 60