more toolchain + stage 1 updates
[hdw-linux/hdw-linux.git] / packages / toolchain / linux / linux
index 802ab1e..c8dca02 100644 (file)
@@ -2,17 +2,23 @@
 #
 # author: hackbard@hackdaworld.dyndns.org
 #
-# [V] 2.6.8.1
+# [V] 2.6.18.1
 # [S] 0-2
-# [D] linux-2.6.8.1.tar.bz2 ftp://ftp.kernel.org/pub/linux/kernel/v2.6/
+# [D] linux-2.6.18.1.tar.bz2 ftp://ftp.kernel.org/pub/linux/kernel/v2.6/
+
+skip=1
+s_reason="obsolete, there is a linux libc headers package now."
 
 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
+       make include/asm
                }