+*) 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
# 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"
#
# 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=""
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
#
# 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)"
}
#
# 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}
#
# 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() {
#
# 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"
#
# 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"
#
# 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
#
# 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}
#
# 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
}
# 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!"
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"
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