A script that creates a HD image ready to be booted by an x86 emulator, ready to work in a crossbuild environment. It's really just for qemu/kvm as there's no boot code in the MBR and no bootloader installed so we rely on the in-kvm multiboot implementation for now. This is very convenient for passing args too. To minimize reliance on external tools, we use the Minix 'partition' utility to write the partition table of the HD image, which therefore has to be compiled natively. . new script releasetools/x86_hdimage.sh . natively compile minix 'partition' utility . make <machine/partition.h> 64-bit safe for it Change-Id: If645b4691536752271e0b8a8ed59a34f248dace4
		
			
				
	
	
		
			9 lines
		
	
	
		
			192 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			192 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
PROG=	partition
 | 
						|
MAN=
 | 
						|
 | 
						|
# We need this to find our partition.h while compiling natively
 | 
						|
# on non-Minix.
 | 
						|
CPPFLAGS+= -I${NETBSDSRCDIR}/include/arch/${MACHINE_ARCH}/include
 | 
						|
 | 
						|
.include <bsd.prog.mk>
 |