]> hackdaworld.org Git - hdw-linux/hdw-linux.git/commitdiff
toolchain modoifications
authorhackbard <hackbard>
Sun, 15 Oct 2006 01:15:41 +0000 (01:15 +0000)
committerhackbard <hackbard>
Sun, 15 Oct 2006 01:15:41 +0000 (01:15 +0000)
16 files changed:
doc/CHANGELOG
packages/base/00-dirtree/00-dirtree
packages/base/00-small-base-conf/00-small-base-conf
packages/base/binutils/binutils
packages/base/gcc/gcc
packages/base/gcc/no_fix_includes.patch [deleted file]
packages/base/glibc/glibc
packages/base/linux/linux
packages/base/udev/udev
packages/toolchain/binutils/binutils
packages/toolchain/gcc/gcc
packages/toolchain/glibc/glibc
scripts/Build
scripts/Build-Distro
scripts/Build-Package
scripts/Config

index de3881ca3ac355ece4676f48cc305891a754adb0..77e13cc20b51df992b7a97cb10537398e57d63a3 100644 (file)
@@ -1,3 +1,7 @@
+*) 2006-10-15
+
+- toolchain modifications
+
 *) 2006-10-03
 
 - updated toolchain
index 0220d670935affcdf57ff746856564ddb110d7b2..0aa7629dd108af3f93d44d64b61256a99a1b4b62 100644 (file)
@@ -14,7 +14,7 @@ flist_pruned="this_hopefully_never_exists"
 custmain()     {
 
 # Create directory stage1 prefix ...
-mkdir -p $root/${s1_prefix}
+mkdir -p $root/${tc_name}
 # Create directory bin ...
 mkdir -p $root/bin
 # Create directory boot ...
index dfd3505bb3629bc6a6c39f07cbd4fb6f48231fc2..61306091383fd6a1c6c91b63a50f8d2a9aebc0cb 100644 (file)
@@ -11,10 +11,10 @@ custmain="1"
 if [ "$hdw_status" = "1" ] ; then
        custmain()      {
                for i in bash pwd cat stty; do
-                       ln -sf ../$s1_prefix/bin/$i $root/bin/$i
+                       ln -sf ../$tc_name/bin/$i $root/bin/$i
                done
                ln -sf bash $root/bin/sh
-               ln -sf ../../$s1_prefix/bin/perl $root/usr/bin/perl
+               ln -sf ../../$tc_name/bin/perl $root/usr/bin/perl
                        }
 else
        custmain()      {
index b79e23390f239c07c93020ea91efd245fd273d09..27d094691df44a64aeb720b8e8d2abffa5d643a8 100644 (file)
@@ -2,41 +2,47 @@
 
 # author: hackbard@hackdaworld.dyndns.org
 #
-# [V] 2.16.91.0.1
+# [V] 2.17
 # [S] 2-4 2-5
-# [D] binutils-2.16.91.0.1.tar.bz2 http://ftp.kernel.org/pub/linux/devel/binutils/
+# [D] binutils-2.17.tar.bz2 http://ftp.gnu.org/gnu/binutils/
 
 libpath="/usr/lib:/lib"
 
 if [ "$priority" = "4" ] ; then
-       flist_path="$flist_path ${s1_prefix}/"
+       flist_path="$flist_path ${tc_name}/"
        flist_pruned="$flist_pruned|specs"
        custmain=1
        custmain()      {
-               # install binutils linking against new libc
-               cd $root/tmp/src.binutils/binutils-build
-               make -C ld INSTALL=/${s1_prefix}/bin/install install
-               cd -
-               rm -rf $root/tmp/src.binutils
+               install ld linking against new libc
+               mv -v /${tc_name}/bin/{ld,ld-old}
+               mv -v /${tc_name}/`gcc -dumpmachine`/bin/{ld,ld-old}
+               mv -v /${tc_name}/bin/{ld-new,ld}
+               ln -sv /${tc_name}/bin/ld /tools/`gcc -dumpmachine`/bin/ld
 
                # show new linker to gcc
-               cr="" ; [ "$hdw_crossbuild" != "0" ] && cr=/${s1_prefix}
-               SPECFILE="`gcc --print-file specs`"
-       sed -e "s@ /${s1_prefix}/lib/ld-linux.so.2@ $cr/lib/ld-linux.so.2@g" \
-           -e "s@ /${s1_prefix}/lib/ld.so.1@ $cr/lib/ld.so.1@g" \
-                       $SPECFILE > tempspecfile
-               mv tempspecfile $SPECFILE
+               SPECFILE="`gcc --print-libgcc-file-name`"
+               SPECFILE="`dirname $SPECFILE`/specs"
+               gcc -dumpspecs | \
+       sed -e "s@ /${tc_name}/lib/ld-linux.so.2@ /lib/ld-linux.so.2@g" \
+           -e "s@ /${tc_name}/lib/ld.so.1@ /lib/ld.so.1@g" \
+           -e "s@\*startfile_prefix_spec:@& /usr/lib@g" > $SPECFILE
+
+               INCDIR="`dirname $SPECFILE`/include"
                unset SPECFILE
+
+               # remove fixed includes from gcc's private include dir
+               find $INCDIR/* -maxdepth 0 -xtype d -exec rm -rvf '{}' \;
+               rm -vf `grep -l "DO NOT EDIT THIS FILE" $INCDIR/*`
+               unset INCDIR
                        }
 fi
 
 if [ "$priority" = "5" ] ; then
-       confopt="$confopt --enable-shared --disable-nls"
+       confopt="$confopt --enable-shared" # no --disable-nls
        make_conf="tooldir=$root/usr"
        install_conf="tooldir=$root/usr"
        post_install()  {
-               cp ../binutils-$ver/include/libiberty.h \
-                               $prefix/include
+               cp -v ../binutils-$ver/include/libiberty.h $prefix/include
                        }
 
        build_main()    {
index ec68c98e3020face2165963cf93b946659d5db5c..0d9abbe3e497c98f14bb407be35179734072a271 100644 (file)
@@ -2,11 +2,11 @@
 #
 # author: hackbard@hackdaworld.dyndns.org
 #
-# [V] 3.4.4
+# [V] 4.1.1
 # [S] 2-5
-# [D] gcc-3.4.4.tar.bz2 ftp://ftp.fu-berlin.de/unix/gnu/gcc/gcc-3.4.4/
-# [D] gcc-g++-3.4.4.tar.bz2 ftp://ftp.fu-berlin.de/unix/gnu/gcc/gcc-3.4.4/
-# [D] gcc-g77-3.4.4.tar.bz2 ftp://ftp.fu-berlin.de/unix/gnu/gcc/gcc-3.4.4/
+# [D] gcc-4.1.1.tar.bz2 ftp://ftp.fu-berlin.de/unix/gnu/gcc/gcc-4.1.1/
+# [D] gcc-g++-4.1.1.tar.bz2 ftp://ftp.fu-berlin.de/unix/gnu/gcc/gcc-4.1.1/
+# [D] gcc-g77-4.1.1.tar.bz2 ftp://ftp.fu-berlin.de/unix/gnu/gcc/gcc-4.1.1/
 
 extraver="-${ver}"
 [ "$ver" = "cvs" ] && extraver=""
@@ -22,9 +22,19 @@ pre_install()        {
        echo "extracting c++ and fortran sources ..."
        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
+
+       echo "patching Makefile (libiberty) ..."
+       sed 's%install_to_$(INSTALL_DEST) %%' libiberty/Makefile.in > tmp~
+       mv tmp~ libiberty/Makefile.in
+
+       echo "patching Makefile (gcc) ..."
+       sed -e 's@^XCFLAGS =$@& -fomit-frame-pointer@' \
+           -e 's@\./fixincl\.sh@-c true@' gcc/Makefile.in > tmp~
+       mv tmp~ gcc/Makefile.in
+
+       echo "patching gccbug ..."
+       sed 's/@have_mktemp_command@/yes/' gcc/gccbug.in > tmp~
+       mv tmp~ gcc/gccbug.in
                }
 
 post_install() {
diff --git a/packages/base/gcc/no_fix_includes.patch b/packages/base/gcc/no_fix_includes.patch
deleted file mode 100644 (file)
index 658f882..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
---- ./gcc/Makefile.in.orig     2004-06-30 15:35:15.000000000 +0200
-+++ ./gcc/Makefile.in  2004-06-30 15:36:23.000000000 +0200
-@@ -2341,10 +2341,6 @@
-       rm -f include/limits.h
-       cp xlimits.h include/limits.h
-       chmod a+r include/limits.h
--# Install the README
--      rm -f include/README
--      cp $(srcdir)/README-fixinc include/README
--      chmod a+r include/README
-       $(STAMP) $@
- # fixinc.sh depends on this, not on specs directly.
-@@ -2386,7 +2382,6 @@
-       (TARGET_MACHINE='$(target)'; srcdir=`cd $(srcdir); ${PWD_COMMAND}`; \
-       SHELL='$(SHELL)' ;\
-       export TARGET_MACHINE srcdir SHELL ; \
--      $(SHELL) ./fixinc.sh `${PWD_COMMAND}`/include $(SYSTEM_HEADER_DIR) $(OTHER_FIXINCLUDES_DIRS); \
-       rm -f include/syslimits.h; \
-       if [ -f include/limits.h ]; then \
-         mv include/limits.h include/syslimits.h; \
index c47473cd48d870aee0fc12614cb34c5a75a027e7..95617f0dfc87144ee81f24a366f919907b0e1fb8 100644 (file)
@@ -2,10 +2,10 @@
 #
 # author: hackbard@hackdaworld.dyndns.org
 #
-# [V] 2.3.5
+# [V] 2.3.6
 # [S] 2-3
-# [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-2.3.6.tar.bz2 ftp://sources.redhat.com/pub/glibc/releases/
+# [D] glibc-linuxthreads-2.3.6.tar.bz2 ftp://sources.redhat.com/pub/glibc/releases/
 
 kernver=`grep '^#\ \[V\]' $confdir/../linux/linux | awk '{ print $3 }'`
 kernver=`echo $kernver | awk -F. '{ print $1 "." $2 }'`
@@ -22,6 +22,15 @@ pre_install()        {
        [ ! -f $root/etc/ld.so.conf ] && touch $root/etc/ld.so.conf
        [ ! -c $root/dev/null ] && mknod -m 0666 $root/dev/null c 1 3
        echo "done (file creating)"
+
+       echo "patching ..."
+       sed 's/vi_VN.TCVN/d' localedata/SUPPORTED > tmp~
+       mv tmp~ localedata/SUPPORTED
+       echo "patching install test (warning, might not work for every arch)"
+       sed -e \
+        's|libs -o|libs -L/usr/lib -Wl,-dynamic-linker=/lib/ld-linux.so.2 -o|' \
+        scripts/test-installation.pl > tmp~
+       mv tmp~ scripts/test-installation.pl
                }
 
 build_main()   {
index 442c02cc5bc9bcbdb8a2f9e981bf8eb35b80959b..c07b6f2dd57e011e1164f6fd32069a1fbbe551ab 100644 (file)
@@ -2,9 +2,9 @@
 #
 # author: hackbard@hackdaworld.dyndns.org
 #
-# [V] 2.6.16.19
+# [V] 2.6.18
 # [S] 2-2
-# [D] linux-2.6.16.19.tar.bz2 ftp://ftp.kernel.org/pub/linux/kernel/v2.6/
+# [D] linux-2.6.18.tar.bz2 ftp://ftp.kernel.org/pub/linux/kernel/v2.6/
 
 custmain="1"
 custmain()     {
index 1bc0fa1e72cce913d68e32658f0df7c9f7b7bd19..ea34f436cae93b58379ad00ef14aa79c1e504655 100644 (file)
@@ -14,7 +14,7 @@ make_conf="udevdir=/dev EXTRAS=$extras $make_conf"
 install_conf="udevdir=/dev EXTRAS=$extras"
 
 u_root=$root
-[ "$hdw_status" = "1" ] && u_root=/${s1_prefix}
+[ "$hdw_status" = "1" ] && u_root=/${tc_name}
 
 if [ "$hdw_status" = "1" ] ; then
        make_conf="prefix=$prefix etcdir=$prefix/etc $make_conf"
index fce7aa10082e98247ead669a5b5234aeb71b8bd2..0fa39e2150aa56efdd31084693d9fe001ea500de 100644 (file)
@@ -14,18 +14,19 @@ fi
 if [ "$priority" = "4" ] ; then
        custmain=1
        custmain()      {
-               # install the ld linking against new libc
-               mv -v $bindir/{ld,ld-old}
+               # install the ld linking against toolchain libc
+               mv -v $prefix/bin/{ld,ld-old}
                mv -v $prefix/`gcc -dumpmachine`/bin/{ld,ld-old}
-               mv -v $bindir/{ld-new,ld}
-               ln -sfv $bindir/ld $prefix/`gcc -dumpmachine`/bin/ld
+               mv -v $prefix/bin/{ld-new,ld}
+               ln -sfv $prefix/bin/ld $prefix/`gcc -dumpmachine`/bin/ld
 
                # show new linker to gcc
-               SPECFILE="`gcc --print-file specs`" &&
+               SPECFILE="`gcc -print-libgcc-file-name`"
+               SPECFILE="`dirname $SPECFILE`/specs"
+               gcc -dumpspecs | 
                sed -e "s@/lib/ld.so.1@$prefix/lib/ld.so.1@g" \
-                   -e "s@/lib/ld-linux.so.2@$prefix/lib/ld-linux.so.2@g" \
-                       $SPECFILE > tempspecfile
-               mv tempspecfile $SPECFILE
+                   -e "s@/lib/ld-linux.so.2@$prefix/lib/ld-linux.so.2@g" > \
+                       $SPECFILE
 
                INCDIR="`dirname $SPECFILE`/include"
                unset SPECFILE
@@ -38,7 +39,7 @@ if [ "$priority" = "4" ] ; then
 fi
 
 if [ "$priority" = "5" ] ; then
-       confopt="$confopt --enable-shared --with-lib-path=$prefix/lib"  
+       confopt="$confopt --disable-nls --with-lib-path=$prefix/lib"    
        if [ "$hdw_crossbuild" = "0" ] ; then
                libpath="/usr/lib:/lib"
        else
@@ -59,5 +60,5 @@ post_install()  {
        # (glibc will go there)
        make -C ld clean
        make -C ld LIB_PATH=$libpath
-       cp -v ld/ld-new $bindir
+       cp -v ld/ld-new $prefix/bin
                }
index 71ed73b1b313e5efda823e0df68831ace830aa6a..128d8d0816b40ffc61b58826b79619ee11e03589 100644 (file)
@@ -17,7 +17,7 @@ if [ "$priority" = "1" ] ; then
        confopt="$confopt --enable-languages=c --disable-nls"
 
        post_install()  {
-               ln -sf gcc $prefix/bin/cc
+               ln -vsf gcc $prefix/bin/cc
                        }
 fi
 
@@ -28,6 +28,14 @@ if [ "$priority" = "4" ] ; then
        make_conf=""
 
        pre_install()   {
+               # no fix includes
+               echo "patching (no fixincludes)"
+               sed -e 's@\./fixinc\.sh@-c true@' \
+                   -e 's@^XCFLAGS =$@/& -fomit-frame-pointer@' \
+                        gcc/Makefile.in > tmp~
+               mv tmp~ gcc/Makefile.in
+
+               # specs
                echo "patching gcc specs now"
                for i in gcc/config/*/{pa-,}linux*.h; do
                        echo "patching $i ..."
@@ -52,9 +60,6 @@ if [ "$priority" = "4" ] ; then
                echo "patching gcc/config/linux.h ..."
                echo "#undef STANDARD_INCLUDE_DIR" >> gcc/config/linux.h
                echo "#define STANDARD_INCLUDE_DIR 0" >> gcc/config/linux.h
-               # no fix includes
-       [ -f $hdw_home_dir/packages/base/gcc/no_fix_includes.patch ] && \
-       patch -Nfp1 < $hdw_home_dir/packages/base/gcc/no_fix_includes.patch
                        }
 fi
 
index ea6d099f8993979f459471b230af90052bd1f719..b3543fe733bc67b79b021dad85c5456d09c701fc 100644 (file)
@@ -2,7 +2,7 @@
 #
 # author: hackbard@hackdaworld.dyndns.org
 #
-# [V] 2.4
+# [V] 2.3.6
 # [S] 0-3
 # [D] glibc-2.3.6.tar.bz2 ftp://sources.redhat.com/pub/glibc/releases/
 # [D] glibc-linuxthreads-2.3.6.tar.bz2 ftp://sources.redhat.com/pub/glibc/releases/
index a3ed9a84dce675ecff4f2af25423fe9a8b39d65a..cd557713e8f1d2ad2573186cb7fbb2777953c42a 100755 (executable)
@@ -35,8 +35,7 @@ if [ -z "$package" ]; then
 fi
 
 if [ -z "$stage" ]; then
-       echo "stage level not specified. something went wrong ... hey,"
-       echo "this is a development version ;)"
+       echo "no stage level specified, abort."
        exit 1
 fi
 
@@ -122,7 +121,7 @@ echo "found $package config file ..."
        prefix=""; docdir=""
        if [ "$stage" -lt "2" ] ; then
                # use the symlink as prefix
-               prefix="/${s1_prefix}"
+               prefix="/${tc_name}"
                docdir="$prefix/share/doc/$package"
                install_conf="PREFIX=$prefix"
        else
@@ -186,7 +185,7 @@ echo "found $package config file ..."
        
        # flist find variables/command
        flist_path="bin/ boot/ etc/ lib/ opt/ sbin/ usr/ var/"
-       [ "$stage" -lt "2" ] && flist_path="${flist_path} ${s1_prefix}/"
+       [ "$stage" -lt "2" ] && flist_path="${flist_path} ${tc_name}/"
        flist_cmd="find \$flist_path \( -cnewer $root/.time_$package -o \
                -newer $root/.time_$package \) \( -not -type d -o \
                -type d -empty \) -print"
@@ -391,7 +390,7 @@ echo "found $package config file ..."
                                        grep -v '^ldd'`; do
                                for rpkg in `grep $rdep -r \
                                                $root/var/adm/flists | \
-                                               grep -v $s1_prefix | \
+                                               grep -v $tc_name | \
                                                awk -F: '{ print $2 }'`; do
                                        add=1
                                        for cmp in $alldeps; do
@@ -411,7 +410,7 @@ echo "found $package config file ..."
                                        grep -v '^ldd'`; do
                                for rpkg in `grep $rdep -r \
                                                $root/var/adm/flists | \
-                                               grep -v $s1_prefix | \
+                                               grep -v $tc_name | \
                                                awk -F: '{ print $2 }'`; do
                                        add=1
                                        for cmp in $alldeps; do
index 70d501e155e00d0385b44041dfd7f7584d7d5db5..0f0f62f72d3c124b949890db1e65ac591602d9f0 100755 (executable)
@@ -80,14 +80,14 @@ for stage in $stages; do
                [ ! -d ${hdw_build_dir}/var/adm/deps ] && \
                        mkdir -p ${hdw_build_dir}/var/adm/deps/{run,build}
                # symlinking the stage 0/1 prefix to hostsystem root
-               if [ -d /$s1_prefix ]; then
-                       if [ ! -L /$s1_prefix ]; then
+               if [ -d /$tc_name ]; then
+                       if [ ! -L /$tc_name ]; then
                                echo_r "WARNING: "
-                               echo_w "move /$s1_prefix to /${s1_prefix}_old"
-                               mv /$s1_prefix /${s1_prefix}_old
+                               echo_w "move /$tc_name to /${tc_name}_old"
+                               mv /$tc_name /${tc_name}_old
                        fi
                fi
-               ln -sf $hdw_build_dir/$s1_prefix /
+               ln -sf $hdw_build_dir/$tc_name /
        fi
 
        # build according buildorder
@@ -199,7 +199,7 @@ for stage in $stages; do
                echo_c "preparing chroot commands ..."
                cat > $root/chroot.sh <<- EOT
 # PATH                          
-export PATH="\$PATH:/${s1_prefix}/bin:/${s1_prefix}/sbin"
+export PATH="\$PATH:/${tc_name}/bin:/${tc_name}/sbin"
 # create essential device nodes
 mknod -m 600 /dev/console c 5 1
 mknod -m 666 /dev/null c 1 3
@@ -240,9 +240,9 @@ EOT
                mount -t devpts devpts $root/dev/pts
                echo_w "entering chroot and start building now ..."
                echo
-               chroot $hdw_build_dir /${s1_prefix}/bin/env PS1='\u@\w\$ ' \
+               chroot $hdw_build_dir /${tc_name}/bin/env PS1='\u@\w\$ ' \
                        PATH="/bin:/usr/bin:/sbin:/usr/sbin" HOME=/root \
-                       /${s1_prefix}/bin/bash --login +h /chroot.sh
+                       /${tc_name}/bin/bash --login +h /chroot.sh
                if [ ! "$?" = "0" ]; then
                        echo_r "something failed in the chroot, aborting."
                        exit 1
index dce018c5e60cee0306686ba399b1c1a1228832a2..c93ce3b577f27540a97ebf7b74b4c64e2badccc8 100755 (executable)
@@ -11,6 +11,8 @@ bappend=""
 priority="x"
 dir=""
 
+
+
 if [ -z "$1" ] ; then
        echo "usage: $0 <package> [-stage <stagelevel 3|4>]"
        exit 1
index c1581e72229612b41639cdd57030e0dddde05b25..42c877a12a58499ebf6b26839cc4f284d86ffe80 100755 (executable)
@@ -42,6 +42,7 @@ fi
 
 # define the toolchain name, default: "toolchain"
 [ -z "$hdw_tc_name" ] && hdw_tc_name="toolchain"
+export tc_name=$hdw_tc_name
 
 # lets see what root is:
 root=""