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 kernelArchDriverSources = 19 arch_elf.cpp 20 arch_uart_sifive.cpp 21 sbi_syscalls.S 22; 23 24local kernelGenericDriverSources = 25 debug_uart.cpp 26 debug_uart_8250.cpp 27; 28 29local platform ; 30for platform in [ MultiBootSubDirSetup u-boot efi riscv ] { 31 on $(platform) { 32 DEFINES += _BOOT_MODE ; 33 BootMergeObject [ FGristFiles boot_arch_$(TARGET_KERNEL_ARCH).o ] : 34 $(kernelArchDriverSources) 35 $(kernelGenericDriverSources) 36 arch_cpu.cpp 37 kernel_stubs.cpp 38 : # additional flags 39 : 40 $(kernelArchObjects) 41 $(kernelLibArchObjects) 42 ; 43 44 SEARCH on [ FGristFiles $(kernelArchDriverSources) ] 45 = [ FDirName $(HAIKU_TOP) src system kernel arch $(TARGET_KERNEL_ARCH_DIR) ] ; 46 SEARCH on [ FGristFiles $(kernelGenericDriverSources) ] 47 = [ FDirName $(HAIKU_TOP) src system kernel arch generic ] ; 48 SEARCH on [ FGristFiles $(kernelDebugSources) ] 49 = [ FDirName $(HAIKU_TOP) src system kernel debug ] ; 50 } 51} 52