1 # hdw - linux linux package
3 # author: hackbard@hackdaworld.dyndns.org
7 # [D] linux-2.6.7.tar.bz2 ftp://ftp.kernel.org/pub/linux/kernel/v2.6/
14 tar --use-compress-program=$compress -xvf $archdir/$pkg
15 mv linux-${ver} linux-${ver}-hdw && ln -s linux-$ver-hdw linux
16 chown -R root.root linux-${ver}-hdw
18 cp -v $archdir/$pkg kernel/
19 cp -v $hdw_home_dir/misc/arch/$hdw_arch/linux.config \
20 kernel/${package}-${ver}.config
24 if [ "$hdw_crossbuild" != "0" ] ; then
25 sed -e "s,^ARCH.*,ARCH = ${hdw_arch//ia32/i386}," \
26 -e "s,^CROSS_COMPILE.*,CROSS_COMPILE = $hdw_arch_target-," \
32 echo "mrproper, version, autoconf ..."
34 echo "copy .config ..."
35 cp -v $hdw_home_dir/misc/arch/$hdw_arch/linux.config .config
36 make include/linux/version.h &&
41 make bzImage ; cp -v System.map $root/boot/
42 cp -v arch/i386/boot/bzImage \
43 $root/boot/vmlinuz_hdw ;;
45 make vmlinux ; cp -v System.map $root/boot/
46 cp vmlinux $root/boot/vmlinuz_hdw ;;
48 echo -e "\n !! not supported yet !!"
51 echo "modules, modules_install ..."
53 make modules_install INSTALL_MOD_PATH=$root DEPMOD="true"