xref: /haiku/src/system/boot/arch/riscv64/Jamfile (revision acdafb571df692fab7ad89836e39590dd8d415e2)
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 kernelDebugSources =
19	blue_screen.cpp
20	frame_buffer_console.cpp
21;
22
23local kernelArchDriverSources =
24	arch_elf.cpp
25;
26
27local kernelGenericDriverSources =
28	debug_uart_8250.cpp
29;
30
31local platform ;
32for platform in [ MultiBootSubDirSetup u-boot efi ] {
33	on $(platform) {
34		DEFINES += _BOOT_MODE ;
35		BootMergeObject [ FGristFiles boot_arch_$(TARGET_KERNEL_ARCH).o ] :
36			$(kernelDebugSources)
37			$(kernelArchDriverSources)
38			$(kernelGenericDriverSources)
39			arch_cpu.cpp
40			kernel_stubs.cpp
41			: # additional flags
42			:
43			$(kernelArchObjects)
44			$(kernelLibArchObjects)
45		;
46
47		SEARCH on [ FGristFiles $(kernelArchDriverSources) ]
48			= [ FDirName $(HAIKU_TOP) src system kernel arch $(TARGET_KERNEL_ARCH) ] ;
49		SEARCH on [ FGristFiles $(kernelGenericDriverSources) ]
50			= [ FDirName $(HAIKU_TOP) src system kernel arch generic ] ;
51		SEARCH on [ FGristFiles $(kernelDebugSources) ]
52			= [ FDirName $(HAIKU_TOP) src system kernel debug ] ;
53	}
54}
55