diff options
author | 2007-07-26 02:52:50 +0000 | |
---|---|---|
committer | 2007-07-26 02:52:50 +0000 | |
commit | 8befa2ea18321313639f19b40e55d7757d042ae5 (patch) | |
tree | 2f0e626a4fd27dd3097ab30cac5074ad419b2e02 /gen_package.sh | |
parent | Patch to actually use busybox bincache. Thanks to Pat Double (diff) | |
download | genkernel-8befa2ea18321313639f19b40e55d7757d042ae5.tar.gz genkernel-8befa2ea18321313639f19b40e55d7757d042ae5.tar.bz2 genkernel-8befa2ea18321313639f19b40e55d7757d042ae5.zip |
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
Diffstat (limited to 'gen_package.sh')
-rw-r--r-- | gen_package.sh | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/gen_package.sh b/gen_package.sh index 323bb7c8..54a0984d 100644 --- a/gen_package.sh +++ b/gen_package.sh @@ -155,12 +155,18 @@ gen_kerncache_is_valid() 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 |