2005-10-29 20:27:43 +04:00
|
|
|
SubDir HAIKU_TOP src system boot ;
|
2002-10-30 05:10:06 +03:00
|
|
|
|
2005-11-27 03:27:19 +03:00
|
|
|
local librootFunctions =
|
2005-11-27 16:31:50 +03:00
|
|
|
byteorder.o
|
2005-11-27 03:27:19 +03:00
|
|
|
ctype.o
|
|
|
|
qsort.o
|
|
|
|
kernel_vsprintf.o
|
|
|
|
memset.o
|
|
|
|
memcmp.o
|
|
|
|
memcpy.o
|
|
|
|
memmove.o
|
|
|
|
strdup.o
|
|
|
|
strlen.o
|
|
|
|
strnlen.o
|
|
|
|
strcmp.o
|
|
|
|
strcasecmp.o
|
|
|
|
strncmp.o
|
|
|
|
strcat.o
|
|
|
|
strcpy.o
|
|
|
|
strlcat.o
|
|
|
|
strlcpy.o
|
|
|
|
strchr.o
|
|
|
|
strrchr.o
|
|
|
|
strtol.o
|
|
|
|
;
|
|
|
|
|
|
|
|
KernelLd boot_loader :
|
|
|
|
boot_platform_$(TARGET_BOOT_PLATFORM).o
|
|
|
|
boot_loader.a
|
|
|
|
boot_partitions.a
|
|
|
|
|
|
|
|
# file systems
|
|
|
|
boot_bfs.a
|
|
|
|
boot_amiga_ffs.a
|
|
|
|
boot_tarfs.a
|
|
|
|
|
|
|
|
libz.a
|
|
|
|
|
|
|
|
# libroot functions needed by the stage2 boot loader (compiled for the
|
|
|
|
# kernel)
|
|
|
|
$(librootFunctions:G=src!system!kernel!lib)
|
|
|
|
|
|
|
|
# other kernel objects
|
|
|
|
<src!system!kernel!arch!$(TARGET_ARCH)>cpuid.o
|
|
|
|
|
|
|
|
: $(HAIKU_TOP)/src/system/ldscripts/$(TARGET_ARCH)/boot_loader.ld
|
|
|
|
: -Bstatic
|
2005-11-27 16:31:50 +03:00
|
|
|
;
|
2005-11-27 03:27:19 +03:00
|
|
|
|
|
|
|
rule BuildZbeos {
|
|
|
|
local zbeos = $(1) ;
|
|
|
|
local bootLoader = $(2) ;
|
|
|
|
|
|
|
|
Depends $(zbeos) : $(bootLoader) ;
|
|
|
|
MakeLocateDebug $(zbeos) ;
|
|
|
|
}
|
|
|
|
|
|
|
|
actions BuildZbeos {
|
|
|
|
rm -f $(1)
|
|
|
|
$(TARGET_OBJCOPY) -O binary $(2) $(1)
|
|
|
|
}
|
|
|
|
|
|
|
|
BuildZbeos zbeos : boot_loader ;
|
|
|
|
|
2005-10-29 20:27:43 +04:00
|
|
|
SubInclude HAIKU_TOP src system boot platform ;
|
|
|
|
SubInclude HAIKU_TOP src system boot loader ;
|