b07c376464
This script can be used to call checkpatch.pl from Linux with some custom DPDK options. The path to the original Linux script must be set in an environment variable. A script is added to load any configuration variables required by development tools from a file .develconfig, or ~/.config/dpdk/devel.config or /etc/dpdk/devel.config. Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com> v2: - do not ignore COMPLEX_MACRO - use option --no-tree to avoid silent failure - add -q and -v options
15 lines
456 B
Bash
Executable File
15 lines
456 B
Bash
Executable File
#! /bin/echo must be loaded with .
|
|
|
|
# Load DPDK devel config and allow override
|
|
# from system file
|
|
test ! -r /etc/dpdk/devel.config ||
|
|
. /etc/dpdk/devel.config
|
|
# from user file
|
|
test ! -r ~/.config/dpdk/devel.config ||
|
|
. ~/.config/dpdk/devel.config
|
|
# from local file
|
|
test ! -r $(dirname $(readlink -m $0))/../.develconfig ||
|
|
. $(dirname $(readlink -m $0))/../.develconfig
|
|
|
|
# The config files must export variables in the shell style
|