small arm image script changes
. let you specify IMG as a block device directly. this minimizes i/o (only write used parts of the filesystem) and so turnaround time - while still allowing the big default FS size. Change-Id: Ib738499464e0d350a474a706f688d3f10806207d
This commit is contained in:
parent
ab5c98ee5a
commit
8d311af7ae
1 changed files with 7 additions and 2 deletions
|
@ -137,7 +137,12 @@ fi
|
||||||
#
|
#
|
||||||
# Artifacts from this script are stored in the IMG_DIR
|
# Artifacts from this script are stored in the IMG_DIR
|
||||||
#
|
#
|
||||||
rm -rf ${IMG_DIR} ${IMG}
|
rm -rf ${IMG_DIR}
|
||||||
|
|
||||||
|
if [ -f ${IMG} ] # IMG might be a block device
|
||||||
|
then rm -f ${IMG}
|
||||||
|
fi
|
||||||
|
|
||||||
mkdir -p ${IMG_DIR}
|
mkdir -p ${IMG_DIR}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -288,7 +293,7 @@ _HOME_SIZE=$((`${CROSS_TOOLS}/nbmkfs.mfs -I $((${HOME_START} * 512)) -b $((${HOM
|
||||||
# Write the partition table using the natively compiled
|
# Write the partition table using the natively compiled
|
||||||
# minix partition utility
|
# minix partition utility
|
||||||
#
|
#
|
||||||
${CROSS_TOOLS}/nbpartition -m ${IMG} ${FAT_START} "c:${FAT_SIZE}*" \
|
${CROSS_TOOLS}/nbpartition -f -m ${IMG} ${FAT_START} "c:${FAT_SIZE}*" \
|
||||||
81:${_ROOT_SIZE} 81:${_USR_SIZE} 81:${_HOME_SIZE}
|
81:${_ROOT_SIZE} 81:${_USR_SIZE} 81:${_HOME_SIZE}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue