xref: /haiku/src/system/boot/platform/u-boot/Jamfile (revision efafab643ce980e3f3c916795ed302599f6b4f66)
1SubDir HAIKU_TOP src system boot platform u-boot ;
2
3SubDirHdrs $(HAIKU_TOP) headers private kernel boot platform $(TARGET_BOOT_PLATFORM) ;
4SubDirHdrs $(HAIKU_TOP) headers private kernel platform $(TARGET_BOOT_PLATFORM) ;
5SubDirHdrs $(HAIKU_TOP) src add-ons kernel bus_managers fdt ;
6
7SubDirHdrs $(HAIKU_TOP) src system boot arch $(TARGET_KERNEL_ARCH) ;
8
9UseLibraryHeaders [ FDirName libfdt ] ;
10
11UsePrivateHeaders [ FDirName kernel disk_device_manager ] ;
12UsePrivateHeaders [ FDirName graphics common ] ;
13UsePrivateHeaders [ FDirName graphics vesa ] ;
14UsePrivateHeaders [ FDirName storage ] ;
15UsePrivateHeaders [ FDirName kernel arch generic ] ;
16
17{
18    local defines = _BOOT_MODE ;
19
20    defines = [ FDefines $(defines) ] ;
21    SubDirCcFlags $(defines) -g3 -O0 ;
22    SubDirC++Flags $(defines) -fno-rtti -g3 -O0 ;
23}
24
25SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src add-ons accelerants common ] ;
26
27SEARCH on [ FGristFiles $(genericPlatformSources) ]
28    = [ FDirName $(HAIKU_TOP) src system boot platform generic ] ;
29
30local platform ;
31for platform in [ MultiBootSubDirSetup u-boot ] {
32	on $(platform) {
33
34		# First build the non arch dependent parts
35		BootMergeObject boot_platform_u-boot_common.o :
36		    start.cpp
37		    debug.cpp
38		    console.cpp
39		    serial.cpp
40		    devices.cpp
41		    keyboard.cpp
42		    menu.cpp
43		    cpu.cpp
44		    uimage.cpp
45		    video.cpp
46		    $(genericPlatformSources)
47		    :
48		    :
49		    boot_platform_generic_u-boot.a
50		    boot_fdt.a
51		;
52
53		BootMergeObject boot_platform_u-boot.o :
54		    : :
55		    # must come first to have _start_* at correct locations
56		    boot_platform_u-boot_$(TARGET_ARCH).o
57		    boot_platform_u-boot_common.o
58		;
59	}
60}
61
62
63# Tell the build system to where stage1.bin can be found, so it can be used
64# elsewhere.
65SEARCH on stage1.bin = $(SUBDIR) ;
66
67SubInclude HAIKU_TOP src system boot platform u-boot arch ;
68