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 # Serial UART Drivers 26 #arch_uart_8250.cpp 27 #arch_uart_8250_omap.cpp 28 #arch_uart_pl011.cpp 29; 30 31local kernelGenericDriverSources = 32 debug_uart_8250.cpp 33; 34 35local platform ; 36for platform in [ MultiBootSubDirSetup u-boot efi ] { 37 on $(platform) { 38 DEFINES += _BOOT_MODE ; 39 BootMergeObject [ FGristFiles boot_arch_$(TARGET_KERNEL_ARCH).o ] : 40 $(kernelDebugSources) 41 $(kernelArchDriverSources) 42 $(kernelGenericDriverSources) 43 : # additional flags 44 : 45 $(kernelArchObjects) 46 $(kernelLibArchObjects) 47 ; 48 49 SEARCH on [ FGristFiles $(kernelArchDriverSources) ] 50 = [ FDirName $(HAIKU_TOP) src system kernel arch $(TARGET_KERNEL_ARCH) ] ; 51 SEARCH on [ FGristFiles $(kernelGenericDriverSources) ] 52 = [ FDirName $(HAIKU_TOP) src system kernel arch generic ] ; 53 SEARCH on [ FGristFiles $(kernelDebugSources) ] 54 = [ FDirName $(HAIKU_TOP) src system kernel debug ] ; 55 } 56} 57