several changes to toolchain packages
[hdw-linux/hdw-linux.git] / packages / base / linux / linux
index 5983615..d328998 100644 (file)
@@ -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 {} \;
                }