X-Git-Url: https://hackdaworld.org/gitweb/?p=hdw-linux%2Fhdw-linux.git;a=blobdiff_plain;f=packages%2Ftoolchain%2Flinux%2Flinux;h=a37bf43d8993bd5fd4fed0cf62b290406acaf3a3;hp=db6198d0c893233d15940e3b48fd334f8410d783;hb=8dd2356c22327a15f0e16abbc887c4f72fc62985;hpb=47c7711d90d010b666dcb3c2d392aeb7fb640e1e diff --git a/packages/toolchain/linux/linux b/packages/toolchain/linux/linux index db6198d..a37bf43 100644 --- a/packages/toolchain/linux/linux +++ b/packages/toolchain/linux/linux @@ -2,17 +2,36 @@ # # author: hackbard@hackdaworld.dyndns.org # -# [V] 2.6.9 +# [V] 2.6.18 # [S] 0-2 -# [D] linux-2.6.9.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." build_main() { - make mrproper && - make include/linux/version.h && + # 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}," \ + -e "s,^CROSS_COMPILE.*,CROSS_COMPILE = $hdw_arch_target-," \ + Makefile > M.tmp + mv M.tmp Makefile + fi + 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 && - 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 }