# Copyright 2006-2007 Gentoo Foundation; Distributed under the GPL v2
# $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,
gen_initramfs.sh, gen_initrd.sh, genkernel.conf:
Patch to actually use busybox bincache. Thanks to Pat Double
else
if [ -e "${KERNCACHE}" ]
then
+ KERNEL_CONFIG="/${KERNEL_DIR}/.config"
+ if [ "${CMD_KERNEL_CONFIG}" != '' ]
+ then
+ KERNEL_CONFIG="${CMD_KERNEL_CONFIG}"
+ fi
+
/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
- test1=$(md5sum ${TEMP}/config-${ARCH}-${KV} | cut -d " " -f 1)
- test2=$(md5sum /${KERNEL_DIR}/.config | cut -d " " -f 1)
+ test1=$(grep -v "^#" ${TEMP}/config-${ARCH}-${KV} | md5sum | cut -d " " -f 1)
+ test2=$(grep -v "^#" ${KERNEL_CONFIG} | md5sum | cut -d " " -f 1)
if [ "${test1}" == "${test2}" ]
then