xref: /haiku/src/tools/makebootable/platform/bios_ia32/Jamfile (revision d3d8b26997fac34a84981e6d2b649521de2cc45a)
1SubDir HAIKU_TOP src tools makebootable platform bios_ia32 ;
2
3UsePrivateHeaders storage ;
4
5SEARCH_SOURCE
6	+= [ FDirName $(HAIKU_TOP) src bin makebootable platform bios_ia32 ] ;
7
8USES_BE_API on <build>makebootable = true ;
9
10local hostPlatformSources ;
11if $(HOST_PLATFORM) = linux {
12	hostPlatformSources = PartitionMap.cpp PartitionMapParser.cpp ;
13
14	SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src add-ons kernel
15		partitioning_systems intel ] ;
16
17	DEFINES += _USER_MODE ;
18}
19
20# write the stage 1 boot loader into the makebootable resources
21AddFileDataResource <build>makebootable : RAWT:666:BootCode : stage1.bin ;
22
23BuildPlatformMain <build>makebootable :
24	makebootable.cpp
25	$(hostPlatformSources)
26	: $(HOST_LIBBE)
27;
28