1338b8dc3SIngo WeinholdSubDir HAIKU_TOP src system boot loader ; 25af32e75SAxel Dörfler 3338b8dc3SIngo WeinholdSubDirHdrs $(HAIKU_TOP) src add-ons kernel partitioning_systems amiga ; 4338b8dc3SIngo WeinholdSubDirHdrs $(HAIKU_TOP) src add-ons kernel partitioning_systems apple ; 561ba1259SAxel DörflerSubDirHdrs $(HAIKU_TOP) src add-ons kernel partitioning_systems gpt ; 6338b8dc3SIngo WeinholdSubDirHdrs $(HAIKU_TOP) src add-ons kernel partitioning_systems intel ; 76b202f4eSIngo WeinholdUsePrivateKernelHeaders ; 85af32e75SAxel DörflerUsePrivateHeaders [ FDirName kernel disk_device_manager ] ; 96b202f4eSIngo WeinholdUsePrivateHeaders [ FDirName kernel util ] ; 106b202f4eSIngo WeinholdUsePrivateHeaders shared storage ; 115af32e75SAxel Dörfler 125af32e75SAxel Dörfler{ 1330572237SIngo Weinhold DEFINES += 145af32e75SAxel Dörfler _BOOT_MODE 15da80a050SAlex Smith BOOT_ARCH=\\\"$(TARGET_KERNEL_ARCH)\\\" 16c06e68d0SAxel Dörfler KMESSAGE_CONTAINER_ONLY 175af32e75SAxel Dörfler 185af32e75SAxel Dörfler BOOT_SUPPORT_PARTITION_INTEL 195af32e75SAxel Dörfler 205af32e75SAxel Dörfler BOOT_SUPPORT_FILE_SYSTEM_BFS 2185a53ea2SAxel Dörfler BOOT_SUPPORT_FILE_SYSTEM_TARFS 22f335531bSFrançois Revol #BOOT_SUPPORT_FILE_MAP_DISK 23085cf27bSIngo Weinhold BOOT_SUPPORT_FILE_SYSTEM_FAT 245af32e75SAxel Dörfler ; 255af32e75SAxel Dörfler 26c06e68d0SAxel Dörfler # Add architecture specific partition/file system modules 27c06e68d0SAxel Dörfler 28da80a050SAlex Smith switch $(TARGET_KERNEL_ARCH) { 29c06e68d0SAxel Dörfler case "ppc" : 30c06e68d0SAxel Dörfler { 3130572237SIngo Weinhold DEFINES += 32c06e68d0SAxel Dörfler BOOT_SUPPORT_PARTITION_AMIGA 33c06e68d0SAxel Dörfler BOOT_SUPPORT_PARTITION_APPLE 34c06e68d0SAxel Dörfler 35c06e68d0SAxel Dörfler BOOT_SUPPORT_FILE_SYSTEM_AMIGA_FFS 36c06e68d0SAxel Dörfler ; 37c06e68d0SAxel Dörfler } 38c06e68d0SAxel Dörfler case "x86" : 39c06e68d0SAxel Dörfler { 4030572237SIngo Weinhold DEFINES += 417417d5edSAlex Smith ALTERNATE_BOOT_ARCH=\\\"x86_64\\\" 42f6a34444SAlex Smith BOOT_SUPPORT_ELF64 437417d5edSAlex Smith 44c06e68d0SAxel Dörfler BOOT_SUPPORT_PARTITION_EFI 45c06e68d0SAxel Dörfler 469e90c30eSAxel Dörfler #BOOT_SUPPORT_FILE_SYSTEM_FAT 47c06e68d0SAxel Dörfler ; 48c06e68d0SAxel Dörfler } 49c06e68d0SAxel Dörfler } 50c06e68d0SAxel Dörfler 5130572237SIngo Weinhold local kernelC++Header = [ FDirName $(HAIKU_TOP) headers private kernel util 5230572237SIngo Weinhold kernel_cpp.h ] ; 5330572237SIngo Weinhold 5430572237SIngo Weinhold SubDirC++Flags -fno-rtti -include $(kernelC++Header) ; 555af32e75SAxel Dörfler} 565af32e75SAxel Dörfler 5730572237SIngo Weinhold 5865ad1ba3SAlex SmithBootStaticLibrary boot_loader : 595af32e75SAxel Dörfler elf.cpp 6028a2172cSIngo Weinhold heap.cpp 615af32e75SAxel Dörfler kernel_args.cpp 625af32e75SAxel Dörfler load_driver_settings.cpp 6328a2172cSIngo Weinhold loader.cpp 6428a2172cSIngo Weinhold main.cpp 6528a2172cSIngo Weinhold menu.cpp 6628a2172cSIngo Weinhold pager.cpp 6728a2172cSIngo Weinhold partitions.cpp 6828a2172cSIngo Weinhold RootFileSystem.cpp 6928a2172cSIngo Weinhold stdio.cpp 7028a2172cSIngo Weinhold vfs.cpp 7128a2172cSIngo Weinhold vm.cpp 725af32e75SAxel Dörfler 735af32e75SAxel Dörfler # libroot 7485db3873SIngo Weinhold driver_settings.cpp 755af32e75SAxel Dörfler 765af32e75SAxel Dörfler # utils 775af32e75SAxel Dörfler kernel_cpp.cpp 789e8dc2a9SIngo Weinhold KMessage.cpp 79bd185b41SIngo Weinhold list.cpp 8028a2172cSIngo Weinhold ring_buffer.cpp 8189294b50SAxel Dörfler safemode_settings.cpp 82*3a7e0b00SIngo Weinhold StringHash.cpp 835af32e75SAxel Dörfler 8430572237SIngo Weinhold Referenceable.cpp 8530572237SIngo Weinhold 865af32e75SAxel Dörfler : -fno-pic 875af32e75SAxel Dörfler ; 885af32e75SAxel Dörfler 895af32e75SAxel Dörfler# The partition support is built in an extra static library 905af32e75SAxel Dörfler# so that only the ones that are used will be included. 915af32e75SAxel Dörfler 9265ad1ba3SAlex SmithBootStaticLibrary boot_partitions : 93f335531bSFrançois Revol FileMapDisk.cpp 945af32e75SAxel Dörfler amiga_rdb.cpp 955af32e75SAxel Dörfler apple.cpp 96ab313893SAxel Dörfler 97eef8417eSAxel Dörfler efi_gpt.cpp 98ab313893SAxel Dörfler Header.cpp 99ab313893SAxel Dörfler crc32.cpp 100ab313893SAxel Dörfler utility.cpp 101ab313893SAxel Dörfler 1025af32e75SAxel Dörfler intel.cpp 1035af32e75SAxel Dörfler PartitionMap.cpp 1045af32e75SAxel Dörfler PartitionMapParser.cpp 1055af32e75SAxel Dörfler : -fno-pic 1065af32e75SAxel Dörfler ; 1075af32e75SAxel Dörfler 1085af32e75SAxel Dörfler# Tell Jam where to find the utility sources 109*3a7e0b00SIngo WeinholdSEARCH on [ FGristFiles kernel_cpp.cpp list.cpp ring_buffer.cpp StringHash.cpp ] 110338b8dc3SIngo Weinhold = [ FDirName $(HAIKU_TOP) src system kernel util ] ; 1115af32e75SAxel Dörfler 1129e8dc2a9SIngo WeinholdSEARCH on [ FGristFiles KMessage.cpp ] 1139e8dc2a9SIngo Weinhold = [ FDirName $(HAIKU_TOP) src system kernel messaging ] ; 1149e8dc2a9SIngo Weinhold 11589294b50SAxel DörflerSEARCH on [ FGristFiles safemode_settings.cpp ] 11689294b50SAxel Dörfler = [ FDirName $(HAIKU_TOP) src system kernel debug ] ; 11789294b50SAxel Dörfler 11885db3873SIngo WeinholdSEARCH on [ FGristFiles driver_settings.cpp ] 119338b8dc3SIngo Weinhold = [ FDirName $(HAIKU_TOP) src system libroot os ] ; 1205af32e75SAxel Dörfler 1215af32e75SAxel DörflerSEARCH on [ FGristFiles amiga_rdb.cpp ] 122338b8dc3SIngo Weinhold = [ FDirName $(HAIKU_TOP) src add-ons kernel partitioning_systems amiga ] ; 1235af32e75SAxel Dörfler 1245af32e75SAxel DörflerSEARCH on [ FGristFiles apple.cpp ] 125338b8dc3SIngo Weinhold = [ FDirName $(HAIKU_TOP) src add-ons kernel partitioning_systems apple ] ; 1265af32e75SAxel Dörfler 127ab313893SAxel DörflerSEARCH on [ FGristFiles efi_gpt.cpp Header.cpp crc32.cpp utility.cpp ] 12861ba1259SAxel Dörfler = [ FDirName $(HAIKU_TOP) src add-ons kernel partitioning_systems gpt ] ; 129eef8417eSAxel Dörfler 1305af32e75SAxel DörflerSEARCH on [ FGristFiles intel.cpp PartitionMap.cpp PartitionMapParser.cpp ] 131338b8dc3SIngo Weinhold = [ FDirName $(HAIKU_TOP) src add-ons kernel partitioning_systems intel ] ; 1325af32e75SAxel Dörfler 1335af32e75SAxel DörflerSEARCH on [ FGristFiles stage2_crt0.S ] 134da80a050SAlex Smith = [ FDirName $(HAIKU_TOP) src system boot arch $(TARGET_KERNEL_ARCH) ] ; 1355af32e75SAxel Dörfler 13630572237SIngo WeinholdSEARCH on [ FGristFiles Referenceable.cpp ] 13730572237SIngo Weinhold = [ FDirName $(HAIKU_TOP) src kits support ] ; 13830572237SIngo Weinhold 1395af32e75SAxel Dörfler 140338b8dc3SIngo WeinholdSubInclude HAIKU_TOP src system boot loader file_systems ; 141d561d0adSIngo WeinholdSubInclude HAIKU_TOP src system boot loader net ; 142