From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 7FA1EA05D3 for ; Thu, 23 May 2019 09:45:56 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DC65825D9; Thu, 23 May 2019 09:45:55 +0200 (CEST) Received: from proxy.6wind.com (host.76.145.23.62.rev.coltfrance.com [62.23.145.76]) by dpdk.org (Postfix) with ESMTP id 60D0C9E4 for ; Thu, 23 May 2019 09:45:55 +0200 (CEST) Received: from glumotte.dev.6wind.com. (unknown [10.16.0.195]) by proxy.6wind.com (Postfix) with ESMTP id 3DFED2B9AC0; Thu, 23 May 2019 09:45:55 +0200 (CEST) From: Olivier Matz To: dev@dpdk.org Cc: Thomas Monjalon Date: Thu, 23 May 2019 09:45:49 +0200 Message-Id: <20190523074549.29376-1-olivier.matz@6wind.com> X-Mailer: git-send-email 2.11.0 Subject: [dpdk-dev] [PATCH] devtools: pass custom options to checkpatch X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Add the ability to pass custom options to checkpatch script. An example of use is to change the output format so it can run in emacs compilation mode: DPDK_CHECKPATCH_PATH=/path/to/linux/scripts/checkpatch.pl \ DPDK_CHECKPATCH_OPTIONS='--emacs --showfile --no-color' \ /path/to/dpdk.org/devtools/checkpatches.sh Signed-off-by: Olivier Matz --- devtools/checkpatches.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/devtools/checkpatches.sh b/devtools/checkpatches.sh index 6a01b39c8..bd0a93178 100755 --- a/devtools/checkpatches.sh +++ b/devtools/checkpatches.sh @@ -6,6 +6,7 @@ # - DPDK_CHECKPATCH_PATH # - DPDK_CHECKPATCH_CODESPELL # - DPDK_CHECKPATCH_LINE_LENGTH +# - DPDK_CHECKPATCH_OPTIONS . $(dirname $(readlink -e $0))/load-devel-config VALIDATE_NEW_API=$(dirname $(readlink -e $0))/check-symbol-change.sh @@ -33,6 +34,7 @@ PREFER_KERNEL_TYPES,BIT_MACRO,CONST_STRUCT,\ SPLIT_STRING,LONG_LINE_STRING,\ LINE_SPACING,PARENTHESIS_ALIGNMENT,NETWORKING_BLOCK_COMMENT_STYLE,\ NEW_TYPEDEFS,COMPARISON_TO_NULL" +options="$options $DPDK_CHECKPATCH_OPTIONS" clean_tmp_files() { if echo $tmpinput | grep -q '^checkpatches\.' ; then -- 2.11.0