# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
# $Id: $
+ 05 Mar 2008; Chris Gianelloni <wolf31o2@gentoo.org> catalyst,
+ modules/generic_stage_target.py, targets/support/kmerge.sh,
+ targets/support/pre-kmerge.sh:
+ Changed boot/kernel/${kname}/config and boot/kernel/${kname}/sources to be
+ valid, rather than required, changed clst_ksource to default to
+ virtual/linux-sources if boot/kernel/${kname}/sources is unset, moved
+ removal of USE to after the kernel build so the modules get the correct USE,
+ and did some minor cleanup on pre-kmerge. This is 2.0.6_pre13 for testing.
+
05 Mar 2008; Chris Gianelloni <wolf31o2@gentoo.org>
targets/support/kmerge.sh:
We should run the default functions for kmerge.sh, too.
import pdb
__maintainer__="Chris Gianelloni <wolf31o2@gentoo.org>"
-__version__="2.0.6_pre12"
+__version__="2.0.6_pre13"
conf_values={}
loopy=addlargs["boot/kernel"]
for x in loopy:
- self.required_values.append("boot/kernel/"+x+"/sources")
- self.required_values.append("boot/kernel/"+x+"/config")
self.valid_values.append("boot/kernel/"+x+"/aliases")
+ self.valid_values.append("boot/kernel/"+x+"/config")
+ self.valid_values.append("boot/kernel/"+x+"/console")
self.valid_values.append("boot/kernel/"+x+"/extraversion")
+ self.valid_values.append("boot/kernel/"+x+"/gk_action")
+ self.valid_values.append("boot/kernel/"+x+"/gk_kernargs")
+ self.valid_values.append("boot/kernel/"+x+"/initramfs_overlay")
+ self.valid_values.append("boot/kernel/"+x+"/machine_type")
+ self.valid_values.append("boot/kernel/"+x+"/sources")
+ self.valid_values.append("boot/kernel/"+x+"/softlevel")
+ self.valid_values.append("boot/kernel/"+x+"/use")
self.valid_values.append("boot/kernel/"+x+"/packages")
if addlargs.has_key("boot/kernel/"+x+"/packages"):
if type(addlargs["boot/kernel/"+x+\
"/packages"])==types.StringType:
addlargs["boot/kernel/"+x+"/packages"]=\
[addlargs["boot/kernel/"+x+"/packages"]]
- self.valid_values.append("boot/kernel/"+x+"/use")
- self.valid_values.append("boot/kernel/"+x+"/gk_kernargs")
- self.valid_values.append("boot/kernel/"+x+"/gk_action")
- self.valid_values.append("boot/kernel/"+x+"/initramfs_overlay")
- self.valid_values.append("boot/kernel/"+x+"/softlevel")
- self.valid_values.append("boot/kernel/"+x+"/console")
- self.valid_values.append("boot/kernel/"+x+"/machine_type")
# TODO: remove this warning/code with the next major version
self.valid_values.append("boot/kernel/"+x+"/postconf")
if addlargs.has_key("boot/kernel/"+x+"/postconf"):
del self.settings[self.settings["spec_prefix"]+"/devmanager"]
if self.settings.has_key(self.settings["spec_prefix"]+"/splashtype"):
+ # TODO: remove this warning/code with the next major version
+ print self.settings["spec_prefix"]+\
+ "/splashtype is deprecated and will be removed."
self.settings["splashtype"]=\
self.settings[self.settings["spec_prefix"]+"/splashtype"]
del self.settings[self.settings["spec_prefix"]+"/splashtype"]
filtered_kname=${filtered_kname/\./_}
eval "clst_kernel_use=\$clst_boot_kernel_${filtered_kname}_use"
-
eval "clst_kernel_gk_kernargs=\$clst_boot_kernel_${filtered_kname}_gk_kernargs"
eval "clst_ksource=\$clst_boot_kernel_${filtered_kname}_sources"
+if [ -z "${clst_ksource}" ]
+then
+ clst_ksource="virtual/linux-sources"
+fi
+
# Don't use pkgcache here, as the kernel source may get emerged with different
# USE variables (and thus different patches enabled/disabled.) Also, there's no
# real benefit in using the pkgcache for kernel source ebuilds.
run_merge "${clst_ksource}" || exit 1
fi
make_destpath
-sed -i "/USE=\"\${USE} ${clst_kernel_use} symlink build\"/d" /etc/make.conf
# If catalyst has set to a empty string, extraversion wasn't specified so we
# skip this part
fi
build_kernel
+sed -i "/USE=\"\${USE} ${clst_kernel_use} symlink build\"/d" /etc/make.conf
# grep out the kernel version so that we can do our modules magic
VER=`grep ^VERSION\ \= /usr/src/linux/Makefile | awk '{ print $3 };'`
PAT=`grep ^PATCHLEVEL\ \= /usr/src/linux/Makefile | awk '{ print $3 };'`
install -d /tmp/kerncache
case ${clst_target} in
- livecd*|stage4)
-
- ;;
-
netboot2)
- run_merge --oneshot genkernel
- install -d /tmp/kerncache
-
# Set the netboot builddate/hostname in linuxrc and copy to proper arch
# directory in genkernel
sed -e "s/@@MYDATE@@/$(date '+%Y%m%d')/g" \