xref: /haiku/src/system/boot/platform/riscv/Jamfile (revision 17889a8c70dbb3d59c1412f6431968753c767bab)
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	SubDirC++Flags -fno-rtti ;
15	SubDirAsFlags -I $(SUBDIR) ;
16}
17
18local platform ;
19for platform in [ MultiBootSubDirSetup riscv ] {
20	on $(platform) {
21
22		BootMergeObject boot_platform_riscv_other.o :
23			crt0.S
24			start.cpp
25			debug.cpp
26			console.cpp
27			devices.cpp
28			menu.cpp
29			mmu.cpp
30			cpu.cpp
31			smp.cpp
32			video.cpp
33
34			fdt.cpp
35			graphics.cpp
36			fixed_font.S
37			htif.cpp
38			FwCfg.cpp
39			virtio.cpp
40			traps.cpp
41			traps_asm.S
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