Patch to compare new config instead of the one left laying around in the kerncache dir. Thanks to Pat Double <gentoo@patdouble.com> in bug #179739

git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@520 67a159dc-881f-0410-a524-ba9dfbe2cb84
cleanup-cruft
Andrew Gaffney 18 years ago
parent f10cd4ee6a
commit 8befa2ea18

@ -2,6 +2,10 @@
# Copyright 2006-2007 Gentoo Foundation; Distributed under the GPL v2 # Copyright 2006-2007 Gentoo Foundation; Distributed under the GPL v2
# $Header: $ # $Header: $
26 Jul 2007; Andrew Gaffney <agaffney@gentoo.org> gen_package.sh:
Patch to compare new config instead of the one left laying around in the
kerncache dir. Thanks to Pat Double <gentoo@patdouble.com> in bug #179739
26 Jul 2007; Andrew Gaffney <agaffney@gentoo.org> gen_compile.sh, 26 Jul 2007; Andrew Gaffney <agaffney@gentoo.org> gen_compile.sh,
gen_initramfs.sh, gen_initrd.sh, genkernel.conf: gen_initramfs.sh, gen_initrd.sh, genkernel.conf:
Patch to actually use busybox bincache. Thanks to Pat Double Patch to actually use busybox bincache. Thanks to Pat Double

@ -155,12 +155,18 @@ gen_kerncache_is_valid()
else else
if [ -e "${KERNCACHE}" ] if [ -e "${KERNCACHE}" ]
then then
KERNEL_CONFIG="/${KERNEL_DIR}/.config"
if [ "${CMD_KERNEL_CONFIG}" != '' ]
then
KERNEL_CONFIG="${CMD_KERNEL_CONFIG}"
fi
/bin/tar -xj -f ${KERNCACHE} -C ${TEMP} /bin/tar -xj -f ${KERNCACHE} -C ${TEMP}
if [ -e ${TEMP}/config-${ARCH}-${KV} -a -e /${KERNEL_DIR}/.config ] if [ -e ${TEMP}/config-${ARCH}-${KV} -a -e ${KERNEL_CONFIG} ]
then then
test1=$(md5sum ${TEMP}/config-${ARCH}-${KV} | cut -d " " -f 1) test1=$(grep -v "^#" ${TEMP}/config-${ARCH}-${KV} | md5sum | cut -d " " -f 1)
test2=$(md5sum /${KERNEL_DIR}/.config | cut -d " " -f 1) test2=$(grep -v "^#" ${KERNEL_CONFIG} | md5sum | cut -d " " -f 1)
if [ "${test1}" == "${test2}" ] if [ "${test1}" == "${test2}" ]
then then

Loading…
Cancel
Save