reorder drivers for more efficient making
mtree - added /usr/gnu release - fiddling with deleting unwanted bits before copying for more efficient packing
This commit is contained in:
parent
c1de7758b7
commit
0be5f3cf7b
3 changed files with 22 additions and 7 deletions
|
@ -34,9 +34,10 @@ all install depend clean:
|
||||||
|
|
||||||
image:
|
image:
|
||||||
cd ./libdriver && $(MAKE) build
|
cd ./libdriver && $(MAKE) build
|
||||||
|
cd ./libpci && $(MAKE) build
|
||||||
|
cd ./tty && $(MAKE) build
|
||||||
cd ./memory && $(MAKE) build
|
cd ./memory && $(MAKE) build
|
||||||
cd ./at_wini && $(MAKE) build
|
cd ./at_wini && $(MAKE) build
|
||||||
cd ./floppy && $(MAKE) build
|
cd ./floppy && $(MAKE) build
|
||||||
cd ./bios_wini && $(MAKE) build
|
cd ./bios_wini && $(MAKE) build
|
||||||
cd ./log && $(MAKE) build
|
cd ./log && $(MAKE) build
|
||||||
cd ./tty && $(MAKE) build
|
|
||||||
|
|
|
@ -15,6 +15,8 @@
|
||||||
755 root operator /usr/adm/old
|
755 root operator /usr/adm/old
|
||||||
755 ast other /usr/ast
|
755 ast other /usr/ast
|
||||||
755 bin operator /usr/bin
|
755 bin operator /usr/bin
|
||||||
|
755 bin operator /usr/gnu
|
||||||
|
755 bin operator /usr/gnu/bin
|
||||||
755 root operator /usr/etc
|
755 root operator /usr/etc
|
||||||
755 root operator /home
|
755 root operator /home
|
||||||
755 root operator /usr/home
|
755 root operator /usr/home
|
||||||
|
|
|
@ -66,8 +66,9 @@ ROOTBLOCKS="`expr $ROOTMB \* 1024 \* 1024 / $BS`"
|
||||||
|
|
||||||
HDEMU=0
|
HDEMU=0
|
||||||
COPY=0
|
COPY=0
|
||||||
|
ALL=0
|
||||||
|
|
||||||
while getopts "ch?" c
|
while getopts "cha?" c
|
||||||
do
|
do
|
||||||
case "$c" in
|
case "$c" in
|
||||||
\?)
|
\?)
|
||||||
|
@ -80,6 +81,9 @@ do
|
||||||
c)
|
c)
|
||||||
COPY=1
|
COPY=1
|
||||||
;;
|
;;
|
||||||
|
a)
|
||||||
|
ALL=1
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -147,20 +151,28 @@ echo " * Transfering $COPYITEMS to $RELEASEDIR"
|
||||||
if [ "$COPY" -ne 1 ]
|
if [ "$COPY" -ne 1 ]
|
||||||
then
|
then
|
||||||
echo " * Doing new cvs export"
|
echo " * Doing new cvs export"
|
||||||
( cd $RELEASEDIR/usr && mkdir src && cvs export -rHEAD src >/dev/null || exit 1 )
|
rm -rf src
|
||||||
|
cvs export -rHEAD src >/dev/null || exit 1
|
||||||
|
srcdir=src
|
||||||
|
if [ "$ALL" = 0 ]
|
||||||
|
then
|
||||||
|
# No contrib stuff
|
||||||
|
rm -rf src/contrib
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
( cd .. && make clean )
|
( cd .. && make clean )
|
||||||
echo " * Transfering source to $RELEASEDIR"
|
srcdir=/usr/src
|
||||||
( cd /usr && tar cf - src ) | ( cd $RELEASEDIR/usr && tar xf - )
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo " * Transfering source to $RELEASEDIR"
|
||||||
|
|
||||||
|
( cd $srcdir && tar cf - . ) | ( cd $RELEASEDIR/usr && mkdir src && cd src && tar xf - )
|
||||||
|
|
||||||
chown -R bin $RELEASEDIR/usr/src
|
chown -R bin $RELEASEDIR/usr/src
|
||||||
find $RELEASEDIR/usr/src -type d | xargs chmod 755
|
find $RELEASEDIR/usr/src -type d | xargs chmod 755
|
||||||
find $RELEASEDIR/usr/src -type f | xargs chmod 644
|
find $RELEASEDIR/usr/src -type f | xargs chmod 644
|
||||||
# Bug tracking system not for on cd
|
# Bug tracking system not for on cd
|
||||||
rm -rf $RELEASEDIR/usr/src/doc/bugs
|
rm -rf $RELEASEDIR/usr/src/doc/bugs
|
||||||
# No GNU core utils
|
|
||||||
rm -rf $RELEASEDIR/usr/src/contrib/gnu/coreutils*
|
|
||||||
# Make sure the CD knows it's a CD
|
# Make sure the CD knows it's a CD
|
||||||
date >$RELEASEDIR/CD
|
date >$RELEASEDIR/CD
|
||||||
echo " * Chroot build"
|
echo " * Chroot build"
|
||||||
|
|
Loading…
Reference in a new issue