1c085f386SAlexander von Gluck IVSubDir HAIKU_TOP src system boot arch riscv64 ; 2c085f386SAlexander von Gluck IV 3c085f386SAlexander von Gluck IV{ 4c085f386SAlexander von Gluck IV local defines = _BOOT_MODE ; 5c085f386SAlexander von Gluck IV 6c085f386SAlexander von Gluck IV defines = [ FDefines $(defines) ] ; 7c085f386SAlexander von Gluck IV SubDirCcFlags $(defines) ; 8c085f386SAlexander von Gluck IV SubDirC++Flags $(defines) -fno-rtti ; 9c085f386SAlexander von Gluck IV} 10c085f386SAlexander von Gluck IV 11c085f386SAlexander von Gluck IV 12c085f386SAlexander von Gluck IVlocal kernelLibArchObjects = 13c085f386SAlexander von Gluck IV <src!system!kernel!lib!arch!$(TARGET_ARCH)>byteorder.o 14c085f386SAlexander von Gluck IV <src!system!kernel!lib!arch!$(TARGET_ARCH)>memcpy.o 15c085f386SAlexander von Gluck IV <src!system!kernel!lib!arch!$(TARGET_ARCH)>memset.o 16c085f386SAlexander von Gluck IV; 17c085f386SAlexander von Gluck IV 1840c49174SAlexander von Gluck IVlocal kernelArchDriverSources = 19c085f386SAlexander von Gluck IV arch_elf.cpp 20f1fa58bfSX512 arch_uart_sifive.cpp 21f1fa58bfSX512 sbi_syscalls.S 2240c49174SAlexander von Gluck IV; 2340c49174SAlexander von Gluck IV 2440c49174SAlexander von Gluck IVlocal kernelGenericDriverSources = 25*7068c454SAlexander von Gluck IV debug_uart.cpp 2640c49174SAlexander von Gluck IV debug_uart_8250.cpp 2740c49174SAlexander von Gluck IV; 2840c49174SAlexander von Gluck IV 2940c49174SAlexander von Gluck IVlocal platform ; 30a182bd6eSX512for platform in [ MultiBootSubDirSetup u-boot efi riscv ] { 3140c49174SAlexander von Gluck IV on $(platform) { 3240c49174SAlexander von Gluck IV DEFINES += _BOOT_MODE ; 3340c49174SAlexander von Gluck IV BootMergeObject [ FGristFiles boot_arch_$(TARGET_KERNEL_ARCH).o ] : 3440c49174SAlexander von Gluck IV $(kernelArchDriverSources) 3540c49174SAlexander von Gluck IV $(kernelGenericDriverSources) 369ba143a5SAlexander von Gluck IV arch_cpu.cpp 379ba143a5SAlexander von Gluck IV kernel_stubs.cpp 38c085f386SAlexander von Gluck IV : # additional flags 39c085f386SAlexander von Gluck IV : 40c085f386SAlexander von Gluck IV $(kernelArchObjects) 41c085f386SAlexander von Gluck IV $(kernelLibArchObjects) 42c085f386SAlexander von Gluck IV ; 43c085f386SAlexander von Gluck IV 4440c49174SAlexander von Gluck IV SEARCH on [ FGristFiles $(kernelArchDriverSources) ] 45c085f386SAlexander von Gluck IV = [ FDirName $(HAIKU_TOP) src system kernel arch $(TARGET_KERNEL_ARCH) ] ; 4640c49174SAlexander von Gluck IV SEARCH on [ FGristFiles $(kernelGenericDriverSources) ] 47c085f386SAlexander von Gluck IV = [ FDirName $(HAIKU_TOP) src system kernel arch generic ] ; 4840c49174SAlexander von Gluck IV SEARCH on [ FGristFiles $(kernelDebugSources) ] 4940c49174SAlexander von Gluck IV = [ FDirName $(HAIKU_TOP) src system kernel debug ] ; 5040c49174SAlexander von Gluck IV } 5140c49174SAlexander von Gluck IV} 52