summaryrefslogtreecommitdiff
path: root/eclass/linux-build.eclass
diff options
context:
space:
mode:
Diffstat (limited to 'eclass/linux-build.eclass')
-rw-r--r--eclass/linux-build.eclass8
1 files changed, 6 insertions, 2 deletions
diff --git a/eclass/linux-build.eclass b/eclass/linux-build.eclass
index 4922ded8..20e056d0 100644
--- a/eclass/linux-build.eclass
+++ b/eclass/linux-build.eclass
@@ -313,8 +313,12 @@ _linux-build_src_prepare_build() {
emake olddefconfig "${myopt[@]}"
fi
- if diff -Nu0 "${BUILDDIR}/.config.old" "${BUILDDIR}/.config" \
- | egrep -q '^(\-|\+)CONFIG_' ; then
+ if ! diff -q \
+ --ignore-matching-lines '^# ' \
+ --ignore-matching-lines '^CONFIG_GCC_VERSION=' \
+ --ignore-matching-lines '^CONFIG_CLANG_VERSION=' \
+ "${BUILDDIR}/.config.old" "${BUILDDIR}/.config" ; then
+
eerror "You configuration is not up to date"
diff -Nu "${BUILDDIR}/.config.old" "${BUILDDIR}/.config"
die "Bad configuration"