aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/lib/bpf
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2024-03-06 19:42:22 +0900
committerMasahiro Yamada <masahiroy@kernel.org>2024-03-10 17:27:17 +0900
commite2bad142bb3de836c5fbb3dff704578f5a73d8e6 (patch)
tree11acf98cd7d546f46ccfd22cb33a96713f5456b8 /tools/lib/bpf
parentkbuild: Move -Wenum-{compare-conditional,enum-conversion} into W=1 (diff)
downloadwireguard-linux-e2bad142bb3de836c5fbb3dff704578f5a73d8e6.tar.xz
wireguard-linux-e2bad142bb3de836c5fbb3dff704578f5a73d8e6.zip
kbuild: unexport abs_srctree and abs_objtree
Commit 25b146c5b8ce ("kbuild: allow Kbuild to start from any directory") exported abs_srctree and abs_objtree to avoid recomputation after the sub-make. However, this approach turned out to be fragile. Commit 5fa94ceb793e ("kbuild: set correct abs_srctree and abs_objtree for package builds") moved them above "ifneq ($(sub_make_done),1)", eliminating the need for exporting them. These are only needed in the top Makefile. If an absolute path is required in sub-directories, you can use $(abspath ) or $(realpath ) as needed. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
Diffstat (limited to 'tools/lib/bpf')
-rw-r--r--tools/lib/bpf/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lib/bpf/Makefile b/tools/lib/bpf/Makefile
index 4be7144e4803..2cf892774346 100644
--- a/tools/lib/bpf/Makefile
+++ b/tools/lib/bpf/Makefile
@@ -2,7 +2,7 @@
# Most of this file is copied from tools/lib/traceevent/Makefile
RM ?= rm
-srctree = $(abs_srctree)
+srctree := $(realpath $(srctree))
VERSION_SCRIPT := libbpf.map
LIBBPF_VERSION := $(shell \