--with-gmp=/cross-tools --with-ppl=/cross-tools"
ipkg_cust ${BINUTILS} cis-binutils
-ipkg ${GCC_CORE} cis-gcc-pass1 "${GCC_CORE}-pass1"
+ipkg ${GCC} cis-gcc-pass1 "${GCC}-pass1"
ipkg_cust ${EGLIBC} cis-eglibc
-ipkg ${GCC_CORE} cis-gcc-pass2 "${GCC_CORE}-pass2"
+ipkg ${GCC} cis-gcc-pass2 "${GCC}-pass2"
exit $?
"http://www.cs.unipr.it/ppl/Download/ftp/releases"
fpkg ${CLOOG_PPL} "ftp://gcc.gnu.org/pub/gcc/infrastructure"
fpkg_gnu ${BINUTILS}
-fpkg_gnu ${GCC_CORE} "gcc/${GCC_CORE}"
-#fpkg ${EGLIBC} "http://cross-lfs.org/files/packages/svn"
+fpkg_gnu ${GCC} "gcc/${GCC}"
fpkg_hv ${EGLIBC}
fpkg_hv ${EGLIBC_PORTS}
lpkg 0 ${PPL}
lpkg 0 ${CLOOG_PPL}
lpkg 0 ${BINUTILS}
-lpkg 0 ${GCC_CORE}
+lpkg 0 ${GCC}
lpkg 0 ${NCURSES}
lpkg 0 ${FILE_PKG}
lpkg 0 ${KERNEL}
lpkg 0 ${PPL}
lpkg 0 ${CLOOG_PPL}
lpkg 0 ${BINUTILS}
-lpkg 0 ${GCC_CORE}
+lpkg 0 ${GCC}
# These packages were already downloaded for stage1:
lpkg 1 ${ZLIB}
CC="gcc -Wl,-rpath-link,/lib -isystem /usr/include" \
CXX="g++ -Wl,-rpath-link,/lib -isystem /usr/include" \
- ipkg_cust ${GCC_CORE} cis-gcc \
+ ipkg_cust ${GCC} cis-gcc \
--libexecdir=/usr/lib \
--enable-shared \
--enable-threads=posix \
fpkg -s "gnupg" ${GNUPG} "ftp://ftp.gnupg.org/gcrypt"
+#fpkg_gnu ${AVR_GDB}
+#fpkg ${AVRDUDE} "http://download.savannah.gnu.org/releases/avrdude"
+#fpkg_mis ${SPLINT} "${SPLINT}.src" "http://splint.org/downloads"
+
+GEDA_BASE_URL=http://geda.seul.org/release/v$(get_pkg_ver_base ${LIBGEDA})/$(get_pkg_ver ${LIBGEDA})
+
+#fpkg ${LIBGEDA} ${GEDA_BASE_URL}
+#fpkg ${GEDA_SYMBOLS} ${GEDA_BASE_URL}
+#fpkg ${GEDA_GSCHEM} ${GEDA_BASE_URL}
+#fpkg ${GEDA_GNETLIST} ${GEDA_BASE_URL}
+#fpkg ${GEDA_SYMCHECK} ${GEDA_BASE_URL}
+#fpkg ${GEDA_GATTRIB} ${GEDA_BASE_URL}
+
exit $?
ipkg_ac ${GNUPG} "--libexecdir=/usr/lib"
+
+
+
+ipkg_ac ${LIBGEDA}
+ipkg_ac ${GEDA_SYMBOLS}
+ipkg_ac ${GEDA_GSCHEM}
+ipkg_ac ${GEDA_GNETLIST}
+ipkg_ac ${GEDA_SYMCHECK}
+ipkg_ac ${GEDA_GATTRIB}
+
+
+
rscr mult "Performing post-install" cis-post-install
exit $?
+++ /dev/null
-
-Installation instructions
--------------------------
-
-1. ./stage5-install-avr
-2. ./stage5-install-arm
+++ /dev/null
-
--Ajouter splint.
--Ajouter l'installatuion des man pages de avr-libc et du manuel de avr-libc.
+++ /dev/null
-../stage2/cis-ac
\ No newline at end of file
+++ /dev/null
-../stage2/cis-ac-nobuild
\ No newline at end of file
+++ /dev/null
-#!/bin/sh
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1} &&
-
-# Saves CFLAGS and CXXFLAGS, and clears them.
-save_flags_no_optimizations
-
-cd ${LFS_TMP}/${1}-build &&
-../${1}/configure \
- --host=${TARGET} \
- --prefix=${PREFIX} &&
-make &&
-make install &&
-
-# Restore original CFLAGS and CXXFLAGS values.
-restore_flags
-
-# Return last error
-exit $?
+++ /dev/null
-#!/bin/sh
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1} &&
-
-cd ${LFS_TMP}/${1}-build &&
-../${1}/configure \
- --prefix=/usr \
- --sysconfdir=/etc &&
-make all &&
-make install
-
-# Return last error
-exit $?
+++ /dev/null
-#!/bin/sh
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1} &&
-
-# Saves CFLAGS and CXXFLAGS, and clears them.
-save_flags_no_optimizations
-
-cd ${LFS_TMP}/${1}-build &&
-../${1}/configure \
- --target=${TARGET} \
- --prefix=${PREFIX} \
- --with-sysroot=${SYSROOT} &&
-make &&
-make install
-
-# Return last error
-exit $?
+++ /dev/null
-#!/bin/sh
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1} &&
-
-# Saves CFLAGS and CXXFLAGS, and clears them.
-save_flags_no_optimizations
-
-# This is necessary so that the compiler is built without
-# libc includes, which are not yet installed for this target.
-#export CFLAGS="${CFLAGS} -Dinhibit_libc"
-
-#Fortunately, there are configuration options for GCC which tell it not
-#to build 'libgcc_s.so'. The '--without-headers' option is supposed to
-#take care of this, but its implementation is incomplete, so you must
-#also configure with the '--with-newlib' option. While '--with-newlib'
-#appears to mean "Use the Newlib C library", its effect is to tell the
-#GCC build machinery, "Don't assume there is a C library available."
-
-#We also need to disable some of the libraries that would normally be
-#built along with GCC, and specify that only the compiler for the C
-#language is needed.
-
-cd ${LFS_TMP}/${1}-build &&
-../${1}/configure \
- --target=${TARGET} \
- --prefix=${PREFIX} \
- --with-sysroot=${SYSROOT} \
- --without-headers --with-newlib \
- --disable-shared \
- --disable-threads \
- --disable-libssp \
- --disable-libgomp \
- --disable-libmudflap \
- --enable-languages=c &&
-make all-gcc &&
-make install-gcc
-
-exit $?
+++ /dev/null
-#!/bin/sh
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1} &&
-
-# Saves CFLAGS and CXXFLAGS, and clears them.
-save_flags_no_optimizations
-
-cd ${LFS_TMP}/${1}-build &&
-../${1}/configure \
- --target=${TARGET} \
- --prefix=${PREFIX} \
- --without-dwarf2 \
- --without-stabs \
- --disable-libssp \
- --enable-languages=c &&
-make all &&
-make install &&
-
-# Restore original CFLAGS and CXXFLAGS values.
-restore_flags
-
-# Return last error
-exit $?
+++ /dev/null
-#!/bin/sh
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1} &&
-
-cd ${LFS_TMP}/${1}-build &&
-../${1}/configure \
- --target=${TARGET} \
- --prefix=${PREFIX} &&
-make &&
-make install
-
-# Return last error
-exit $?
+++ /dev/null
-#!/bin/sh
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1} &&
-
-# Saves CFLAGS and CXXFLAGS, and clears them.
-save_flags_no_optimizations
-
-cd ${LFS_TMP}/${1} &&
-
-# Configure options:
-# --disable-profile
-# Builds the libraries without profiling information.
-# --enable-add-ons
-# Use all the add-ons it finds.
-# crypt and localdata are now part of glibc.
-# --enable-kernel=2.x.x
-# Compile the library for support of linux 2.6.x kernels.
-# The kernel version specified must not be newer than the
-# version of the kernel running on the build machine.
-# --without-gd
-# Prevents the build of the memusagestat program, which
-# strangely enough insists on linking against the host's
-# libraries (libgd, libpng, libz, and so forth).
-cd ${LFS_TMP}/${1}-build &&
-BUILD_CC=gcc CC=${CROSS_COMPILE}gcc AR=${CROSS_COMPILE}ar RANLIB=${CROSS_COMPILE}ranlib AS=${CROSS_COMPILE}as LD=${CROSS_COMPILE}ld \
- ../${1}/configure \
- --prefix=/usr \
- --host=${TARGET} \
- --with-headers=${SYSROOT}/usr/include \
- --enable-add-ons \
- --enable-kernel=${GLIBC_KERNEL_VERSION} \
- --disable-profile \
- --without-gd \
- --without-cvs \
- --without-selinux &&
-
-# --enable-threads=posix \
-# --enable-static-nss \
-# --enable-add-ons \
-# --disable-sanity-checks \
-# --without-__thread \
-
-make &&
-make install_root=${SYSROOT} install
-
-# Return last error
-exit $?
+++ /dev/null
-#!/bin/sh
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# The ARCH variable must be exported for this script
-# eg. ARCH=powerpc
-
-# We don't compile anything, we only install headers
-##################################################################unset CROSS_COMPILE &&
-
-# Applying patches (if any)
-apply_patches ${1} &&
-
-# Move files to their final destination
-mkdir -pv ${SYSROOT}/usr/src &&
-cp -a ${LFS_TMP}/${1} ${SYSROOT}/usr/src &&
-
-cd ${SYSROOT}/usr/src &&
-
-# Create the link only if it does not exist. Otherwise, the
-# new link will be created inside kernel directory.
-rm -fv linux &&
-ln -sfv ${1} linux &&
-
-cd ${SYSROOT}/usr/src/${1} &&
-
-# First step, install kernel API headers:
-make mrproper &&
-make headers_check &&
-make INSTALL_HDR_PATH=dest headers_install &&
-mkdir -pv ${SYSROOT}/usr/include &&
-cp -rv dest/include/* ${SYSROOT}/usr/include &&
-
-# Second, install HV kernel compilation script:
-cat > ${SYSROOT}/usr/src/compile-kernel << "EOF" &&
-#!/bin/sh
-
-KERNEL_VERSION=$(basename $(pwd))
-DEST=/boot
-
-export ARCH=_ARCH_
-export CROSS_COMPILE=_CROSS_COMPILE_
-export SYSROOT=_SYSROOT_
-
-KERNELMAKE="make -j 4"
-
-${KERNELMAKE} bzImage &&
-
-if cat .config | grep "CONFIG_MODULES=y" 1> /dev/null 2>&1; then
- ${KERNELMAKE} modules &&
- ${KERNELMAKE} INSTALL_MOD_PATH=${SYSROOT} modules_install
-fi &&
-
-cp arch/${ARCH}/boot/images/zImage.elf ${DEST}/vmlinuz-${KERNEL_VERSION} &&
-cp arch/${ARCH}/boot/images/zImage.elf ${DEST}/vmlinuz-latest &&
-cp System.map ${DEST}/System-${KERNEL_VERSION}.map &&
-cp .config ${DEST}/config-${KERNEL_VERSION}
-
-if [ $? -ne 0 ]; then
- echo "*** Kernel compilation error ***."
- exit 1
-fi
-
-exit 0
-EOF
-
-sed -i -e "s!_ARCH_!${ARCH}!g" ${SYSROOT}/usr/src/compile-kernel &&
-sed -i -e "s!_CROSS_COMPILE_!${CROSS_COMPILE}!g" ${SYSROOT}/usr/src/compile-kernel &&
-sed -i -e "s!_SYSROOT_!${SYSROOT}!g" ${SYSROOT}/usr/src/compile-kernel &&
-
-chmod -v u+x ${SYSROOT}/usr/src/compile-kernel
-
-# Return last error
-exit $?
+++ /dev/null
-#!/bin/sh
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1} &&
-
-# Saves CFLAGS and CXXFLAGS, and clears them.
-save_flags_no_optimizations
-
-cd ${LFS_TMP}/${1}-build &&
-../${1}/configure \
- --target=${TARGET} \
- --prefix=${PREFIX} &&
-make all &&
-make install &&
-
-# Restore original CFLAGS and CXXFLAGS values.
-restore_flags
-
-# Return last error
-exit $?
+++ /dev/null
-#!/bin/sh
-
-# Must be defined before sourcing other files.
-LFS_STAGE="stage5"
-
-# Reading system configuration informations, functions and package versions.
-source ../functions
-source ../functions-update
-source ../packages-list
-
-update_packages_init
-
-# Begin
-
-lpkg 1 ${AVR_BINUTILS}
-lpkg 1 ${ARM_BINUTILS}
-lpkg 1 ${KERNEL}
-lpkg 1 ${GLIBC}
-lpkg 1 ${AVR_GCC_CORE}
-lpkg 1 ${ARM_GCC_CORE}
-fpkg ${AVR_LIBC} "http://download.savannah.gnu.org/releases/avr-libc"
-fpkg ${NEWLIB} "ftp://sources.redhat.com/pub/newlib"
-fpkg_gnu ${AVR_GDB}
-fpkg ${AVRDUDE} "http://download.savannah.gnu.org/releases/avrdude"
-fpkg_mis ${SPLINT} "${SPLINT}.src" "http://splint.org/downloads"
-
-GEDA_BASE_URL=http://geda.seul.org/release/v$(get_pkg_ver_base ${LIBGEDA})/$(get_pkg_ver ${LIBGEDA})
-
-fpkg ${LIBGEDA} ${GEDA_BASE_URL}
-fpkg ${GEDA_SYMBOLS} ${GEDA_BASE_URL}
-fpkg ${GEDA_GSCHEM} ${GEDA_BASE_URL}
-fpkg ${GEDA_GNETLIST} ${GEDA_BASE_URL}
-fpkg ${GEDA_SYMCHECK} ${GEDA_BASE_URL}
-fpkg ${GEDA_GATTRIB} ${GEDA_BASE_URL}
-
-# Return last error
-exit $?
+++ /dev/null
-#!/bin/sh
-
-export LFS_PKG_DIR="$(dirname $(dirname $(pwd)))/packages/stage4"
-export LFS_LOG_DIR=/var/log/hvlinux-install/stage4
-export LFS_LOG_FILE=${LFS_LOG_DIR}/install.log
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-source /etc/profile
-
-# Init log file
-mkdir -p ${LFS_LOG_DIR} || exit 1
-if [ ! -f ${LFS_LOG_FILE} ]; then
- touch ${LFS_LOG_FILE} || exit 1
-fi
-
-ipkg ${GDB} cis-gdb
-
-exit $?
+++ /dev/null
-#!/bin/sh
-
-export LFS_PKG_DIR="$(dirname $(dirname $(pwd)))/packages/stage5"
-export LFS_LOG_DIR=/var/log/hvlinux-install/stage5
-export LFS_LOG_FILE=${LFS_LOG_DIR}/install.log
-export LFS_TMP=/mnt/hv-packages/tmp
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-source /etc/profile
-
-init_log_file
-
-export TARGET="arm-elf"
-export PREFIX="/usr/arm-elf"
-
-var_add_path "PATH" /etc/profile "${PREFIX}/bin" &&
-source /etc/profile &&
-
-ipkg ${ARM_BINUTILS} cis-binutils
-ipkg_mult ${ARM_GCC_CORE} cis-gcc1 "${GCC_CORE}-pass1"
-ipkg ${NEWLIB} cis-newlib
-ipkg_mult ${ARM_GCC_CORE} cis-gcc2 "${GCC_CORE}-pass2"
-ipkg ${GDB} cis-gdb
-
-exit $?
+++ /dev/null
-#!/bin/sh
-
-export LFS_PKG_DIR="$(dirname $(dirname $(pwd)))/packages/stage5"
-export LFS_LOG_DIR=/var/log/hvlinux-install/stage5
-export LFS_LOG_FILE=${LFS_LOG_DIR}/install.log
-export LFS_TMP="/tmp"
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-source /etc/profile
-
-if [ "x${USER}" != "xroot" ]; then
- echo "You must be the superuser to install hvlinux."
- exit 1
-fi
-
-init_log_file
-
-export TARGET="avr"
-export PREFIX="/usr/avr"
-
-var_add_path "PATH" /etc/profile "${PREFIX}/bin" &&
-source /etc/profile &&
-
-ipkg ${AVR_BINUTILS} cis-binutils
-ipkg_mult ${AVR_GCC_CORE} cis-gcc2 "${GCC_CORE}-pass2"
-ipkg ${AVR_LIBC} cis-avr-libc
-ipkg ${AVRDUDE} cis-avrdude
-ipkg ${SPLINT} cis-ac-nobuild
-ipkg ${AVR_GDB} cis-gdb
-
-exit $?
+++ /dev/null
-#!/bin/sh
-
-export LFS_PKG_DIR="$(dirname $(dirname $(pwd)))/packages/stage5"
-export LFS_LOG_DIR=/var/log/hvlinux-install/stage5
-export LFS_LOG_FILE=${LFS_LOG_DIR}/install.log
-export LFS_TMP="$(dirname $(dirname $(pwd)))/packages/tmp"
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-source /etc/profile
-
-init_log_file
-
-if [ "x${INST_TYPE}" = "xworkstation" -o "x${INST_TYPE}" = "xltsp-server" ]; then
- ipkg_ac ${LIBGEDA}
- ipkg_ac ${GEDA_SYMBOLS}
- ipkg_ac ${GEDA_GSCHEM}
- ipkg_ac ${GEDA_GNETLIST}
- ipkg_ac ${GEDA_SYMCHECK}
- ipkg_ac ${GEDA_GATTRIB}
-fi
-
-exit $?
+++ /dev/null
-#!/bin/sh
-
-export LFS_PKG_DIR="$(dirname $(dirname $(pwd)))/packages/stage5"
-export LFS_LOG_DIR=/var/log/hvlinux-install/stage5
-export LFS_LOG_FILE=${LFS_LOG_DIR}/install.log
-export LFS_TMP=/tmp
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-source /etc/profile
-
-init_log_file
-
-export CFLAGS="-pipe -O2"
-export CXXFLAGS=${CFLAGS}
-
-export ARCH="powerpc"
-export TARGET="powerpc-405-linux-gnu"
-export PREFIX="/usr/powerpc-405"
-export SYSROOT=${PREFIX}/sysroot
-export CROSS_COMPILE=${TARGET}-
-
-var_add_path "PATH" /etc/profile "${PREFIX}/bin" &&
-source /etc/profile &&
-
-ipkg ${BINUTILS} cis-binutils
-ipkg_mult ${GCC_CORE} cis-gcc1 "${GCC_CORE}-pass1"
-ipkg ${KERNEL} cis-kernel
-ipkg ${GLIBC} cis-glibc
-
-exit 1
-exit 1
-
-ipkg_mult ${GCC_CORE} cis-gcc2 "${GCC_CORE}-pass2"
-ipkg ${GDB} cis-gdb
-
-exit $?