xref: /haiku/src/system/boot/Jamfile (revision 1214ef1b2100f2b3299fc9d8d6142e46f70a4c3f)
1SubDir HAIKU_TOP src system boot ;
2
3local librootFunctions =
4	byteorder.o
5	ctype.o
6	qsort.o
7	kernel_vsprintf.o
8	memset.o
9	memcmp.o
10	memcpy.o
11	memmove.o
12	strdup.o
13	strlen.o
14	strnlen.o
15	strcmp.o
16	strcasecmp.o
17	strncmp.o
18	strcat.o
19	strcpy.o
20	strlcat.o
21	strlcpy.o
22	strchr.o
23	strrchr.o
24	strtol.o
25;
26
27AddResources zbeos : boot_loader.rdef ;
28
29KernelLd boot_loader_$(TARGET_BOOT_PLATFORM) :
30	boot_platform_$(TARGET_BOOT_PLATFORM).o
31	boot_arch_$(TARGET_ARCH).o
32	boot_loader.a
33	boot_net.a
34	boot_partitions.a
35
36	# file systems
37	boot_bfs.a
38	boot_amiga_ffs.a
39	boot_tarfs.a
40
41	libz.a
42
43	# libroot functions needed by the stage2 boot loader (compiled for the
44	# kernel)
45	$(librootFunctions:G=src!system!kernel!lib)
46
47	: $(HAIKU_TOP)/src/system/ldscripts/$(TARGET_ARCH)/boot_loader_$(TARGET_BOOT_PLATFORM).ld
48	: -Bstatic
49;
50
51rule BuildZbeos {
52	local zbeos = $(1) ;
53	local bootLoader = $(2) ;
54
55	Depends $(zbeos) : $(bootLoader) ;
56	MakeLocateDebug $(zbeos) ;
57
58	on $(1) ResAttr $(1) : $(RESFILES) : false ;
59	if ! [ on $(1) return $(DONT_USE_BEOS_RULES) ] {
60		SetType $(1) ;
61		MimeSet $(1) ;
62	}
63}
64
65actions BuildZbeos {
66	rm -f $(1)
67	$(TARGET_OBJCOPY) -O binary $(2) $(1)
68}
69
70BuildZbeos zbeos : boot_loader_$(TARGET_BOOT_PLATFORM) ;
71
72# different target for PXE, to be build with TARGET_BOOT_PLATFORM=pxe_ia32 jam pxehaiku-loader
73BuildZbeos pxehaiku-loader : boot_loader_$(TARGET_BOOT_PLATFORM) ;
74
75SubInclude HAIKU_TOP src system boot arch $(TARGET_ARCH) ;
76SubInclude HAIKU_TOP src system boot loader ;
77SubInclude HAIKU_TOP src system boot platform ;
78