]> Zhao Yanbai Git Server - minix.git/commitdiff
simplify chrootmake.sh
authorBen Gras <ben@minix3.org>
Wed, 15 Feb 2012 00:19:12 +0000 (01:19 +0100)
committerBen Gras <ben@minix3.org>
Wed, 15 Feb 2012 00:19:12 +0000 (01:19 +0100)
. just use make world

etc/mtree/minix.tree
tools/chrootmake.sh
tools/mkboot
tools/release.sh

index 15feb4c7802acecacd45d6c7a58fa49fe5062333..8d064092ad1af4d5a5756903f8b5d72ef4ce1df9 100644 (file)
@@ -7,6 +7,7 @@
 755 root    operator /etc/defaults
 755 root    operator /etc/system.conf.d
 755 root    operator /boot
+755 root    operator /boot/minix_default
 755 root    operator /boot/minix
 555 root    operator /mnt
 555 root    operator /proc
index c4f6422e139cad2b0523b52689096214e786f242..444d33f5da644f5874da6b58893410a43114d920 100755 (executable)
@@ -7,23 +7,11 @@ if [ $# -gt 0 ]
 then   make $@
        exit $?
 fi
-
 make world
+cp /usr/mdec/boot_monitor /
+cp /boot/minix_latest/* /boot/minix_default/
 
-cd tools 
-rm revision
-make install
-
-make cleandepend clean depend image
-rm revision
-rm -rf /boot/minix/* # on old systems might not be present
-make install
-cp ../sys/arch/i386/stand/boot/biosboot/boot_monitor /
-cp -rf /boot/minix/* /boot/minix_default
-
-cd /usr/src 
 if [ $MAKEMAP -ne 0 ]; then
        find . -type f -perm 755 | xargs nm -n 2> /dev/null > symbols.txt
 fi
-make clean
-make cleandepend
+make clean cleandepend
index 2c4f07b4e16992fc883ece1db07f6d70d0df0728..0389cb70742841dd7bfd8cf772b5eea9adca0ab3 100755 (executable)
@@ -128,7 +128,7 @@ hdboot)
                [ -d /boot/minix/.temp ] || exit 1
                mv /boot/minix/.temp /boot/minix/"$target"
                rm -f /boot/minix_latest
-               ln -s /boot/minix/"$target" /boot/minix_latest 
+               ln -s minix/"$target" /boot/minix_latest 
        else
                # Install the new image.
                echo "install $hdboot_t $root:/boot/$hdboot_t/$target"
index 519494c9337b758fb0557d7032250c0eb8fb4ccc..846bf0474dbf257ade81ffaea53ce1d3387b5193 100755 (executable)
@@ -241,6 +241,7 @@ mkdir -p $RELEASEDIR/usr/share/mk
 chmod 755 $RELEASEDIR/usr/share/mk
 cp $RELEASEDIR/usr/src/share/mk/* $RELEASEDIR/usr/share/mk/
 chown -R root $RELEASEDIR/usr/share/mk
+rm -f $RELEASEDIR/usr/$SRC/tools/revision
 cp chrootmake.sh $RELEASEDIR/usr/$SRC/tools/chrootmake.sh
 
 echo " * Make hierarchy"
@@ -255,6 +256,8 @@ if [ "$CUSTOM_PACKAGES" ]
 then   echo $PKG_ADD_URL >$RELEASEDIR/usr/pkg/etc/pkgin/repositories.conf
 fi
 
+echo " * Resetting timestamps"
+find $RELEASEDIR | xargs touch
 echo " * Chroot build"
 chroot $RELEASEDIR "PATH=/$XBIN:/usr/pkg/bin MAKEMAP=$MAKEMAP sh -x /usr/$SRC/tools/chrootmake.sh" || exit 1
 echo " * Chroot build done"
@@ -264,9 +267,6 @@ rm -rf $RELEASEDIR/$XBIN
 chown -R root $RELEASEDIR/usr/src*
 cp issue.install $RELEASEDIR/etc/issue
 
-echo " * Resetting timestamps"
-find $RELEASEDIR | xargs touch
-
 echo $version_pretty, SVN revision $REVISION, generated `date` >$RELEASEDIR/etc/version
 rm -rf $RELEASEDIR/tmp/*
 
@@ -373,7 +373,7 @@ if [ "$USB" -ne 0 ]; then
        mv $bootimage $IMG
 else
        cp $RELEASEDIR/usr/mdec/boot_monitor $CDFILES/boot
-       cp -rf $RELEASEDIR/boot/minix_default/* $CDFILES/
+       cp -rf $RELEASEDIR/boot/minix_latest/* $CDFILES/
        writeisofs -s0x0 -l MINIX -B $bootimage $boottype $CDFILES $IMG || exit 1
 
        if [ "$HDEMU" -eq 0 ]