CREATE_IMAGE_ONLY option added to releasetools/x86_hdimage.sh

This commit is contained in:
Koustubha Bhat 2014-06-10 17:05:29 +02:00 committed by Lionel Sambuc
parent dd85959391
commit 2d00147b3f

View file

@ -10,6 +10,7 @@ set -e
: ${FSTAB=${DESTDIR}/etc/fstab} : ${FSTAB=${DESTDIR}/etc/fstab}
: ${BUILDVARS=} : ${BUILDVARS=}
: ${BUILDSH=build.sh} : ${BUILDSH=build.sh}
: ${CREATE_IMAGE_ONLY=0}
# Where the kernel & boot modules will be # Where the kernel & boot modules will be
MODDIR=${DESTDIR}/multiboot MODDIR=${DESTDIR}/multiboot
@ -40,22 +41,41 @@ done
: ${IMG=minix_x86.img} : ${IMG=minix_x86.img}
#
# Are we going to build the minix sources?
#
if [ ${CREATE_IMAGE_ONLY} -eq 1 ]
then
if [ ! -d ${DESTDIR} ]
then
echo "Minix source code does'nt appear to have been built."
echo "Please try with \$CREATE_IMAGE_ONLY set to 0."
exit 1
fi
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} ${IMG}
mkdir -p ${IMG_DIR} ${CDFILES} mkdir -p ${IMG_DIR} ${CDFILES}
# if [ ${CREATE_IMAGE_ONLY} -eq 0 ]
# Remove the generated files to allow us call build.sh without '-V SLOPPY_FLIST=yes'. then
# echo "Going to build Minix source code..."
rm -f ${FSTAB} #
# Remove the generated files to allow us call build.sh without '-V SLOPPY_FLIST=yes'.
#
rm -f ${FSTAB}
# #
# Now start the build. # Now start the build.
# #
export CPPFLAGS=${FLAG} export CPPFLAGS=${FLAG}
sh ${BUILDSH} -j ${JOBS} -m ${ARCH} -O ${OBJ} -D ${DESTDIR} ${BUILDVARS} -U -u distribution sh ${BUILDSH} -j ${JOBS} -m ${ARCH} -O ${OBJ} -D ${DESTDIR} ${BUILDVARS} -U -u distribution
fi
if [ "x${ISOMODE}" = "x1" ] if [ "x${ISOMODE}" = "x1" ]
then then