Update binutils for new install dir option
[hvlinux.git] / stage0 / hv-install-2
index 5c9d66b..5bff462 100755 (executable)
@@ -6,16 +6,9 @@ source ../functions/main
 init_log_file
 
 if [ x"${INSTALL_GLIBC}" == x"1" ]; then
-    ipkg -m noac ${KERNEL}
+    ipkg -m noac -l "kernel-headers" -s "kernel-headers" ${KERNEL}
 fi
 
-case "${HVL_TARGET}" in
-    x86*)
-        ipkg ${FILE_PKG}
-        ipkg ${NCURSES}
-        ;;
-esac
-
 ipkg ${GMP} "\
     --enable-cxx \
     --disable-static"
@@ -42,7 +35,7 @@ ipkg ${CLOOG} "\
 
 LDFLAGS=""
 
-ipkg ${BINUTILS}
+ipkg -i ${LFS} ${BINUTILS}
 ipkg -l "${GCC}-pass1" ${GCC}
 
 if [ x"${INSTALL_GLIBC}" == x"1" ]; then
@@ -50,4 +43,8 @@ if [ x"${INSTALL_GLIBC}" == x"1" ]; then
     ipkg -l "${GCC}-pass2" ${GCC}
 fi
 
+if [ x"${HVL_TARGET}" == x"avr" ]; then
+    ipkg ${AVRLIBC} "--host=avr"
+fi
+
 exit $?