chiark / gitweb /
don't remove symlinks if they are already there
[elogind.git] / test / simple-build-check.sh
index daf0b7526940427879a49b9203007232594f9183..6d7272f80e6ff7ca89102729cefff94f547d0b2d 100755 (executable)
@@ -1,6 +1,7 @@
 #/bin/sh
 
 EXTRAS="\
 #/bin/sh
 
 EXTRAS="\
+       extras/path_id \
        extras/scsi_id \
        extras/ata_id \
        extras/volume_id \
        extras/scsi_id \
        extras/ata_id \
        extras/volume_id \
@@ -12,9 +13,6 @@ EXTRAS="\
        extras/run_directory \
        extras/firmware"
 
        extras/run_directory \
        extras/firmware"
 
-[ -z "$KERNEL_DIR" ] && KERNEL_DIR=/lib/modules/`uname -r`/build
-echo KERNEL_DIR: "$KERNEL_DIR"
-
 # with debug
 make clean EXTRAS="$EXTRAS" >/dev/null
 make all -j4 $MAKEOPTS DEBUG=true EXTRAS="$EXTRAS" || exit
 # with debug
 make clean EXTRAS="$EXTRAS" >/dev/null
 make all -j4 $MAKEOPTS DEBUG=true EXTRAS="$EXTRAS" || exit
@@ -25,10 +23,13 @@ make clean EXTRAS="$EXTRAS" >/dev/null
 make all $MAKEOPTS USE_LOG=false EXTRAS="$EXTRAS" || exit
 echo -e "\n\n"
 
 make all $MAKEOPTS USE_LOG=false EXTRAS="$EXTRAS" || exit
 echo -e "\n\n"
 
-# klibc and debug
-make clean EXTRAS="$EXTRAS" >/dev/null
-make all -j4 $MAKEOPTS USE_KLIBC=true DEBUG=true EXTRAS="$EXTRAS" KERNEL_DIR="$KERNEL_DIR" || exit
-echo -e "\n\n"
+# klibc build
+if [ -n "$KLCC" -a -e "$KLCC" ]; then
+       echo KLCC: "$KLCC"
+       make clean EXTRAS="$EXTRAS" >/dev/null
+       make all -j4 $MAKEOPTS USE_KLIBC=true DEBUG=true EXTRAS="$EXTRAS" KLCC="$KLCC" || exit
+       echo -e "\n\n"
+fi
 
 # install in temporary dir and show it
 TEMPDIR="`pwd`/.tmp"
 
 # install in temporary dir and show it
 TEMPDIR="`pwd`/.tmp"