x86 hd image creator
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
This commit is contained in:
committed by
Gerrit Code Review
parent
9dfbfc9af7
commit
a9db0ea184
@@ -76,7 +76,8 @@ SUBDIR= host-mkdep .WAIT compat .WAIT \
|
||||
cat cksum \
|
||||
file \
|
||||
.WAIT \
|
||||
pwd_mkdb stat zic
|
||||
pwd_mkdb stat zic \
|
||||
partition
|
||||
|
||||
.if ${MKLLVM} != "no"
|
||||
# .WAIT between llvm-tblgen and llvm-clang-tblgen ensures install
|
||||
|
||||
4
tools/partition/Makefile
Normal file
4
tools/partition/Makefile
Normal file
@@ -0,0 +1,4 @@
|
||||
HOSTPROGNAME= ${_TOOL_PREFIX}partition
|
||||
HOST_SRCDIR= commands/partition
|
||||
|
||||
.include "${.CURDIR}/../Makefile.host"
|
||||
Reference in New Issue
Block a user