From bbf352545f275c194f195f1a702e931412fbbe76 Mon Sep 17 00:00:00 2001 From: brian Date: Fri, 28 Oct 2005 17:49:49 +0000 Subject: [PATCH] r=nic Anchor the search for the right target to rebuild the .config file to avoid using the wrong one just because it's mentioned (as a non-target) in the Makefile. If make $oldconfig produces a .config that is different than we have for that kernel in the Lustre tree, tell the QA folks so they can update the tree to have the same kernel_config. --- build/lmake | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/build/lmake b/build/lmake index 69299d4..8541510 100755 --- a/build/lmake +++ b/build/lmake @@ -355,11 +355,24 @@ depend_kernel() rm -f rpm-release cp "$CONFIG_FILE" .config for oc in oldconfig_nonint silentoldconfig oldconfig ; do - if grep -q "$oc" Makefile ; then - $MAKE "$MAKE_CC" $oc || fatal 1 "Error running make oldconfig" + if grep -q "^$oc:" Makefile ; then + $MAKE "$MAKE_CC" $oc || fatal 1 "Error running make oldconfig ($oc)" break fi done + # now notify if resulting .config is different than $CONFIG_FILE + if ! cmp "$CONFIG_FILE" .config; then + { cat <