xref: /haiku/src/system/boot/platform/riscv/Jamfile (revision 9e25244c5e9051f6cd333820d6332397361abd6c)
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			smp.cpp
36			video.cpp
37
38			fdt.cpp
39			graphics.cpp
40			fixed_font.S
41			htif.cpp
42			FwCfg.cpp
43			virtio.cpp
44			traps.cpp
45			traps_asm.S
46			entry.S
47
48			: :
49			boot_platform_generic_riscv.a
50			[ MultiBootGristFiles boot_fdt.a ]
51		;
52
53
54		BootMergeObject boot_platform_riscv.o :
55			: :
56			boot_platform_riscv_other.o
57		;
58	}
59}
60
61SEARCH on [ FGristFiles $(genericPlatformSources) ]
62	= [ FDirName $(HAIKU_TOP) src system boot platform generic ] ;
63