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