some more adaptions ...
authorhackbard <hackbard>
Sat, 14 May 2005 01:34:06 +0000 (01:34 +0000)
committerhackbard <hackbard>
Sat, 14 May 2005 01:34:06 +0000 (01:34 +0000)
13 files changed:
doc/CHANGELOG
packages/base/binutils/binutils
packages/base/gcc/gcc
packages/base/glibc/glibc
packages/base/linux-libc-headers/linux-libc-headers
packages/base/linux/linux
packages/toolchain/binutils/binutils
packages/toolchain/gcc/gcc
packages/toolchain/glibc/glibc
packages/toolchain/linux-libc-headers/linux-libc-headers
packages/toolchain/linux/linux
scripts/Config
scripts/Download

index f7d6259..967dd9a 100644 (file)
@@ -1,6 +1,10 @@
+*) 2005-05-14
+
+- some more adaptions
+
 *) 2005-05-13
 
-- changes major scripts improving toolchain and crossbuild concept (devel)
+- changes to major scripts improving toolchain and crossbuild concept (devel)
 
 *) 2005-05-03
 
index c4e77f2..c3ee80e 100644 (file)
@@ -2,11 +2,9 @@
 
 # author: hackbard@hackdaworld.dyndns.org
 #
-## [V] 2.15
-# [V] 2.15.91.0.1
+# [V] 2.16.90.0.3
 # [S] 2-4 2-5
-## [D] binutils-2.15.tar.bz2 ftp://ftp.gnu.org/gnu/binutils/
-# [D] binutils-2.15.91.0.1.tar.bz2 http://ftp.kernel.org/pub/linux/devel/binutils/
+# [D] binutils-2.16.90.0.3.tar.bz2 http://ftp.kernel.org/pub/linux/devel/binutils/
 
 libpath="/usr/lib:/lib"
 
index 2f96fca..0b5c83e 100644 (file)
@@ -2,11 +2,11 @@
 #
 # author: hackbard@hackdaworld.dyndns.org
 #
-# [V] 3.3.4
+# [V] 4.0.0
 # [S] 2-5
-# [D] gcc-3.3.4.tar.bz2 ftp://ftp.fu-berlin.de/unix/gnu/gcc/gcc-3.3.4/
-# [D] gcc-g++-3.3.4.tar.bz2 ftp://ftp.fu-berlin.de/unix/gnu/gcc/gcc-3.3.4/
-# [D] gcc-g77-3.3.4.tar.bz2 ftp://ftp.fu-berlin.de/unix/gnu/gcc/gcc-3.3.4/
+# [D] gcc-4.0.0.tar.bz2 ftp://ftp.fu-berlin.de/unix/gnu/gcc/gcc-4.0.0/
+# [D] gcc-g++-4.0.0.tar.bz2 ftp://ftp.fu-berlin.de/unix/gnu/gcc/gcc-4.0.0/
+# [D] gcc-g77-4.0.0.tar.bz2 ftp://ftp.fu-berlin.de/unix/gnu/gcc/gcc-4.0.0/
 
 extraver="-${ver}"
 [ "$ver" = "cvs" ] && extraver=""
@@ -20,8 +20,8 @@ confopt="$confopt --libexecdir=$prefix/lib"
 
 pre_install()  {
        echo "extracting c++ and fortran sources ..."
-       tar --use-compress-program=$compress -xvf $archdir/gcc-g++-3.3.4.tar.bz2
-       tar --use-compress-program=$compress -xvf $archdir/gcc-g77-3.3.4.tar.bz2
+       tar --use-compress-program=$compress -xvf $archdir/gcc-g++-$ver.tar.bz2
+       tar --use-compress-program=$compress -xvf $archdir/gcc-g77-$ver.tar.bz2
        echo "patching source (libiberty) ..."
        mv ./libiberty/Makefile.in ./tmp~
        sed 's%install_to_$(INSTALL_DEST) %%' ./tmp~ > ./libiberty/Makefile.in
index 9f78d6a..fd676f8 100644 (file)
@@ -2,24 +2,25 @@
 #
 # author: hackbard@hackdaworld.dyndns.org
 #
-# [V] cvs
+# [V] 2.3.5
 # [S] 2-3
-## [D] glibc-2.3.2.tar.bz2 ftp://sources.redhat.com/pub/glibc/releases/
-# [D] glibc.tar.bz2 cvs:anoncvs:sources.redhat.com:cvs/glibc:libc
+# [D] glibc-2.3.5.tar.bz2 ftp://sources.redhat.com/pub/glibc/releases/
+# [D] glibc-linuxthreads-2.3.5.tar.bz2 ftp://sources.redhat.com/pub/glibc/releases/
 
 srcdir=libc
+kernver=`grep '^#\ \[V\]' $confdir/../linux/linux | awk '{ print $3 }'`
 extraver="-${ver}"
 [ "$ver" = "cvs" ] && extraver=""
 
-confopt="$confopt --enable-add-ons=nptl --disable-profile --with-tls"
-confopt="$confopt --libexecdir=$root/tmp/pt_chown --without-cvs"
-confopt="$confopt --with-headers=/${s1_prefix}/glibc-kernheaders"
+confopt="$confopt --enable-add-ons --disable-profile"
+confopt="$confopt --libexecdir=$prefix/lib/glibc --without-cvs"
+confopt="$confopt --enable-kernel=$kernver"
 
 pre_install()  {
        echo "creating some files needed for build ..."
        mkdir -p $prefix/etc
        [ ! -f $root/etc/ld.so.conf ] && touch $root/etc/ld.so.conf
-       [ ! -c /dev/null ] && mknod -m 0666 /dev/null c 1 3
+       [ ! -c $root/dev/null ] && mknod -m 0666 $root/dev/null c 1 3
        echo "done (file creating)"
                }
 
index d7d812a..bafc588 100644 (file)
@@ -2,9 +2,9 @@
 #
 # author: hackbard@hackdaworld.dyndns.org
 #
-# [V] 2.6.7.0
+# [V] 2.6.11.2
 # [S] 2-2
-# [D] linux-libc-headers-2.6.7.0.tar.bz2 http://ep09.pld-linux.org/~mmazur/linux-libc-headers/
+# [D] linux-libc-headers-2.6.11.2.tar.bz2 http://ep09.pld-linux.org/~mmazur/linux-libc-headers/
 
 arch=${hdw_arch//ia32/i386}
 
index ff90dd5..79aebf7 100644 (file)
@@ -2,9 +2,9 @@
 #
 # author: hackbard@hackdaworld.dyndns.org
 #
-# [V] 2.6.11.7
+# [V] 2.6.11.9
 # [S] 2-2
-# [D] linux-2.6.11.7.tar.bz2 ftp://ftp.kernel.org/pub/linux/kernel/v2.6/
+# [D] linux-2.6.11.9.tar.bz2 ftp://ftp.kernel.org/pub/linux/kernel/v2.6/
 
 custmain="1"
 custmain()     {
index 82ea44d..559ba95 100644 (file)
@@ -2,9 +2,9 @@
 #
 # author: hackbard@hackdaworld.dyndns.org
 #
-# [V] 2.15.91.0.1
+# [V] 2.16.90.0.3
 # [S] 0-1 0-4 0-5
-# [D] binutils-2.15.91.0.1.tar.bz2 http://ftp.kernel.org/pub/linux/devel/binutils/
+# [D] binutils-2.16.90.0.3.tar.bz2 http://ftp.kernel.org/pub/linux/devel/binutils/
 
 if [ "$priority" = "1" ] ; then
        confopt="$confopt --disable-nls"
index 39e2b24..3b4fea6 100644 (file)
@@ -2,9 +2,9 @@
 #
 # author: hackbard@hackdaworld.dyndns.org
 #
-# [V] 3.3.4
+# [V] 4.0.0
 # [S] 0-1 0-4
-# [D] gcc-3.3.4.tar.bz2 ftp://ftp.fu-berlin.de/unix/gnu/gcc/gcc-3.3.4/
+# [D] gcc-4.0.0.tar.bz2 ftp://ftp.fu-berlin.de/unix/gnu/gcc/gcc-4.0.0/
 
 
 extraver="-$ver"
index 7653346..d280d17 100644 (file)
@@ -2,20 +2,20 @@
 #
 # author: hackbard@hackdaworld.dyndns.org
 #
-# [V] cvs
+# [V] 2.3.5
 # [S] 0-3
-## [D] glibc-2.3.2.tar.bz2 ftp://sources.redhat.com/pub/glibc/releases/
-## [D] glibc-linuxthreads-2.3.2.tar.bz2 ftp://sources.redhat.com/pub/glibc/releases/
-# [D] glibc.tar.bz2 cvs:anoncvs:sources.redhat.com:cvs/glibc:libc
+# [D] glibc-2.3.5.tar.bz2 ftp://sources.redhat.com/pub/glibc/releases/
+# [D] glibc-linuxthreads-2.3.5.tar.bz2 ftp://sources.redhat.com/pub/glibc/releases/
+## [D] glibc.tar.bz2 cvs:anoncvs:sources.redhat.com:cvs/glibc:libc
 
 srcdir=libc
+kernver=`grep '^#\ \[V\]' $confdir/../linux/linux | awk '{ print $3 }'`
 extraver="-${ver}"
 [ "$ver" = "cvs" ] && extraver=""
 
-confopt=${confopt//--host* /--host=$hdw_arch_build }
-confopt="$confopt --enable-add-ons=nptl --disable-profile --with-tls"
-confopt="$confopt --without-cvs --without-gd"
-confopt="$confopt --with-headers=$prefix/glibc-kernheaders"
+confopt="$confopt --enable-add-ons --disable-profile"
+confopt="$confopt --without-cvs --without-gd --without-selinux"
+confopt="$confopt --with-headers=$prefix/include --enable-kernel=$kernver"
 confopt="$confopt --with-binutils=$prefix/bin"
 
 unset CFLAGS
index 4f95ebc..1384f8b 100644 (file)
@@ -2,9 +2,9 @@
 #
 # author: hackbard@hackdaworld.dyndns.org
 #
-# [V] 2.6.7.0
+# [V] 2.6.11.2
 # [S] 0-1
-# [D] linux-libc-headers-2.6.7.0.tar.bz2 http://ep09.pld-linux.org/~mmazur/linux-libc-headers/
+# [D] linux-libc-headers-2.6.11.2.tar.bz2 http://ep09.pld-linux.org/~mmazur/linux-libc-headers/
 
 arch=${hdw_arch//ia32/i386}
 
index 27f0bcb..2dfcba9 100644 (file)
@@ -2,17 +2,20 @@
 #
 # author: hackbard@hackdaworld.dyndns.org
 #
-# [V] 2.6.11.7
+# [V] 2.6.11.9
 # [S] 0-2
-# [D] linux-2.6.11.7.tar.bz2 ftp://ftp.kernel.org/pub/linux/kernel/v2.6/
+# [D] linux-2.6.11.9.tar.bz2 ftp://ftp.kernel.org/pub/linux/kernel/v2.6/
 
 build_main()   {
+        # care for crossbuild
+        if [ "$hdw_crossbuild" != "0" ] ; then
+                sed -e "s,^ARCH.*,ARCH = ${hdw_arch//ia32/i386}," \
+                -e "s,^CROSS_COMPILE.*,CROSS_COMPILE = $hdw_arch_target-," \
+                        Makefile > M.tmp
+                mv M.tmp Makefile
+        fi
        make mrproper && 
        make include/linux/version.h &&
        # change for crossbuilds
        make include/asm &&
-       mkdir -p $prefix/glibc-kernheaders
-       cp -HR include/asm $prefix/glibc-kernheaders
-       cp -R include/asm-generic $prefix/glibc-kernheaders
-       cp -R include/linux $prefix/glibc-kernheaders
                }
index 2804a19..ba394dd 100755 (executable)
@@ -49,7 +49,7 @@ fi
 
 # lets see what root is:
 root=""
-if [ "$hdw_crossbuild" != "0" -a "$hdw_status" -lt "2" ] ; then
+if [ "$hdw_crossbuild" != "0" -o "$hdw_status" -lt "2" ] ; then
        # check for properly configured build directory
        if [ -z "$hdw_build_dir" ] ; then
                echo "please set hdw_build_dir in ./Config!"
@@ -136,6 +136,7 @@ hdw_arch_host=${hdw_arch_build}
 hdw_arch_prefix="$hdw_arch_host-"
 
 # print decissions for debugging ...
+echo "root variable set to '$root'"
 echo "hdw_arch_target variable set to $hdw_arch_target"
 echo "hdw_arch_build variable set to $hdw_arch_build"
 echo "hdw_arch_host variable ste to $hdw_arch_host"
index 2d0126c..830ebd2 100755 (executable)
@@ -215,12 +215,18 @@ for dir in `ls -A --ignore="CVS" ./download`; do
                        location="${mirror}/hdw-linux-${hdw_version}/$dir/$pkg/"
                echo "Downloading $dir - package $file ..."
                echo
+               # possibly the package exists
                mkdir -p ./download/$dir/$pkg ; cd ./download/$dir/$pkg
                                if [ -f ./$file ] ; then
                                        echo "$file allready downloaded."
                                        echo
+                               elif [ -n "`find ../../.. -name $file`" ] ; then
+                                       tolf="`echo $bar | awk '{ print $1 }'`"
+                                       ln -svf $tolf .
                                else
-                                       $wget_cmd -c $location$file -O pkg-src.in && \
+                               
+                                       $wget_cmd -c $location$file \
+                                               -O pkg-src.in &&
                                        mv pkg-src.in $file
                                        echo "done."
                                fi