From: brian Date: Fri, 28 Oct 2005 17:49:49 +0000 (+0000) Subject: r=nic X-Git-Tag: 1.4.10~400 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=bbf352545f275c194f195f1a702e931412fbbe76;p=fs%2Flustre-release.git 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. --- 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 <