Lines Matching +full:skip +full:- +full:config
2 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
5 -h|--help)
6 echo -e "$0 [-j <n>]"
7 echo -e "\tTest the different ways of building bpftool."
8 echo -e ""
9 echo -e "\tOptions:"
10 echo -e "\t\t-j <n>:\tPass -j flag to 'make'."
19 SCRIPT_REL_PATH=$(realpath --relative-to=$PWD $0)
23 if [ ! -e tools/bpf/bpftool/Makefile ]; then
24 echo -e "skip: bpftool files not found!\n"
31 # If one build fails, continue but return non-0 on exit.
33 if [ -d "$TMPDIR" ] ; then
34 rm -rf -- $TMPDIR
43 echo -n "binary: "
44 # Returns non-null if file is found (and "false" is run)
45 find $dir -type f -executable -name bpftool -print -exec false {} + && \
50 echo -e "\$PWD: $PWD"
51 echo -e "command: make -s $* >/dev/null"
52 make $J -s $* >/dev/null
53 if [ $? -ne 0 ] ; then
56 if [ $# -ge 1 ] ; then
57 check ${@: -1}
62 if [ $# -ge 1 ] ; then
63 cd ${@: -1}
65 make -s clean
73 TMPDIR=$(mktemp -d)
74 if [ $# -ge 2 ] ; then
75 ARGS=${@:1:(($# - 1))}
77 echo -e "\$PWD: $PWD"
78 echo -e "command: make -s $ARGS ${@: -1}=$TMPDIR/ >/dev/null"
79 make $J -s $ARGS ${@: -1}=$TMPDIR/ >/dev/null
80 if [ $? -ne 0 ] ; then
84 rm -rf -- $TMPDIR
89 echo -e "... through kbuild\n"
91 if [ -f ".config" ] ; then
96 make -C tools/bpf/runqslower OUTPUT=${KDIR_ROOT_DIR}/tools/bpf/runqslower/ clean
102 echo -e "skip: make tools/bpf OUTPUT=<dir> (not supported)\n"
106 echo -e "skip: make tools/bpf (no .config found)\n"
107 echo -e "skip: make tools/bpf OUTPUT=<dir> (not supported)\n"
108 echo -e "skip: make tools/bpf O=<dir> (no .config found)\n"
111 echo -e "... from kernel source tree\n"
113 make_and_clean -C tools/bpf/bpftool
115 make_with_tmpdir -C tools/bpf/bpftool OUTPUT
117 make_with_tmpdir -C tools/bpf/bpftool O
119 echo -e "... from tools/\n"
140 echo -e "skip: make bpf OUTPUT=<dir> (not supported)\n"
144 echo -e "... from bpftool's dir\n"