[PATCH 3/3] kernelscan.sh: remove -E and -P phases to parsing
Colin King
colin.king at canonical.com
Wed Apr 27 09:53:38 UTC 2016
From: Colin Ian King <colin.king at canonical.com>
Just parse the input without the need to use the -E and -P phases
Signed-off-by: Colin Ian King <colin.king at canonical.com>
---
src/utilities/kernelscan.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/utilities/kernelscan.sh b/src/utilities/kernelscan.sh
index 63600eb..65aa436 100755
--- a/src/utilities/kernelscan.sh
+++ b/src/utilities/kernelscan.sh
@@ -42,7 +42,7 @@ fi
scan_source_file()
{
if [ -f $1 ]; then
- $KERNELSCAN < $1 -E | gcc -E $CONFIGS - | $KERNELSCAN -P > $TMP
+ $KERNELSCAN -P < $1 > $TMP
if [ $(stat -c%s $TMP) -gt 0 ]; then
echo "Source: $1"
cat $TMP
--
2.7.4
More information about the fwts-devel
mailing list