xref: /haiku/src/system/boot/arch/riscv64/Jamfile (revision 4c8e85b316c35a9161f5a1c50ad70bc91c83a76f)
1SubDir HAIKU_TOP src system boot arch riscv64 ;
2
3{
4	local defines = _BOOT_MODE ;
5
6	defines = [ FDefines $(defines) ] ;
7	SubDirCcFlags $(defines) ;
8	SubDirC++Flags $(defines) -fno-rtti ;
9}
10
11
12local kernelLibArchObjects =
13	<src!system!kernel!lib!arch!$(TARGET_ARCH)>byteorder.o
14	<src!system!kernel!lib!arch!$(TARGET_ARCH)>memcpy.o
15	<src!system!kernel!lib!arch!$(TARGET_ARCH)>memset.o
16;
17
18local kernelArchDriverSources =
19	arch_elf.cpp
20	arch_uart_sifive.cpp
21	sbi_syscalls.S
22;
23
24local kernelGenericDriverSources =
25	debug_uart.cpp
26	debug_uart_8250.cpp
27;
28
29local platform ;
30for platform in [ MultiBootSubDirSetup u-boot efi riscv ] {
31	on $(platform) {
32		DEFINES += _BOOT_MODE ;
33		BootMergeObject [ FGristFiles boot_arch_$(TARGET_KERNEL_ARCH).o ] :
34			$(kernelArchDriverSources)
35			$(kernelGenericDriverSources)
36			arch_cpu.cpp
37			: # additional flags
38			:
39			$(kernelArchObjects)
40			$(kernelLibArchObjects)
41		;
42
43		SEARCH on [ FGristFiles $(kernelArchDriverSources) ]
44			= [ FDirName $(HAIKU_TOP) src system kernel arch $(TARGET_KERNEL_ARCH_DIR) ] ;
45		SEARCH on [ FGristFiles $(kernelGenericDriverSources) ]
46			= [ FDirName $(HAIKU_TOP) src system kernel arch generic ] ;
47		SEARCH on [ FGristFiles $(kernelDebugSources) ]
48			= [ FDirName $(HAIKU_TOP) src system kernel debug ] ;
49	}
50}
51