Add option to disable glibc and kernel headers installation
[hvlinux.git] / stage0 / packages-update
index edef445..f3d668d 100755 (executable)
@@ -8,11 +8,14 @@ source ../functions/main
 
 update_packages_init ${*}
 
-if [ "x${KERNEL}" = "x${NOUVEAU_NVIDIA_KERNEL}" ]; then
+if [ x"${INSTALL_GLIBC}" == x"1" ]; then
+    if [ "x${KERNEL}" = "x${NOUVEAU_NVIDIA_KERNEL}" ]; then
     # Special case
-    fpkg -m hv ${KERNEL}
-else
-    fpkg -s "linux/kernel/v$(get_pkg_ver1 ${KERNEL}).0" ${KERNEL} ${KERNEL_URL}
+        fpkg -m hv ${KERNEL}
+    else
+        fpkg -s "linux/kernel/v$(get_pkg_ver1 ${KERNEL}).0" ${KERNEL} \
+            ${KERNEL_URL}
+    fi
 fi
 
 fpkg -e "tar.gz" ${FILE_PKG} "ftp://ftp.astron.com/pub/file"
@@ -23,6 +26,9 @@ fpkg -e "tar.gz" ${MPC} "http://www.multiprecision.org/mpc/download"
 fpkg -e "tar.gz" ${CLOOG} "http://www.bastoul.net/cloog/pages/download"
 fpkg -e "tar.bz2" -m gnu ${BINUTILS}
 fpkg -m gnu -s "gcc/${GCC}" ${GCC}
-fpkg -m gnu ${GLIBC}
+
+if [ x"${INSTALL_GLIBC}" == x1 ]; then
+    fpkg -m gnu ${GLIBC}
+fi
 
 exit $?