xref: /haiku/src/add-ons/kernel/partitioning_systems/gpt/Jamfile (revision 4d8811742fa447ec05b4993a16a0931bc29aafab)
1SubDir HAIKU_TOP src add-ons kernel partitioning_systems gpt ;
2
3UsePrivateHeaders interface kernel storage ;
4UsePrivateSystemHeaders ;
5
6UseHeaders [ FDirName $(HAIKU_TOP) src libs uuid ] ;
7SubDirHdrs [ FDirName $(SUBDIR) $(DOTDOT) intel ] ;
8
9SEARCH_SOURCE += [ FDirName $(SUBDIR) $(DOTDOT) intel ] ;
10
11# Assemble the MBR code, and convert it into a header file
12MBRFLAGS on [ FGristFiles mbr.bin ] = -DMBR_CODE_ONLY ;
13BuildMBR [ FGristFiles mbr.bin ] : mbr.S ;
14
15DataFileToSourceFile [ FGristFiles MBR.h ] : [ FGristFiles mbr.bin ]
16	: kMBR : kMBRSize ;
17
18if $(TARGET_ARCH) = "x86" || $(TARGET_ARCH) = "x86_64" {
19	Depends [ FGristFiles PartitionMapWriter.cpp ] : [ FGristFiles MBR.h ] ;
20}
21
22KernelAddon efi_gpt :
23	efi_gpt.cpp
24	Header.cpp
25	crc32.cpp
26	utility.cpp
27	PartitionLocker.cpp
28
29	# from the Intel add-on
30	PartitionMap.cpp
31	PartitionMapWriter.cpp
32	:
33	libuuid_kernel.a
34;
35