1SubDir HAIKU_TOP src system boot loader ; 2 3SubDirHdrs $(HAIKU_TOP) src add-ons kernel partitioning_systems amiga ; 4SubDirHdrs $(HAIKU_TOP) src add-ons kernel partitioning_systems apple ; 5SubDirHdrs $(HAIKU_TOP) src add-ons kernel partitioning_systems gpt ; 6SubDirHdrs $(HAIKU_TOP) src add-ons kernel partitioning_systems intel ; 7UsePrivateKernelHeaders ; 8UsePrivateHeaders [ FDirName kernel disk_device_manager ] ; 9UsePrivateHeaders [ FDirName kernel util ] ; 10UsePrivateHeaders shared storage ; 11 12local defines = $(DEFINES) ; 13 14local platform ; 15for platform in [ MultiBootSubDirSetup ] { 16 on $(platform) { 17 { 18 DEFINES = $(defines) ; 19 20 DEFINES += 21 _BOOT_MODE 22 BOOT_ARCH=\\\"$(TARGET_KERNEL_ARCH)\\\" 23 KMESSAGE_CONTAINER_ONLY 24 25 BOOT_SUPPORT_PARTITION_INTEL 26 27 BOOT_SUPPORT_FILE_SYSTEM_BFS 28 BOOT_SUPPORT_FILE_SYSTEM_TARFS 29 #BOOT_SUPPORT_FILE_MAP_DISK 30 BOOT_SUPPORT_FILE_SYSTEM_FAT 31 ; 32 33 # Add architecture specific partition/file system modules 34 35 switch $(TARGET_KERNEL_ARCH) { 36 case "ppc" : 37 { 38 DEFINES += 39 BOOT_SUPPORT_PARTITION_AMIGA 40 BOOT_SUPPORT_PARTITION_APPLE 41 42 BOOT_SUPPORT_FILE_SYSTEM_AMIGA_FFS 43 ; 44 } 45 case "x86" : 46 { 47 DEFINES += 48 ALTERNATE_BOOT_ARCH=\\\"x86_64\\\" 49 BOOT_SUPPORT_ELF64 50 51 BOOT_SUPPORT_PARTITION_EFI 52 53 #BOOT_SUPPORT_FILE_SYSTEM_FAT 54 ; 55 if $(TARGET_BOOT_PLATFORM) = efi { 56 DEFINES += 57 _BOOT_PLATFORM_EFI 58 ; 59 } 60 } 61 } 62 63 if $(TARGET_BOOT_PLATFORM) != efi { 64 DEFINES += BOOT_SUPPORT_ELF32 ; 65 } 66 67 local kernelC++Header = [ FDirName $(HAIKU_TOP) headers private kernel util 68 kernel_cpp.h ] ; 69 70 SubDirC++Flags -fno-rtti -include $(kernelC++Header) ; 71 } 72 73 74 BootStaticLibrary [ MultiBootGristFiles boot_loader ] : 75 PathBlacklist.cpp 76 elf.cpp 77 heap.cpp 78 kernel_args.cpp 79 load_driver_settings.cpp 80 loader.cpp 81 main.cpp 82 menu.cpp 83 package_support.cpp 84 pager.cpp 85 partitions.cpp 86 RootFileSystem.cpp 87 stdio.cpp 88 vfs.cpp 89 vm.cpp 90 91 # libroot 92 driver_settings.cpp 93 94 # utils 95 kernel_cpp.cpp 96 KMessage.cpp 97 list.cpp 98 ring_buffer.cpp 99 safemode_settings.cpp 100 StringHash.cpp 101 102 DataIO.cpp 103 Referenceable.cpp 104 ; 105 106 # The partition support is built in an extra static library 107 # so that only the ones that are used will be included. 108 109 BootStaticLibrary [ MultiBootGristFiles boot_partitions ] : 110 FileMapDisk.cpp 111 amiga_rdb.cpp 112 apple.cpp 113 114 efi_gpt.cpp 115 Header.cpp 116 crc32.cpp 117 utility.cpp 118 119 intel.cpp 120 PartitionMap.cpp 121 PartitionMapParser.cpp 122 ; 123 124 # Tell Jam where to find the utility sources 125 SEARCH on [ FGristFiles kernel_cpp.cpp list.cpp ring_buffer.cpp StringHash.cpp ] 126 = [ FDirName $(HAIKU_TOP) src system kernel util ] ; 127 128 SEARCH on [ FGristFiles KMessage.cpp ] 129 = [ FDirName $(HAIKU_TOP) src system kernel messaging ] ; 130 131 SEARCH on [ FGristFiles safemode_settings.cpp ] 132 = [ FDirName $(HAIKU_TOP) src system kernel debug ] ; 133 134 SEARCH on [ FGristFiles driver_settings.cpp ] 135 = [ FDirName $(HAIKU_TOP) src system libroot os ] ; 136 137 SEARCH on [ FGristFiles amiga_rdb.cpp ] 138 = [ FDirName $(HAIKU_TOP) src add-ons kernel partitioning_systems amiga ] ; 139 140 SEARCH on [ FGristFiles apple.cpp ] 141 = [ FDirName $(HAIKU_TOP) src add-ons kernel partitioning_systems apple ] ; 142 143 SEARCH on [ FGristFiles efi_gpt.cpp Header.cpp crc32.cpp utility.cpp ] 144 = [ FDirName $(HAIKU_TOP) src add-ons kernel partitioning_systems gpt ] ; 145 146 SEARCH on [ FGristFiles intel.cpp PartitionMap.cpp PartitionMapParser.cpp ] 147 = [ FDirName $(HAIKU_TOP) src add-ons kernel partitioning_systems intel ] ; 148 149 SEARCH on [ FGristFiles stage2_crt0.S ] 150 = [ FDirName $(HAIKU_TOP) src system boot arch $(TARGET_KERNEL_ARCH) ] ; 151 152 SEARCH on [ FGristFiles DataIO.cpp Referenceable.cpp ] 153 = [ FDirName $(HAIKU_TOP) src kits support ] ; 154 } 155} 156 157SubInclude HAIKU_TOP src system boot loader file_systems ; 158SubInclude HAIKU_TOP src system boot loader net ; 159