From patchwork Wed Apr 27 09:53:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Ian King X-Patchwork-Id: 615490 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) by ozlabs.org (Postfix) with ESMTP id 3qvwJr5Pg3z9t5Z; Wed, 27 Apr 2016 19:53:48 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.76) (envelope-from ) id 1avMAF-00055N-BR; Wed, 27 Apr 2016 09:53:47 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1avMA8-00054c-S1 for fwts-devel@lists.ubuntu.com; Wed, 27 Apr 2016 09:53:40 +0000 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1avMA8-000243-HB; Wed, 27 Apr 2016 09:53:40 +0000 From: Colin King To: fwts-devel@lists.ubuntu.com Subject: [PATCH 3/3] kernelscan.sh: remove -E and -P phases to parsing Date: Wed, 27 Apr 2016 10:53:38 +0100 Message-Id: <1461750818-17590-4-git-send-email-colin.king@canonical.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1461750818-17590-1-git-send-email-colin.king@canonical.com> References: <1461750818-17590-1-git-send-email-colin.king@canonical.com> X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.14 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: fwts-devel-bounces@lists.ubuntu.com Sender: fwts-devel-bounces@lists.ubuntu.com From: Colin Ian King Just parse the input without the need to use the -E and -P phases Signed-off-by: Colin Ian King Acked-by: Alex Hung Acked-by: Ivan Hu --- 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