From: Luis R. Rodriguez Date: Thu, 18 Oct 2012 22:13:34 +0000 (-0700) Subject: compat: fix first ckmake make clean assumption X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c57b539b1e32769fb3bd0ca52ff4318c8f205592;p=openwrt%2Fstaging%2Fblogic.git compat: fix first ckmake make clean assumption Any directory should be used to make the first 'make clean' but we should get that from the KLIBS variable. Use the first kernel found that we can use. This fixes a complaint when your current kernel has no kernel headers installed but you do have some present on the compat-ksrc dir. Signed-off-by: Luis R. Rodriguez --- diff --git a/bin/ckmake b/bin/ckmake index d40816070057..f1746962921e 100755 --- a/bin/ckmake +++ b/bin/ckmake @@ -238,7 +238,8 @@ for i in $LOG $LOG_TMP $REPORT; do echo > $i done -nice make clean 2>&1 > $LOG +DIR="$(echo $KLIBS | awk '{print $1}')/build" +nice make clean KLIB=$DIR KLIB_BUILD=$DIR 2>&1 >> $LOG if [[ $TIME != "1" ]]; then run_ckmake | tee_color_split $REPORT