release script fixes
. we need libc++ in the base system . big packages & sources don't fit on the cd any more . the fetch scripts have to be triggered for some tools Change-Id: Ife53c64fda0ed65b96fa8d6a0b0fee2c6a14d6d7
This commit is contained in:
parent
d84d0ef1a3
commit
597efc6c54
1 changed files with 8 additions and 5 deletions
|
@ -31,11 +31,7 @@ PACKAGEURL=ftp://ftp.minix3.org/pub/minix/packages/$version_pretty/`uname -m`/Al
|
||||||
PREINSTALLED_PACKAGES="
|
PREINSTALLED_PACKAGES="
|
||||||
pkg_install
|
pkg_install
|
||||||
pkgin
|
pkgin
|
||||||
bmake
|
|
||||||
binutils
|
|
||||||
clang
|
|
||||||
"
|
"
|
||||||
# pkg_tarup
|
|
||||||
|
|
||||||
PKG_ADD_URL=$PACKAGEURL
|
PKG_ADD_URL=$PACKAGEURL
|
||||||
|
|
||||||
|
@ -170,6 +166,9 @@ then
|
||||||
echo "Retrieving latest minix repo from $REPO branch $GITBRANCH."
|
echo "Retrieving latest minix repo from $REPO branch $GITBRANCH."
|
||||||
srcdir=$RELEASEDIR/usr/src
|
srcdir=$RELEASEDIR/usr/src
|
||||||
git clone -b $GITBRANCH $REPO $srcdir
|
git clone -b $GITBRANCH $REPO $srcdir
|
||||||
|
echo "Triggering fetch scripts"
|
||||||
|
( cd $srcdir && sh ./gnu/dist/fetch.sh )
|
||||||
|
( cd $srcdir && sh ./external/gpl3/binutils/fetch.sh )
|
||||||
if [ "$REVTAG" ]
|
if [ "$REVTAG" ]
|
||||||
then echo "Doing checkout of $REVTAG."
|
then echo "Doing checkout of $REVTAG."
|
||||||
(cd $srcdir && git checkout $REVTAG )
|
(cd $srcdir && git checkout $REVTAG )
|
||||||
|
@ -220,7 +219,7 @@ echo " * Build"
|
||||||
##########################################################################
|
##########################################################################
|
||||||
|
|
||||||
cd $RELEASEDIR/usr/src
|
cd $RELEASEDIR/usr/src
|
||||||
make distribution DESTDIR=$RELEASEDIR SLOPPY_FLIST=yes $BUILDOPTIONS
|
make build MKLIBCXX=yes DESTDIR=$RELEASEDIR SLOPPY_FLIST=yes $BUILDOPTIONS
|
||||||
make -C releasetools do-hdboot DESTDIR=$RELEASEDIR MKINSTALLBOOT=yes
|
make -C releasetools do-hdboot DESTDIR=$RELEASEDIR MKINSTALLBOOT=yes
|
||||||
cp $RELEASEDIR/usr/mdec/boot_monitor $RELEASEDIR
|
cp $RELEASEDIR/usr/mdec/boot_monitor $RELEASEDIR
|
||||||
cp $RELEASEDIR/boot/minix_latest/* $RELEASEDIR/boot/minix_default/
|
cp $RELEASEDIR/boot/minix_latest/* $RELEASEDIR/boot/minix_default/
|
||||||
|
@ -264,6 +263,10 @@ if [ $EXTRAS_INSTALL -ne 0 ] ; then
|
||||||
cp -Rv $EXTRAS_PATH/* $RELEASEDIR
|
cp -Rv $EXTRAS_PATH/* $RELEASEDIR
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo " * Removing sources"
|
||||||
|
|
||||||
|
rm -rf $RELEASEDIR/usr/src # No space for /usr/src
|
||||||
|
|
||||||
# If we are making a jail, all is done!
|
# If we are making a jail, all is done!
|
||||||
if [ $JAILMODE = 1 ]
|
if [ $JAILMODE = 1 ]
|
||||||
then echo "Created new minix install in $RELEASEDIR."
|
then echo "Created new minix install in $RELEASEDIR."
|
||||||
|
|
Loading…
Reference in a new issue