minix/tools/chrootmake.sh

32 lines
750 B
Bash
Raw Normal View History

2005-04-21 16:53:53 +02:00
#!/bin/sh
set -e
export SHELL=/bin/sh
2006-04-12 13:32:49 +02:00
cd /usr/src
if [ $# -gt 0 ]
then make $@
exit $?
fi
make world
2006-04-12 13:32:49 +02:00
cd tools
rm revision
2005-08-12 14:34:56 +02:00
rm /boot/image/*
2012-01-30 14:40:16 +01:00
rm -f /boot/kernel/* # on old systems might not be present
rm -rf /boot/modules/* # same as above
make install
2006-04-13 19:15:40 +02:00
cp /boot/image/* /boot/image_big # Make big image accessible by this name
cp ../boot/boot/boot /boot/boot
2012-01-30 14:40:16 +01:00
cp ../sys/arch/i386/stand/boot/biosboot/boot_monitor /
CC=clang make cleandepend clean depend image
CC=clang make install
cp /boot/kernel/* /boot/kernel_default
cp -rf /boot/modules/* /boot/modules_default
2006-04-12 13:32:49 +02:00
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
find . -name 'obj-*' -type d|xargs rm -rf