# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.358 2005/10/17 17:11:33 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.359 2005/10/17 19:01:06 rocket Exp $
+
+ 17 Oct 2005; Eric Edgar <rocket@gentoo.org>
+ modules/generic_stage_target.py, targets/embedded/embedded-controller.sh,
+ targets/livecd-stage2/livecd-stage2-controller.sh,
+ targets/netboot/netboot-controller.sh,
+ targets/stage4/stage4-controller.sh:
+ run pre_kmerge and post_kmerge only once
17 Oct 2005; Eric Edgar <rocket@gentoo.org>
targets/support/bootloader-setup.sh:
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/modules/generic_stage_target.py,v 1.66 2005/10/13 17:13:35 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/modules/generic_stage_target.py,v 1.67 2005/10/17 19:01:06 rocket Exp $
"""
This class does all of the chroot setup, copying of files, etc. It is
mynames=self.settings["boot/kernel"]
if type(mynames)==types.StringType:
mynames=[mynames]
+ # execute the script that sets up the kernel build environment
+ cmd("/bin/bash "+self.settings["controller_file"]+" pre-kmerge ",\
+ "Runscript pre-kmerge failed")
for kname in mynames:
try:
print "Cleaning up temporary overlay dir"
cmd("rm -R "+self.settings["chroot_path"]+"/tmp/initramfs_overlay/")
+ # execute the script that cleans up the kernel build environment
+ cmd("/bin/bash "+self.settings["controller_file"]+" post-kmerge ",\
+ "Runscript post-kmerge failed")
+
touch(self.settings["autoresume_path"]+"build_kernel")
except CatalystError:
#!/bin/bash
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/embedded/embedded-controller.sh,v 1.5 2005/08/09 19:02:31 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/embedded/embedded-controller.sh,v 1.6 2005/10/17 19:01:06 rocket Exp $
. ${clst_sharedir}/targets/support/functions.sh
. ${clst_sharedir}/targets/support/filesystem-functions.sh
# ;;
+ pre-kmerge)
+ # Sets up the build environment before any kernels are compiled
+ exec_in_chroot ${clst_sharedir}/targets/support/pre-kmerge.sh
+ ;;
+ post-kmerge)
+ # Cleans up the build environment after the kernels are compiled
+ exec_in_chroot ${clst_sharedir}/targets/support/post-kmerge.sh
+ ;;
+
kernel)
shift
export clst_kname="$1"
then
cp -a ${clst_linuxrc} ${clst_chroot_path}/tmp/linuxrc
fi
- exec_in_chroot ${clst_sharedir}/targets/support/pre-kmerge.sh
exec_in_chroot ${clst_sharedir}/targets/support/kmerge.sh
delete_from_chroot tmp/linuxrc
- exec_in_chroot ${clst_sharedir}/targets/support/post-kmerge.sh
-
;;
target_image_setup)
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/livecd-stage2/livecd-stage2-controller.sh,v 1.13 2005/08/09 19:02:31 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/livecd-stage2/livecd-stage2-controller.sh,v 1.14 2005/10/17 19:01:06 rocket Exp $
. ${clst_sharedir}/targets/support/functions.sh
. ${clst_sharedir}/targets/support/filesystem-functions.sh
case $1 in
+ pre-kmerge)
+ # Sets up the build environment before any kernels are compiled
+ exec_in_chroot ${clst_sharedir}/targets/support/pre-kmerge.sh
+ ;;
+ post-kmerge)
+ # Cleans up the build environment after the kernels are compiled
+ exec_in_chroot ${clst_sharedir}/targets/support/post-kmerge.sh
+ ;;
kernel)
shift
export clst_kname="$1"
then
cp -a ${clst_linuxrc} ${clst_chroot_path}/tmp/linuxrc
fi
- exec_in_chroot ${clst_sharedir}/targets/support/pre-kmerge.sh
exec_in_chroot ${clst_sharedir}/targets/support/kmerge.sh
delete_from_chroot tmp/linuxrc
- exec_in_chroot ${clst_sharedir}/targets/support/post-kmerge.sh
extract_modules ${clst_chroot_path} ${clst_kname}
#16:12 <@solar> kernel_name=foo
#!/bin/bash
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/netboot/netboot-controller.sh,v 1.3 2005/07/05 21:53:41 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/netboot/netboot-controller.sh,v 1.4 2005/10/17 19:01:06 rocket Exp $
. ${clst_sharedir}/targets/support/functions.sh
. ${clst_sharedir}/targets/support/filesystem-functions.sh
exec_in_chroot ${clst_sharedir}/targets/${clst_target}/${clst_target}-chroot.sh
;;
+ pre-kmerge)
+ # Sets up the build environment before any kernels are compiled
+ #exec_in_chroot ${clst_sharedir}/targets/support/pre-kmerge.sh
+ ;;
+ post-kmerge)
+ # Cleans up the build environment after the kernels are compiled
+ #exec_in_chroot ${clst_sharedir}/targets/support/post-kmerge.sh
+ ;;
+
kernel)
shift
export clst_kname="$1"
#!/bin/bash
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage4/stage4-controller.sh,v 1.8 2005/08/09 19:02:31 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage4/stage4-controller.sh,v 1.9 2005/10/17 19:01:06 rocket Exp $
. ${clst_sharedir}/targets/support/functions.sh
enter)
${clst_CHROOT} ${clst_chroot_path}
;;
+ pre-kmerge)
+ # Sets up the build environment before any kernels are compiled
+ exec_in_chroot ${clst_sharedir}/targets/support/pre-kmerge.sh
+ ;;
+ post-kmerge)
+ # Cleans up the build environment after the kernels are compiled
+ exec_in_chroot ${clst_sharedir}/targets/support/post-kmerge.sh
+ ;;
kernel)
shift
export clst_kname="$1"
then
cp -a ${clst_linuxrc} ${clst_chroot_path}/tmp/linuxrc
fi
- exec_in_chroot ${clst_sharedir}/targets/support/pre-kmerge.sh
exec_in_chroot ${clst_sharedir}/targets/support/kmerge.sh
delete_from_chroot tmp/linuxrc
- exec_in_chroot ${clst_sharedir}/targets/support/post-kmerge.sh
extract_modules ${clst_chroot_path} ${clst_kname}
extract_kernel ${clst_chroot_path}/boot ${clst_kname}
;;