1 SubDir HAIKU_TOP src tests system boot loader ;
3 SetSubDirSupportedPlatformsBeOSCompatible ;
5 UsePrivateHeaders [ FDirName kernel disk_device_manager ] ;
6 UsePrivateHeaders [ FDirName kernel util ] ;
7 UsePrivateHeaders kernel shared storage system ;
8 SubDirSysHdrs $(HAIKU_TOP) headers private kernel arch $(TARGET_KERNEL_ARCH) ;
9 SubDirSysHdrs $(HAIKU_TOP) headers private system arch $(TARGET_ARCH) ;
10 SubDirSysHdrs $(HAIKU_TOP) src tests system boot loader ;
11 SubDirHdrs $(HAIKU_TOP) src system boot loader ;
12 SubDirHdrs $(HAIKU_TOP) src add-ons kernel partitioning_systems amiga ;
13 SubDirHdrs $(HAIKU_TOP) src add-ons kernel partitioning_systems apple ;
14 SubDirHdrs $(HAIKU_TOP) src add-ons kernel partitioning_systems gpt ;
15 SubDirHdrs $(HAIKU_TOP) src add-ons kernel partitioning_systems intel ;
17 # we need to redefine certain calls in the boot loader so that
18 # they will really be used instead of their POSIX counterparts
31 load_driver_settings.cpp
49 PartitionMapParser.cpp
51 read_pos=boot_read_pos fstat=boot_fstat open=boot_open close=boot_close main=boot_main
57 BOOT_ARCH=\\\"$(TARGET_ARCH)\\\"
58 # the boot loader test application will try to load the BeOS kernel
59 # from a supported partition/file system
61 BOOT_SUPPORT_PARTITION_AMIGA
62 BOOT_SUPPORT_PARTITION_APPLE
63 BOOT_SUPPORT_PARTITION_EFI
64 BOOT_SUPPORT_PARTITION_INTEL
66 BOOT_SUPPORT_FILE_SYSTEM_BFS
67 BOOT_SUPPORT_FILE_SYSTEM_AMIGA_FFS
68 BOOT_SUPPORT_FILE_SYSTEM_TARFS
71 defines = [ FDefines $(defines) ] ;
74 SubDirC++Flags $(defines) ;
76 #SubDirC++Flags $(defines) -DHAVE_READ_POS=1 -fcheck-memory-usage -D_NO_INLINE_ASM ;
77 SubDirC++Flags $(defines) -DHAVE_READ_POS=1 -D_NO_INLINE_ASM ;
81 SimpleTest BootLoaderTest :
102 load_driver_settings.cpp
105 # partitioning systems
116 PartitionMapParser.cpp
125 boottest_bfs.a boottest_amiga_ffs.a boottest_tarfs.a libz.a
129 # Tell Jam where to find the utility sources
131 SEARCH on [ FGristFiles list.cpp ring_buffer.cpp ]
132 = [ FDirName $(HAIKU_TOP) src system kernel util ] ;
134 SEARCH on [ FGristFiles KMessage.cpp ]
135 = [ FDirName $(HAIKU_TOP) src system kernel messaging ] ;
137 SEARCH on [ FGristFiles strlcat.c strlcpy.c ]
138 = [ FDirName $(HAIKU_TOP) src system libroot posix string ] ;
140 SEARCH on [ FGristFiles driver_settings.cpp ]
141 = [ FDirName $(HAIKU_TOP) src system libroot os ] ;
143 SEARCH on [ FGristFiles
144 main.cpp vfs.cpp partitions.cpp
145 heap.cpp RootFileSystem.cpp
146 elf.cpp menu.cpp loader.cpp
147 kernel_args.cpp load_driver_settings.cpp pager.cpp
148 ] = [ FDirName $(HAIKU_TOP) src system boot loader ] ;
150 # partitioning system modules
152 SEARCH on [ FGristFiles amiga_rdb.cpp ]
153 = [ FDirName $(HAIKU_TOP) src add-ons kernel partitioning_systems amiga ] ;
155 SEARCH on [ FGristFiles apple.cpp ]
156 = [ FDirName $(HAIKU_TOP) src add-ons kernel partitioning_systems apple ] ;
158 SEARCH on [ FGristFiles efi_gpt.cpp Header.cpp crc32.cpp utility.cpp ]
159 = [ FDirName $(HAIKU_TOP) src add-ons kernel partitioning_systems gpt ] ;
161 SEARCH on [ FGristFiles intel.cpp PartitionMap.cpp PartitionMapParser.cpp ]
162 = [ FDirName $(HAIKU_TOP) src add-ons kernel partitioning_systems intel ] ;
165 SubInclude HAIKU_TOP src tests system boot loader file_systems ;