case "${HVL_TARGET}" in
arm*)
- CLFS_BUILDFLAGS="-mabi=apcs-gnu"
- CLFS_TARGET="${HVL_TARGET}-unknown-linux-gnueabi"
+ CLFS_BUILDFLAGS="-mabi=aapcs-linux -mfloat-abi=soft"
+ CLFS_TARGET="arm-linux-gnueabi"
CLFS_ARCH=$(echo ${CLFS_TARGET} | sed -e 's/-.*//' -e 's/arm.*/arm/g')
CLFS_ENDIAN=$(echo ${CLFS_ARCH} | sed -e 's/armeb/BIG/' -e 's/arm/LITTLE/')
if [ "${CLFS_ENDIAN}" = "LITTLE" ]; then
EASYTAG="easytag-2.1"
ED="ed-1.4"
EGGDBUS="eggdbus-0.6"
-EGLIBC="eglibc-2.10.1-20090825-r8873"
+###EGLIBC="eglibc-2.10.1-20090825-r8873"
+EGLIBC="eglibc-2.10.1-20100304-r9381"
+EGLIBC_PORTS="eglibc-ports-2.10.1-20100304-r9381"
UCLIBC="uClibc-0.9.30.1"
EMACS="emacs-23.1"
ESOUND="esound-0.2.37"
"x86_64")
# This adds 64 bit support to Binutils.
TARGET_CONFIGURE_OPTS="--enable-64-bit-bfd"
- ########## --with-lib-path=/tools/lib
;;
esac
source ../packages-list
# Manually apply patch
-apply_patch ${1}-rpath.patch ${1}
+####apply_patch eglibc-2.10.1-fixes-4.patch ${1}
case "${HVL_TARGET}" in
"x86")
+ # Manually apply patch
+ apply_patch ${1}-rpath.patch ${1}
+
TMP_CFLAGS="-march=$(cut -d- -f1 <<< ${CLFS_TARGET}) -mtune=generic -g -O2"
;;
esac
cd ${LFS_TMP}/${1}
+decompress_package ${EGLIBC_PORTS} $(pwd) 1> /dev/null
+
# Disable linking to libgcc_eh:
-cp -v Makeconfig{,.orig}
-sed -e 's/-lgcc_eh//g' Makeconfig.orig > Makeconfig
+sed -e 's/-lgcc_eh//g' -i Makeconfig
cd ${LFS_TMP}/${1}-build
apply_patch ${1}-branch_update-1.patch ${1}
case "${HVL_TARGET}" in
- "x86*")
+ *)
TARGET_CONFIGURE_OPTS="--with-ppl=/cross-tools \
--with-cloog=/cross-tools \
--with-local-prefix=/tools \
;;
esac
+
case "${HVL_TARGET}" in
"x86")
apply_patch ${1}-specs-1.patch ${1}
${HVMAKE} all-gcc all-target-libgcc
${HVMAKE} install-gcc install-target-libgcc
-case "${HVL_TARGET}" in
- arm*)
- # Workaround for uClibc
- echo "#include \"/cross-tools/lib/gcc/arm926t-unknown-linux-gnueabi/4.4.2/include-fixed/limits.h\"" > /tools/include/limits.h
- ;;
-esac
-
exit $?
apply_patch ${1}-branch_update-1.patch ${1}
case "${HVL_TARGET}" in
- "x86*")
+ *)
TARGET_CONFIGURE_OPTS="--with-ppl=/cross-tools \
--with-cloog=/cross-tools \
--disable-multilib"
;;
- arm*)
- # Removing workaround for uClibc
- echo "" > /tools/include/limits.h
- ;;
esac
case "${HVL_TARGET}" in
fi
# Creating basic directories
-for subdir in tmp var boot tools cross-tools; do
+for subdir in tmp var tools cross-tools; do
dir=${LFS}/${subdir}
if [ ! -d ${dir} ]; then
install -dv ${dir}
LDFLAGS="-Wl,-rpath,/cross-tools/lib" \
ipkg_ac ${MPFR} "--enable-shared --with-gmp=/cross-tools"
-case "${HVL_TARGET}" in
- x86*)
- LDFLAGS="-Wl,-rpath,/cross-tools/lib" \
- ipkg_ac ${PPL} "--enable-shared \
- --enable-interfaces=c,cxx \
- --disable-optimization \
- --with-libgmp-prefix=/cross-tools \
- --with-libgmpxx-prefix=/cross-tools"
- LDFLAGS="-Wl,-rpath,/cross-tools/lib" \
- ipkg_cust ${CLOOG_PPL} cis-cloog-ppl "--enable-shared --with-bits=gmp \
- --with-gmp=/cross-tools --with-ppl=/cross-tools"
- ;;
-esac
+LDFLAGS="-Wl,-rpath,/cross-tools/lib" \
+ ipkg_ac ${PPL} "--enable-shared \
+ --enable-interfaces=c,cxx \
+ --disable-optimization \
+ --with-libgmp-prefix=/cross-tools \
+ --with-libgmpxx-prefix=/cross-tools"
+LDFLAGS="-Wl,-rpath,/cross-tools/lib" \
+ ipkg_cust ${CLOOG_PPL} cis-cloog-ppl "--enable-shared --with-bits=gmp \
+ --with-gmp=/cross-tools --with-ppl=/cross-tools"
ipkg_cust ${BINUTILS} cis-binutils
ipkg ${GCC_CORE} cis-gcc-pass1 "${GCC_CORE}-pass1"
-
-case "${HVL_TARGET}" in
- x86*)
- ipkg_cust ${EGLIBC} cis-eglibc
- ;;
- arm*)
- ipkg_cust ${UCLIBC} cis-uclibc
- ;;
-esac
-
+ipkg_cust ${EGLIBC} cis-eglibc
ipkg ${GCC_CORE} cis-gcc-pass2 "${GCC_CORE}-pass2"
exit $?
fpkg ${CLOOG_PPL} "ftp://gcc.gnu.org/pub/gcc/infrastructure"
fpkg_gnu ${BINUTILS}
fpkg_gnu ${GCC_CORE} "gcc/${GCC_CORE}"
-
-case "${HVL_TARGET}" in
- x86*)
- fpkg ${EGLIBC} "http://cross-lfs.org/files/packages/svn"
- ;;
- arm*)
- fpkg ${UCLIBC} "http://www.uclibc.org/downloads"
- ;;
-esac
+#fpkg ${EGLIBC} "http://cross-lfs.org/files/packages/svn"
+fpkg_hv ${EGLIBC}
+fpkg_hv ${EGLIBC_PORTS}
exit $?
REGUSER="hugo"
# Destination path where to install new Linux-HV system
-LFS="/mnt/hvlinux-arm"
+LFS="/opt/toolchains/arm926ejs/clfs"
# Destination partition where to install new Linux-HV system
LFS_PARTITION="/dev/sda8"