several changes to toolchain packages
[hdw-linux/hdw-linux.git] / packages / base / linux / linux
index 4491831..d328998 100644 (file)
@@ -2,9 +2,9 @@
 #
 # author: hackbard@hackdaworld.dyndns.org
 #
-# [V] 2.6.7
+# [V] 2.6.18.1
 # [S] 2-2
-# [D] linux-2.6.7.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/
 
 custmain="1"
 custmain()     {
@@ -13,7 +13,7 @@ custmain()    {
        rm -rf linux*
        tar --use-compress-program=$compress -xvf $archdir/$pkg
        mv linux-${ver} linux-${ver}-hdw && ln -s linux-$ver-hdw linux
-       chown -R root.root linux-${ver}-hdw
+       chown -Rv root.root linux-${ver}-hdw
        mkdir -p kernel
        cp -v $archdir/$pkg kernel/
        cp -v $hdw_home_dir/misc/arch/$hdw_arch/linux.config \
@@ -51,4 +51,11 @@ custmain()   {
        echo "modules, modules_install ..."
        make modules &&
        make modules_install INSTALL_MOD_PATH=$root DEPMOD="true"
+       
+       # headers
+       make headers_check
+       make INSTALL_HDR_PATH=$prefix headers_install
+       chown -Rv root.root $prefix/include/{asm,linux}
+       find $prefix/include/{asm,linux} -type d -exec chmod -v 755 {} \;
+       find $prefix/include/{asm,linux} -type f -exec chmod -v 644 {} \;
                }