Added ccache support to genkernel call in livecd-stage2.
authorChris Gianelloni <wolf31o2@gentoo.org>
Tue, 11 Jan 2005 22:49:44 +0000 (22:49 +0000)
committerChris Gianelloni <wolf31o2@gentoo.org>
Tue, 11 Jan 2005 22:49:44 +0000 (22:49 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@517 d1e1f19c-881f-0410-ab34-b69fee027534

ChangeLog
livecd/runscript-support/kmerge.sh

index 6a5ee64b45f7e0b58fd09b245d3752eada26c8c6..eddd3ad351b7e3ea14829995118ac8ab161af5f4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,10 @@
 # ChangeLog for gentoo/src/catalyst 
 # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.144 2005/01/11 15:22:41 zhen Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.145 2005/01/11 22:49:44 wolf31o2 Exp $
+
+  11 Jan 2005; Chris Gianelloni <wolf31o2@gentoo.org>
+  livecd/runscript-support/kmerge.sh:
+  Added ccache support to genkernel call in livecd-stage2.
 
   11 Jan 2005; John Davis <zhen@gentoo.org>
   targets/netboot/netboot-busybox.sh, targets/netboot/netboot-combine.sh,
index faaf86f3e22638155d2a7ee6e897e9e0361a44a6..ca6b26ea5d62f582251c576d0d78ffecd0bc120c 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/livecd/runscript-support/Attic/kmerge.sh,v 1.19 2004/10/28 15:05:36 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/livecd/runscript-support/Attic/kmerge.sh,v 1.20 2005/01/11 22:49:44 wolf31o2 Exp $
 
 die() {
        echo "$1"
@@ -12,6 +12,7 @@ build_kernel() {
        # default genkernel args
        GK_ARGS="${clst_livecd_gk_mainargs} \
                         ${clst_livecd_gk_kernargs} \
+                        --no-mountboot \
                         --kerneldir=/usr/src/linux \
                         --kernel-config=/var/tmp/${clst_kname}.config \
                         --minkernpackage=/usr/portage/packages/gk_binaries/${clst_kname}-${clst_version_stamp}.tar.bz2 all"
@@ -26,6 +27,11 @@ build_kernel() {
        then
                GK_ARGS="${GK_ARGS} --gensplash=${clst_livecd_splash_theme}"
        fi
+
+       if [ -n "${clst_CCACHE}" ]
+       then
+               GK_ARGS="${GK_ARGS} --kernel-cc=/usr/lib/ccache/bin/gcc --utils-cc=/usr/lib/ccache/bin/gcc"
+       fi
        
        if [  -e "/var/tmp/${clst_kname}.postconf" ]
        then