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 18*40c49174SAlexander von Gluck IVlocal kernelDebugSources = 19*40c49174SAlexander von Gluck IV blue_screen.cpp 20*40c49174SAlexander von Gluck IV frame_buffer_console.cpp 21*40c49174SAlexander von Gluck IV; 22*40c49174SAlexander von Gluck IV 23*40c49174SAlexander von Gluck IVlocal kernelArchDriverSources = 24c085f386SAlexander von Gluck IV arch_elf.cpp 25*40c49174SAlexander von Gluck IV # Serial UART Drivers 26*40c49174SAlexander von Gluck IV #arch_uart_8250.cpp 27*40c49174SAlexander von Gluck IV #arch_uart_8250_omap.cpp 28*40c49174SAlexander von Gluck IV #arch_uart_pl011.cpp 29*40c49174SAlexander von Gluck IV; 30*40c49174SAlexander von Gluck IV 31*40c49174SAlexander von Gluck IVlocal kernelGenericDriverSources = 32*40c49174SAlexander von Gluck IV debug_uart_8250.cpp 33*40c49174SAlexander von Gluck IV; 34*40c49174SAlexander von Gluck IV 35*40c49174SAlexander von Gluck IVlocal platform ; 36*40c49174SAlexander von Gluck IVfor platform in [ MultiBootSubDirSetup u-boot efi ] { 37*40c49174SAlexander von Gluck IV on $(platform) { 38*40c49174SAlexander von Gluck IV DEFINES += _BOOT_MODE ; 39*40c49174SAlexander von Gluck IV BootMergeObject [ FGristFiles boot_arch_$(TARGET_KERNEL_ARCH).o ] : 40*40c49174SAlexander von Gluck IV $(kernelDebugSources) 41*40c49174SAlexander von Gluck IV $(kernelArchDriverSources) 42*40c49174SAlexander von Gluck IV $(kernelGenericDriverSources) 43c085f386SAlexander von Gluck IV : # additional flags 44c085f386SAlexander von Gluck IV : 45c085f386SAlexander von Gluck IV $(kernelArchObjects) 46c085f386SAlexander von Gluck IV $(kernelLibArchObjects) 47c085f386SAlexander von Gluck IV ; 48c085f386SAlexander von Gluck IV 49*40c49174SAlexander von Gluck IV SEARCH on [ FGristFiles $(kernelArchDriverSources) ] 50c085f386SAlexander von Gluck IV = [ FDirName $(HAIKU_TOP) src system kernel arch $(TARGET_KERNEL_ARCH) ] ; 51*40c49174SAlexander von Gluck IV SEARCH on [ FGristFiles $(kernelGenericDriverSources) ] 52c085f386SAlexander von Gluck IV = [ FDirName $(HAIKU_TOP) src system kernel arch generic ] ; 53*40c49174SAlexander von Gluck IV SEARCH on [ FGristFiles $(kernelDebugSources) ] 54*40c49174SAlexander von Gluck IV = [ FDirName $(HAIKU_TOP) src system kernel debug ] ; 55*40c49174SAlexander von Gluck IV } 56*40c49174SAlexander von Gluck IV} 57