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 27local platformObjects = ; 28if $(TARGET_ARCH) = x86 { 29 platformObjects += <src!system!kernel!arch!$(TARGET_ARCH)>cpuid.o ; 30} 31 32KernelLd boot_loader : 33 boot_platform_$(TARGET_BOOT_PLATFORM).o 34 boot_arch_$(TARGET_ARCH).o 35 boot_loader.a 36 boot_net.a 37 boot_partitions.a 38 39 # file systems 40 boot_bfs.a 41 boot_amiga_ffs.a 42 boot_tarfs.a 43 44 libz.a 45 46 # libroot functions needed by the stage2 boot loader (compiled for the 47 # kernel) 48 $(librootFunctions:G=src!system!kernel!lib) 49 50 # platform specific objects 51 $(platformObjects) 52 53 : $(HAIKU_TOP)/src/system/ldscripts/$(TARGET_ARCH)/boot_loader.ld 54 : -Bstatic 55; 56 57rule BuildZbeos { 58 local zbeos = $(1) ; 59 local bootLoader = $(2) ; 60 61 Depends $(zbeos) : $(bootLoader) ; 62 MakeLocateDebug $(zbeos) ; 63} 64 65actions BuildZbeos { 66 rm -f $(1) 67 $(TARGET_OBJCOPY) -O binary $(2) $(1) 68} 69 70BuildZbeos zbeos : boot_loader ; 71 72SubInclude HAIKU_TOP src system boot arch $(TARGET_ARCH) ; 73SubInclude HAIKU_TOP src system boot loader ; 74SubInclude HAIKU_TOP src system boot platform ; 75