Print this page
11972 resync smatch
@@ -50,12 +50,19 @@
echo "And the sqlite3 libraries for Perl and Python"
exit 1
fi
fi
-make -j${NR_CPU} CHECK="$BIN_DIR/smatch --call-tree --info --param-mapper --spammy --file-output" $TARGET
+if [[ ! -z $ARCH ]]; then
+ KERNEL_ARCH="ARCH=$ARCH"
+fi
+if [[ ! -z $CROSS_COMPILE ]] ; then
+ KERNEL_CROSS_COMPILE="CROSS_COMPILE=$CROSS_COMPILE"
+fi
+make $KERNEL_ARCH $KERNEL_CROSS_COMPILE -j${NR_CPU} CHECK="$BIN_DIR/smatch --call-tree --info --param-mapper --spammy --file-output" $TARGET
+
find -name \*.c.smatch -exec cat \{\} \; -exec rm \{\} \; > smatch_warns.txt
for i in $SCRIPT_DIR/gen_* ; do
$i smatch_warns.txt -p=${PROJECT}
done