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
		
			
				
	
	
		
			14 lines
		
	
	
		
			281 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			281 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
 | 
						|
# Only include Minix-specific libraries when compiling
 | 
						|
# for non-Minix, i.e. not natively in a crossbuild.
 | 
						|
.if !defined(HOSTPROGNAME)
 | 
						|
LDADD+= -lminlib -lcompat_minix -lasyn -lterminfo
 | 
						|
.endif
 | 
						|
 | 
						|
BINDIR?=/usr/bin
 | 
						|
 | 
						|
# BJG too many warnings here
 | 
						|
NOGCCERROR?=    yes
 | 
						|
NOCLANGERROR?=  yes
 | 
						|
 |