]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
tools/resolve_btfids: Set srctree variable unconditionally
authorJiri Olsa <jolsa@kernel.org>
Fri, 5 Feb 2021 12:40:19 +0000 (13:40 +0100)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 7 May 2021 07:53:15 +0000 (09:53 +0200)
commit8a3f5e1507ffb678430ba7c7a29796add2cb6654
tree3caf23a89f7bee2ce9eecd59968a27f0f99a0fdd
parentbf05edda065dfa76cdff47531849de7827976a35
tools/resolve_btfids: Set srctree variable unconditionally

BugLink: https://bugs.launchpad.net/bugs/1923415
[ Upstream commit 7962cb9b640af98ccb577f46c8b894319e6c5c20 ]

We want this clean to be called from tree's root Makefile,
which defines same srctree variable and that will screw
the make setup.

We actually do not use srctree being passed from outside,
so we can solve this by setting current srctree value
directly.

Also changing the way how srctree is initialized as suggested
by Andrri.

Also root Makefile does not define the implicit RM variable,
so adding RM initialization.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210205124020.683286-4-jolsa@kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
tools/bpf/resolve_btfids/Makefile