From 12b66e3338b2e1dbfa5925cff3b146088b8cb1e0 Mon Sep 17 00:00:00 2001 From: brian Date: Fri, 28 Oct 2005 19:36:48 +0000 Subject: [PATCH] r=nic Look in the right place for *config targets for kernel make. --- build/lmake | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/build/lmake b/build/lmake index 8541510..a1e07b8 100755 --- a/build/lmake +++ b/build/lmake @@ -354,8 +354,14 @@ depend_kernel() $MAKE "$MAKE_CC" mrproper || fatal 1 "Error running make mrproper" rm -f rpm-release cp "$CONFIG_FILE" .config - for oc in oldconfig_nonint silentoldconfig oldconfig ; do - if grep -q "^$oc:" Makefile ; then + # find the right file to grep in for the target + for makefile in scripts/kconfig/Makefile Makefile; do + if [ -f $makefile ]; then + break + fi + done + for oc in nonint_oldconfig silentoldconfig oldconfig ; do + if grep -q "^$oc:" $makefile ; then $MAKE "$MAKE_CC" $oc || fatal 1 "Error running make oldconfig ($oc)" break fi -- 1.8.3.1