several changes to toolchain packages
[hdw-linux/hdw-linux.git] / packages / toolchain / linux / linux
index c8dca02..a37bf43 100644 (file)
@@ -2,14 +2,20 @@
 #
 # author: hackbard@hackdaworld.dyndns.org
 #
-# [V] 2.6.18.1
+# [V] 2.6.18
 # [S] 0-2
-# [D] linux-2.6.18.1.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/
 
-skip=1
-s_reason="obsolete, there is a linux libc headers package now."
+#skip=1
+#s_reason="obsolete, there is a linux libc headers package now."
 
 build_main()   {
+       # patches
+       #if [ -f $confdir/../../base/linux/*.patch ]; then
+       #       for i in $confdir/../../base/linux/*.patch; do
+       #               patch -Nfp1 < $i
+       #       done
+       #fi
         # care for crossbuild
         if [ "$hdw_crossbuild" != "0" ] ; then
                 sed -e "s,^ARCH.*,ARCH = ${hdw_arch//ia32/i386}," \
@@ -17,8 +23,15 @@ build_main() {
                         Makefile > M.tmp
                 mv M.tmp Makefile
         fi
-       make mrproper && 
-       make include/linux/version.h &&
+       make mrproper
+       make headers_check
+       mkdir -p $prefix/tmp
+       make INSTALL_HDR_PATH=$prefix/tmp headers_install
+       cp -R $prefix/tmp/include/* $prefix/include
+       rm -rf $prefix/tmp
+
+       # old part      
+       #make include/linux/version.h &&
        # change for crossbuilds
-       make include/asm
+       #make include/asm
                }