devtools: pass custom options to checkpatch
authorOlivier Matz <olivier.matz@6wind.com>
Thu, 23 May 2019 07:45:49 +0000 (09:45 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 4 Jul 2019 20:43:26 +0000 (22:43 +0200)
commita70ed3884104df68d28105c8ebc1fb86ae1a6248
tree59039c82dc7a6c49eeee39961b9f25557912fa79
parent60dea75f908942f386edd13d40f89234aa305680
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>
devtools/checkpatches.sh