cp /boot/image/* /boot/image_big # Make big image accessible by this name
cp ../boot/boot /boot/boot
cd /usr/src
+if [ $MAKEMAP -ne 0 ]; then
+ find . -type f -perm 755 | xargs nm -n 2> /dev/null > symbols.txt
+fi
make clean
# Let man find the manpages
makewhatis /usr/man
REVTAG=""
PACKAGES=1
MINIMAL=0
+MAKEMAP=0
ROOTKB=8192
FILENAMEOUT=""
-while getopts "s:pmchu?r:f:" c
+while getopts "s:pmMchu?r:f:" c
do
case "$c" in
\?)
- echo "Usage: $0 [-p] [-c] [-h] [-m] [-r <tag>] [-u] [-f <filename>] [-s <username>]" >&2
+ echo "Usage: $0 [-p] [-c] [-h] [-m] [-M] [-r <tag>] [-u] [-f <filename>] [-s <username>]" >&2
exit 1
;;
h)
ROOTKB=4096
[ ! "$USRMB" ] && USRMB=22
;;
+ M) MAKEMAP=1
+ ;;
esac
done
chown -R root $RELEASEDIR/etc/mk
echo " * Chroot build"
cp chrootmake.sh $RELEASEDIR/usr/$SRC/tools/chrootmake.sh
-chroot $RELEASEDIR "PATH=/$XBIN sh -x /usr/$SRC/tools/chrootmake.sh" || exit 1
+chroot $RELEASEDIR "PATH=/$XBIN MAKEMAP=$MAKEMAP sh -x /usr/$SRC/tools/chrootmake.sh" || exit 1
# Copy built images for cd booting
cp $RELEASEDIR/boot/image_big image
echo " * Chroot build done"
echo $version_pretty, SVN revision $REVISION, generated `date` >$RELEASEDIR/etc/version
if [ $MINIMAL -ne 0 ]
then
+ if [ "$MAKEMAP" -ne 0 ]
+ then
+ echo " * Copying symbol map to ${IMG}-symbols.txt"
+ cp $RELEASEDIR/usr/src/symbols.txt ${IMG}-symbols.txt
+ $ZIP -f ${IMG}-symbols.txt
+ fi
+
echo " * Removing files to create minimal image"
rm -rf $RELEASEDIR/boot/image/* $RELEASEDIR/usr/man/man*/* \
$RELEASEDIR/usr/share/zoneinfo* $RELEASEDIR/usr/src \