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 kernelDebugSources = 1940c49174SAlexander von Gluck IV blue_screen.cpp 2040c49174SAlexander von Gluck IV frame_buffer_console.cpp 2140c49174SAlexander von Gluck IV; 2240c49174SAlexander von Gluck IV 2340c49174SAlexander von Gluck IVlocal kernelArchDriverSources = 24c085f386SAlexander von Gluck IV arch_elf.cpp 2540c49174SAlexander von Gluck IV; 2640c49174SAlexander von Gluck IV 2740c49174SAlexander von Gluck IVlocal kernelGenericDriverSources = 2840c49174SAlexander von Gluck IV debug_uart_8250.cpp 2940c49174SAlexander von Gluck IV; 3040c49174SAlexander von Gluck IV 3140c49174SAlexander von Gluck IVlocal platform ; 32*a182bd6eSX512for platform in [ MultiBootSubDirSetup u-boot efi riscv ] { 3340c49174SAlexander von Gluck IV on $(platform) { 3440c49174SAlexander von Gluck IV DEFINES += _BOOT_MODE ; 3540c49174SAlexander von Gluck IV BootMergeObject [ FGristFiles boot_arch_$(TARGET_KERNEL_ARCH).o ] : 3640c49174SAlexander von Gluck IV $(kernelDebugSources) 3740c49174SAlexander von Gluck IV $(kernelArchDriverSources) 3840c49174SAlexander von Gluck IV $(kernelGenericDriverSources) 399ba143a5SAlexander von Gluck IV arch_cpu.cpp 409ba143a5SAlexander von Gluck IV kernel_stubs.cpp 41c085f386SAlexander von Gluck IV : # additional flags 42c085f386SAlexander von Gluck IV : 43c085f386SAlexander von Gluck IV $(kernelArchObjects) 44c085f386SAlexander von Gluck IV $(kernelLibArchObjects) 45c085f386SAlexander von Gluck IV ; 46c085f386SAlexander von Gluck IV 4740c49174SAlexander von Gluck IV SEARCH on [ FGristFiles $(kernelArchDriverSources) ] 48c085f386SAlexander von Gluck IV = [ FDirName $(HAIKU_TOP) src system kernel arch $(TARGET_KERNEL_ARCH) ] ; 4940c49174SAlexander von Gluck IV SEARCH on [ FGristFiles $(kernelGenericDriverSources) ] 50c085f386SAlexander von Gluck IV = [ FDirName $(HAIKU_TOP) src system kernel arch generic ] ; 5140c49174SAlexander von Gluck IV SEARCH on [ FGristFiles $(kernelDebugSources) ] 5240c49174SAlexander von Gluck IV = [ FDirName $(HAIKU_TOP) src system kernel debug ] ; 5340c49174SAlexander von Gluck IV } 5440c49174SAlexander von Gluck IV} 55