2 # SPDX-License-Identifier: BSD-3-Clause
3 # Copyright(c) 2017 Intel Corporation
7 # - DPDK_GETMAINTAINER_PATH
8 . $(dirname $(readlink -f $0))/load-devel-config
10 options="--no-git-fallback"
11 options="$options --no-rolestats"
15 usage: $(basename $0) <patch>
17 The DPDK_GETMAINTAINER_PATH variable should be set to the full path to
18 the get_maintainer.pl script located in Linux kernel sources. Example:
19 DPDK_GETMAINTAINER_PATH=~/linux/scripts/get_maintainer.pl
21 Also refer to devtools/load-devel-config to store your configuration.
25 # Requires DPDK_GETMAINTAINER_PATH devel config option set
26 if [ ! -f "$DPDK_GETMAINTAINER_PATH" ] ||
27 [ ! -x "$DPDK_GETMAINTAINER_PATH" ] ; then
30 echo 'Cannot execute DPDK_GETMAINTAINER_PATH' >&2
34 FILES="COPYING CREDITS Kbuild"
35 FOLDERS="Documentation arch include fs init ipc scripts"
37 # Kernel script checks for some files and folders to run
40 if [ ! -f $f ]; then touch $f; fi
44 if [ ! -d $d ]; then mkdir $d; fi
49 for f in $FILES; do if [ -f $f ]; then rm -f $f; fi; done
50 for d in $FOLDERS; do if [ -d $d ]; then rmdir $d; fi; done
53 # clean workaround on exit
54 trap fix_workaround EXIT
57 $DPDK_GETMAINTAINER_PATH $options $@
58 # fix_workaround called on exit by trap