]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - Makefile
kbuild: Do not clean resolve_btfids if the output does not exist
authorJiri Olsa <jolsa@kernel.org>
Thu, 11 Feb 2021 12:40:04 +0000 (13:40 +0100)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 7 May 2021 07:53:15 +0000 (09:53 +0200)
commit8bf3b26f5b1e2ceea5ad256b45dc5a2b8b483f1d
treecb44fc75e6b6bf552b9ce23ae9feb2384f611979
parent8d806a8fe285e9aacecf5d9fff493f1507e1e071
kbuild: Do not clean resolve_btfids if the output does not exist

BugLink: https://bugs.launchpad.net/bugs/1923415
[ Upstream commit 0e1aa629f1ce9e8cb89e0cefb9e3bfb3dfa94821 ]

Nathan reported issue with cleaning empty build directory:

  $ make -s O=build distclean
  ../../scripts/Makefile.include:4: *** \
  O=/ho...build/tools/bpf/resolve_btfids does not exist.  Stop.

The problem that tools scripts require existing output
directory, otherwise it fails.

Adding check around the resolve_btfids clean target to
ensure the output directory is in place.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Tested-by: Nathan Chancellor <nathan@kernel.org>
Link: https://lore.kernel.org/bpf/20210211124004.1144344-1-jolsa@kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Makefile