source ../targets/${HVL_TARGET}
fi
-CLFS_TARGET="${CLFS_ARCH}-${CLFS_OS}-${CLFS_ABI}"
+# When CLFS_OS is defined, define target as the standard triplet:
+CLFS_TARGET="${CLFS_ARCH}"
+if [ x"${CLFS_OS}" != x ]; then
+ CLFS_TARGET+="-${CLFS_OS}-${CLFS_ABI}"
+fi
CLFS_HOST="$(echo $MACHTYPE | \
sed "s/$(echo $MACHTYPE | cut -d- -f2)/cross/")"
#!/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*)
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 $?
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"
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 $?
#!/bin/bash
+INSTALL_GLIBC=1
CLFS_BUILDFLAGS=""
CLFS_ARCH=${HVL_TARGET}
CLFS_OS="linux"