1c085f386SAlexander von Gluck IVSubDir HAIKU_TOP src system boot arch riscv64 ; 2c085f386SAlexander von Gluck IV 3*f6166140SAugustin CavalierSubDirC++Flags -fno-rtti ; 4c085f386SAlexander von Gluck IV 54ac99e39SAlexander von Gluck IV# Optimizations create infinite recursion otherwise. 64ac99e39SAlexander von Gluck IVSubDirCcFlags -fno-builtin ; 7c085f386SAlexander von Gluck IV 84ac99e39SAlexander von Gluck IVlocal librootArchSources = 94ac99e39SAlexander von Gluck IV byteorder.S 104ac99e39SAlexander von Gluck IV; 114ac99e39SAlexander von Gluck IV 124ac99e39SAlexander von Gluck IVlocal librootGenericSources = 134ac99e39SAlexander von Gluck IV memcpy.c 144ac99e39SAlexander von Gluck IV memset.c 15c085f386SAlexander von Gluck IV; 16c085f386SAlexander von Gluck IV 1740c49174SAlexander von Gluck IVlocal kernelArchDriverSources = 18c085f386SAlexander von Gluck IV arch_elf.cpp 19f1fa58bfSX512 arch_uart_sifive.cpp 20f1fa58bfSX512 sbi_syscalls.S 2140c49174SAlexander von Gluck IV; 2240c49174SAlexander von Gluck IV 2340c49174SAlexander von Gluck IVlocal kernelGenericDriverSources = 247068c454SAlexander von Gluck IV debug_uart.cpp 2540c49174SAlexander von Gluck IV debug_uart_8250.cpp 2640c49174SAlexander von Gluck IV; 2740c49174SAlexander von Gluck IV 2840c49174SAlexander von Gluck IVlocal platform ; 2963816858SAugustin Cavalierfor platform in [ MultiBootSubDirSetup efi riscv ] { 3040c49174SAlexander von Gluck IV on $(platform) { 3140c49174SAlexander von Gluck IV BootMergeObject [ FGristFiles boot_arch_$(TARGET_KERNEL_ARCH).o ] : 3240c49174SAlexander von Gluck IV $(kernelArchDriverSources) 3340c49174SAlexander von Gluck IV $(kernelGenericDriverSources) 344ac99e39SAlexander von Gluck IV 354ac99e39SAlexander von Gluck IV $(librootArchSources) 364ac99e39SAlexander von Gluck IV $(librootGenericSources) 374ac99e39SAlexander von Gluck IV 389ba143a5SAlexander von Gluck IV arch_cpu.cpp 39c085f386SAlexander von Gluck IV : # additional flags 40c085f386SAlexander von Gluck IV : 41c085f386SAlexander von Gluck IV $(kernelArchObjects) 42c085f386SAlexander von Gluck IV ; 43c085f386SAlexander von Gluck IV 444ac99e39SAlexander von Gluck IV SEARCH on [ FGristFiles $(librootArchSources) ] 454ac99e39SAlexander von Gluck IV = [ FDirName $(HAIKU_TOP) src system libroot os arch riscv64 ] ; 464ac99e39SAlexander von Gluck IV SEARCH on [ FGristFiles $(librootGenericSources) ] 474ac99e39SAlexander von Gluck IV = [ FDirName $(HAIKU_TOP) src system libroot posix string arch generic ] ; 484ac99e39SAlexander von Gluck IV 4940c49174SAlexander von Gluck IV SEARCH on [ FGristFiles $(kernelArchDriverSources) ] 50c4eec9f1SAugustin Cavalier = [ FDirName $(HAIKU_TOP) src system kernel arch $(TARGET_KERNEL_ARCH_DIR) ] ; 5140c49174SAlexander von Gluck IV SEARCH on [ FGristFiles $(kernelGenericDriverSources) ] 52c085f386SAlexander von Gluck IV = [ FDirName $(HAIKU_TOP) src system kernel arch generic ] ; 5340c49174SAlexander von Gluck IV SEARCH on [ FGristFiles $(kernelDebugSources) ] 5440c49174SAlexander von Gluck IV = [ FDirName $(HAIKU_TOP) src system kernel debug ] ; 5540c49174SAlexander von Gluck IV } 5640c49174SAlexander von Gluck IV} 57