brintos

brintos / linux-shallow public Read only

0
0
Text · 638 B · 679cf96 Raw
21 lines · bash
1#!/bin/bash2# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)3set -e4 5# Assume script is located under tools/testing/selftests/bpf/. We want to start6# build attempts from the top of kernel repository.7SCRIPT_REL_PATH=$(realpath $0)8SCRIPT_REL_DIR=$(dirname $SCRIPT_REL_PATH)9KDIR_ROOT_DIR=$(realpath $SCRIPT_REL_DIR/../../../../)10SCRIPT_REL_DIR=$(dirname $(realpath --relative-to=$KDIR_ROOT_DIR $SCRIPT_REL_PATH))11cd $KDIR_ROOT_DIR12 13if [ ! -e $PWD/$SCRIPT_REL_DIR/Makefile ]; then14	echo -e "skip:    bpftool files not found!\n"15	exit 4 # KSFT_SKIP=416fi17 18for tgt in docs docs-clean; do19	make -s -C $PWD/$SCRIPT_REL_DIR $tgt;20done21