--- /dev/null
+subarch: amd64
+version_stamp: 20040201
+target: stage1
+rel_type: default
+rel_version: 2004.0
+snapshot: 20040201
+source_subpath: default-amd64-2004.0/stage2-amd64-20040201
--- /dev/null
+subarch: amd64
+version_stamp: 20040201
+target: stage2
+rel_type: default
+rel_version: 2004.0
+snapshot: 20040201
+source_subpath: default-amd64-2004.0/stage1-amd64-20040201
--- /dev/null
+subarch: amd64
+version_stamp: 20040201
+target: stage3
+rel_type: default
+rel_version: 2004.0
+snapshot: 20040201
+source_subpath: default-amd64-2004.0/stage2-amd64-20040201
subarch: amd64
-version_stamp: 20040124
+version_stamp: 20040201
target: livecd-stage1
rel_type: default
-rel_version: 1.4
-snapshot: 20040124
-source_subpath: default-amd64-1.4/stage3-amd64-20040124
+rel_version: 2004.0
+snapshot: 20040201
+source_subpath: default-amd64-2004.0/stage3-amd64-20040201
livecd/use:
-X
-gtk
-svga
+ fbcon
livecd
livecd/packages:
>=sys-apps/baselayout-1.8.6.12-r4
subarch: amd64
-version_stamp: 20040124
+version_stamp: 20040201
target: livecd-stage2
rel_type: default
-rel_version: 1.4
-snapshot: 20040124
-source_subpath: default-amd64-1.4/livecd-stage1-amd64-20040124
-livecd/cdfstype: normal
+rel_version: 2004.0
+snapshot: 20040201
+source_subpath: default-amd64-2004.0/livecd-stage1-amd64-20040201
+livecd/cdfstype: zisofs
livecd/archscript: examples/livecd/runscript/x86-archscript.sh
livecd/runscript: examples/livecd/runscript/default-runscript.sh
livecd/cdtar: examples/livecd/cdtar/isolinux-2.08-cdtar.tar.bz2
-boot/kernel: gentoo
+boot/kernel: gentoo smp
boot/kernel/gentoo/sources: =sys-kernel/gentoo-dev-sources-2.6.2_rc1
boot/kernel/gentoo/config: /usr/share/genkernel/x86_64/kernel-config-2.6
+boot/kernel/gentoo/extraversion: up
+boot/kernel/smp/sources: =sys-kernel/gentoo-dev-sources-2.6.2_rc1
+boot/kernel/smp/config: /usr/share/genkernel/x86_64/kernel-config-2.6-smp
+boot/kernel/smp/extraversion: smp
+
livecd/unmerge:
autoconf automake bin86 binutils libtool m4 bison ld.so make perl patch linux-headers man-pages
sash bison flex gettext texinfo ccache addpatches man groff lib-compat gcc python miscfiles ucl
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/examples/livecd/runscript/Attic/default-runscript.sh,v 1.11 2004/01/26 18:15:50 brad_mssw Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/examples/livecd/runscript/Attic/default-runscript.sh,v 1.12 2004/02/02 04:00:40 brad_mssw Exp $
#return codes to be used by archscript
shift
clst_ksource="$1"
shift
+ clst_kextversion="$1"
+ shift
$clst_CHROOT $clst_chroot_path /bin/bash << EOF
# SCRIPT TO BUILD EACH KERNEL. THIS GETS EXECUTED IN CHROOT
env-update
else
emerge --noreplace $clst_ksource || exit 1
fi
-
+ # Append Extraversion
+ [ ! -e /usr/src/linux ] && exit 1
+ sed -i -e "s:EXTRAVERSION \(=.*\):EXTRAVERSION \1-${clst_kextversion}:" /usr/src/linux/Makefile
genkernel ${genkernel_args} --kerneldir=/usr/src/linux --kernel-config=/var/tmp/$clst_kname.config --minkernpackage=/tmp/binaries/$clst_kname.tar.bz2 all || exit 1
emerge -C genkernel $clst_ksource
# END OF SCRIPT TO BUILD EACH KERNEL
rc-update del consolefont
rc-update add metalog default
rc-update add modules default
+ [ -e /etc/init.d/bootsplash ] && rc-update add bootsplash default
/sbin/depscan.sh
rm -rf /etc/localtime
cp /usr/share/zoneinfo/GMT /etc/localtime
-X
-gtk
-svga
+ fbcon
livecd
livecd/packages:
>=sys-apps/baselayout-1.8.6.12-r4
boot/kernel: gentoo
boot/kernel/gentoo/sources: =sys-kernel/gentoo-dev-sources-2.6.1-r1
boot/kernel/gentoo/config: examples/livecd/x86/config-2.6.1-x86
+boot/kernel/gentoo/extraversion: livecd
livecd/unmerge:
autoconf automake bin86 binutils libtool m4 bison ld.so make perl patch linux-headers man-pages
sash bison flex gettext texinfo ccache addpatches man groff lib-compat gcc python miscfiles ucl
for x in loopy:
self.required_values.append("boot/kernel/"+x+"/sources")
self.required_values.append("boot/kernel/"+x+"/config")
+ self.required_values.append("boot/kernel/"+x+"/extraversion")
self.valid_values=self.required_values[:]
self.valid_values.extend(["livecd/cdtar","livecd/empty","livecd/rm","livecd/unmerge"])
generic_stage_target.__init__(self,spec,addlargs)
if not os.path.exists(self.settings["boot/kernel/"+x+"/config"]):
self.unbind()
raise CatalystError, "Can't find kernel config: "+self.settings["boot/kernel/"+x+"/config"]
+
+ # We must support multiple configs for the same kernel, so we must manually edit the
+ # EXTRAVERSION on the kernel to allow them to coexist. The extraversion field gets appended
+ # to the current EXTRAVERSION in the kernel Makefile. Examples of this usage are UP vs SMP kernels,
+ # and on PPC64 we need a seperate pSeries, iSeries, and PPC970 (G5) kernels, all compiled off the
+ # same source, without having to release a seperate livecd for each (since other than the kernel,
+ # they are all binary compatible)
+ args.append(self.settings["boot/kernel/"+x+"/extraversion"])
retval=os.system("cp "+self.settings["boot/kernel/"+x+"/config"]+" "+self.settings["chroot_path"]+"/var/tmp/"+x+".config")
if retval!=0:
self.unbind()