Add option to disable glibc and kernel headers installation
[hvlinux.git] / stage0 / hv-install-2
index 8e3bf20..ef76fbd 100755 (executable)
@@ -1,12 +1,13 @@
 #!/bin/bash
 
 source ~/.bashrc
-
 source ../functions/main
 
 init_log_file
 
-ipkg -m noac ${KERNEL}
+if [ x"${INSTALL_GLIBC}" == x"1" ]; then
+    ipkg -m noac ${KERNEL}
+fi
 
 case "${HVL_TARGET}" in
     x86*)
@@ -42,7 +43,10 @@ LDFLAGS=""
 
 ipkg ${BINUTILS}
 ipkg -l "${GCC}-pass1" ${GCC}
-ipkg ${GLIBC}
-ipkg -l "${GCC}-pass2" ${GCC}
+
+if [ x"${INSTALL_GLIBC}" == x"1" ]; then
+    ipkg ${GLIBC}
+    ipkg -l "${GCC}-pass2" ${GCC}
+fi
 
 exit $?