xref: /haiku/src/system/boot/platform/riscv/Jamfile (revision 4c8e85b316c35a9161f5a1c50ad70bc91c83a76f)
1SubDir HAIKU_TOP src system boot platform riscv ;
2
3SubDirHdrs $(HAIKU_TOP) headers private kernel boot platform riscv ;
4
5UsePrivateHeaders [ FDirName kernel boot platform riscv ] ;
6UsePrivateHeaders [ FDirName kernel platform $(TARGET_BOOT_PLATFORM) ] ;
7UsePrivateHeaders [ FDirName kernel disk_device_manager ] ;
8UsePrivateHeaders [ FDirName graphics common ] ;
9UsePrivateHeaders [ FDirName storage ] ;
10UsePrivateHeaders [ FDirName virtio ] ;
11UseLibraryHeaders [ FDirName libfdt ] ;
12
13{
14	local defines = _BOOT_MODE ;
15
16	defines = [ FDefines $(defines) ] ;
17	SubDirCcFlags $(defines) ;
18	SubDirC++Flags $(defines) -fno-rtti ;
19	SubDirAsFlags -I $(SUBDIR) ;
20}
21
22local platform ;
23for platform in [ MultiBootSubDirSetup riscv ] {
24	on $(platform) {
25
26		BootMergeObject boot_platform_riscv_other.o :
27			crt0.S
28			start.cpp
29			debug.cpp
30			console.cpp
31			devices.cpp
32			menu.cpp
33			mmu.cpp
34			cpu.cpp
35			video.cpp
36
37			fdt.cpp
38			graphics.cpp
39			fixed_font.S
40			htif.cpp
41			virtio.cpp
42			entry.S
43
44			: :
45			boot_platform_generic_riscv.a
46			[ MultiBootGristFiles boot_fdt.a ]
47		;
48
49
50		BootMergeObject boot_platform_riscv.o :
51			: :
52			boot_platform_riscv_other.o
53		;
54	}
55}
56
57SEARCH on [ FGristFiles $(genericPlatformSources) ]
58	= [ FDirName $(HAIKU_TOP) src system boot platform generic ] ;
59