2004-12-19 04:39:52 +03:00
#/bin/sh
2005-07-04 19:02:25 +04:00
EXTRAS = " \
extras/scsi_id \
extras/ata_id \
extras/volume_id \
extras/usb_id \
2005-07-13 13:35:51 +04:00
extras/dasd_id \
2005-08-12 01:37:54 +04:00
extras/cdrom_id \
2005-09-06 14:18:04 +04:00
extras/edd_id \
2005-07-19 19:14:12 +04:00
extras/floppy \
2005-08-09 21:00:37 +04:00
extras/run_directory \
extras/firmware"
2004-12-19 04:39:52 +03:00
2005-02-04 23:57:39 +03:00
[ -z " $KERNEL_DIR " ] && KERNEL_DIR = /lib/modules/` uname -r` /build
echo KERNEL_DIR: " $KERNEL_DIR "
2005-09-14 19:29:27 +04:00
# with debug
2005-02-04 23:57:39 +03:00
make spotless EXTRAS = " $EXTRAS " >/dev/null
2005-04-12 00:38:41 +04:00
make all -j4 $MAKEOPTS DEBUG = true EXTRAS = " $EXTRAS " || exit
2004-12-19 04:39:52 +03:00
echo -e "\n\n"
2005-09-14 19:29:27 +04:00
# without any logging
2005-02-04 23:57:39 +03:00
make spotless EXTRAS = " $EXTRAS " >/dev/null
2005-02-12 05:42:03 +03:00
make all $MAKEOPTS USE_LOG = false EXTRAS = " $EXTRAS " || exit
2004-12-19 04:39:52 +03:00
echo -e "\n\n"
2005-09-14 19:29:27 +04:00
# klibc and debug
2005-02-04 23:57:39 +03:00
make spotless EXTRAS = " $EXTRAS " >/dev/null
2005-04-12 00:38:41 +04:00
make all -j4 $MAKEOPTS USE_KLIBC = true DEBUG = true EXTRAS = " $EXTRAS " KERNEL_DIR = " $KERNEL_DIR " || exit
2004-12-19 04:39:52 +03:00
echo -e "\n\n"
2005-09-14 19:29:27 +04:00
# klibc without logging
2005-02-04 23:57:39 +03:00
make spotless EXTRAS = " $EXTRAS " >/dev/null
2005-02-12 05:42:03 +03:00
make all $MAKEOPTS USE_KLIBC = true USE_LOG = false EXTRAS = " $EXTRAS " KERNEL_DIR = " $KERNEL_DIR " || exit
2004-12-19 04:39:52 +03:00
echo -e "\n\n"
2005-09-14 19:29:27 +04:00
# install in temporary dir and show it
TEMPDIR = "`pwd`/.tmp"
rm -rf $TEMPDIR
mkdir $TEMPDIR
make spotless EXTRAS = " $EXTRAS " >/dev/null
make all $MAKEOPTS DESTDIR = " $TEMPDIR " EXTRAS = " $EXTRAS " || exit
make install DESTDIR = " $TEMPDIR " EXTRAS = " $EXTRAS " || exit
echo -e "\nInstalled tree:"
find $TEMPDIR
rm -rf $TEMPDIR
2005-02-04 23:57:39 +03:00
make spotless EXTRAS = " $EXTRAS " >/dev/null