summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Matz <olivier.matz@6wind.com>2019-05-23 09:45:49 +0200
committerThomas Monjalon <thomas@monjalon.net>2019-07-04 22:43:26 +0200
commita70ed3884104df68d28105c8ebc1fb86ae1a6248 (patch)
tree59039c82dc7a6c49eeee39961b9f25557912fa79
parent60dea75f908942f386edd13d40f89234aa305680 (diff)
downloaddpdk-a70ed3884104df68d28105c8ebc1fb86ae1a6248.zip
dpdk-a70ed3884104df68d28105c8ebc1fb86ae1a6248.tar.gz
dpdk-a70ed3884104df68d28105c8ebc1fb86ae1a6248.tar.xz
devtools: pass custom options to checkpatch
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 <olivier.matz@6wind.com> Acked-by: Thomas Monjalon <thomas@monjalon.net> Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
-rwxr-xr-xdevtools/checkpatches.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/devtools/checkpatches.sh b/devtools/checkpatches.sh
index dbdf08e..560e6ce 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