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 <mcgrof@do-not-panic.com>
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