# Copyright 2002-2008 Gentoo Foundation; 2008 Chris Gianelloni, Andrew Gaffney
# Distributed under the GPL v2
+ 24 Dec 2008; Andrew Gaffney <agaffney@gentoo.org>
+ targets/netboot2/netboot2-controller.sh, targets/support/kmerge.sh:
+ Add support for gk's --busybox-config= option
+
23 Dec 2008; Andrew Gaffney <agaffney@gentoo.org>
modules/generic_stage_target.py:
Missing / before 'iso'
;;
pre-kmerge)
# Sets up the build environment before any kernels are compiled
-# if [ -n "${clst_netboot2_busybox_config}" ]; then
-# cp ${clst_netboot2_busybox_config} ${clst_chroot_path}/tmp/busy-config
-# fi
exec_in_chroot ${clst_sharedir}/targets/support/pre-kmerge.sh
;;
post-kmerge)
then
cp -pPR ${clst_linuxrc} ${clst_chroot_path}/tmp/linuxrc
fi
+ if [ -n "${clst_busybox_config}" ]
+ then
+ cp ${clst_busybox_config} ${clst_chroot_path}/tmp/busy-config
+ fi
+
exec_in_chroot ${clst_sharedir}/targets/support/kmerge.sh
+
delete_from_chroot tmp/linuxrc
+ delete_from_chroot tmp/busy-config
extract_modules ${clst_chroot_path} ${clst_kname}
#16:12 <@solar> kernel_name=foo
GK_ARGS="${GK_ARGS} --linuxrc=/tmp/linuxrc"
fi
- if [ "${clst_target}" == "netboot2" ]
- then
+ if [ -n "${clst_busybox_config}" ]
+ then
+ GK_ARGS="${GK_ARGS} --busybox-config=/tmp/busy-config"
+ fi
+
+ if [ "${clst_target}" == "netboot2" ]
+ then
GK_ARGS="${GK_ARGS} --netboot"
if [ -n "${clst_merge_path}" ]
then
- GK_ARGS="${GK_ARGS} --initramfs-overlay=\"${clst_merge_path}\""
+ GK_ARGS="${GK_ARGS} --initramfs-overlay=\"${clst_merge_path}\""
fi
- fi
+ fi
}
genkernel_compile(){