several changes to toolchain packages
[hdw-linux/hdw-linux.git] / packages / toolchain / linux / linux
1 # hdw - linux toolchain linux package
2 #
3 # author: hackbard@hackdaworld.dyndns.org
4 #
5 # [V] 2.6.18
6 # [S] 0-2
7 # [D] linux-2.6.18.tar.bz2 ftp://ftp.kernel.org/pub/linux/kernel/v2.6/
8
9 #skip=1
10 #s_reason="obsolete, there is a linux libc headers package now."
11
12 build_main()    {
13         # patches
14         #if [ -f $confdir/../../base/linux/*.patch ]; then
15         #       for i in $confdir/../../base/linux/*.patch; do
16         #               patch -Nfp1 < $i
17         #       done
18         #fi
19         # care for crossbuild
20         if [ "$hdw_crossbuild" != "0" ] ; then
21                 sed -e "s,^ARCH.*,ARCH = ${hdw_arch//ia32/i386}," \
22                 -e "s,^CROSS_COMPILE.*,CROSS_COMPILE = $hdw_arch_target-," \
23                         Makefile > M.tmp
24                 mv M.tmp Makefile
25         fi
26         make mrproper
27         make headers_check
28         mkdir -p $prefix/tmp
29         make INSTALL_HDR_PATH=$prefix/tmp headers_install
30         cp -R $prefix/tmp/include/* $prefix/include
31         rm -rf $prefix/tmp
32
33         # old part      
34         #make include/linux/version.h &&
35         # change for crossbuilds
36         #make include/asm
37                 }