SubDir HAIKU_TOP src system boot arch riscv64 ; { local defines = _BOOT_MODE ; defines = [ FDefines $(defines) ] ; SubDirCcFlags $(defines) ; SubDirC++Flags $(defines) -fno-rtti ; } local kernelLibArchObjects = byteorder.o memcpy.o memset.o ; local kernelArchDriverSources = arch_elf.cpp arch_uart_sifive.cpp sbi_syscalls.S ; local kernelGenericDriverSources = debug_uart.cpp debug_uart_8250.cpp ; local platform ; for platform in [ MultiBootSubDirSetup u-boot efi riscv ] { on $(platform) { DEFINES += _BOOT_MODE ; BootMergeObject [ FGristFiles boot_arch_$(TARGET_KERNEL_ARCH).o ] : $(kernelArchDriverSources) $(kernelGenericDriverSources) arch_cpu.cpp kernel_stubs.cpp : # additional flags : $(kernelArchObjects) $(kernelLibArchObjects) ; SEARCH on [ FGristFiles $(kernelArchDriverSources) ] = [ FDirName $(HAIKU_TOP) src system kernel arch $(TARGET_KERNEL_ARCH) ] ; SEARCH on [ FGristFiles $(kernelGenericDriverSources) ] = [ FDirName $(HAIKU_TOP) src system kernel arch generic ] ; SEARCH on [ FGristFiles $(kernelDebugSources) ] = [ FDirName $(HAIKU_TOP) src system kernel debug ] ; } }