tools: bpf: Fix error in 'make -C tools/ bpf_install'
PATCH 1/1 tools: bpf: Fix error in 'make -C tools/ bpf_install'
make[2]: *** No rule to make target 'install'. Stop. make[1]: *** [Makefile:122: runqslower_install] Error 2
make: *** [Makefile:116: bpf_install] Error 2
There is no rule for target 'install' in tools/bpf/runqslower/Makefile, and there is no need to install it, so just remove 'runqslower_install'.
--- tools/bpf/Makefile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
tools/bpf/Makefile +2 -5
@@ -97,7 +97,7 @@ clean: bpftool_clean runqslower_clean resolve_btfids_clean $(Q)$(RM) -- $(OUTPUT)FEATURE-DUMP.bpf $(Q)$(RM) -r -- $(OUTPUT)feature -install: $(PROGS) bpftool_install runqslower_install +install: $(PROGS) bpftool_install $(call QUIET_INSTALL, bpf_jit_disasm) $(Q)$(INSTALL) -m 0755 -d $(DESTDIR)$(prefix)/bin $(Q)$(INSTALL) $(OUTPUT)bpf_jit_disasm $(DESTDIR)$(prefix)/bin/bpf_jit_disasm
@@ -118,9 +118,6 @@ bpftool_clean: runqslower: $(call descend,runqslower) -runqslower_install: - $(call descend,runqslower,install) - runqslower_clean: $(call descend,runqslower,clean)
@@ -131,5 +128,5 @@ resolve_btfids_clean: $(call descend,resolve_btfids,clean) .PHONY: all install clean bpftool bpftool_install bpftool_clean \ - runqslower runqslower_install runqslower_clean \ + runqslower runqslower_clean \ resolve_btfids resolve_btfids_clean
Signature · 1 line
2.25.1
Andrii Nakryiko
AppliedQuoted 11 lines · Wei Li
make[2]: *** No rule to make target 'install'. Stop. make[1]: *** [Makefile:122:
runqslower_install] Error 2
make: *** [Makefile:116:bpf_install] Error 2There is no rule for target 'install' in
tools/bpf/runqslower/Makefile, and there is no need to install it, so just remove 'runqslower_install'.Fixes 9c01546d26d2 ("tools/bpf: Add runqslower tool to tools/bpf")Signed-off-by Wei Li <[email protected]>---
Applied to bpf tree, thanks.
Technically runqslower could be installed, but it's better to leave that to libbpf-tools ([0]), which distributes runqslower along other BPF-based tools.
[0] https://github.com/iovisor/bcc/tree/master/libbpf-tools
Quoted 36 lines
tools/bpf/Makefile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)tools/bpf/Makefile +2
-6@@ -97,7 +97,7 @@ clean: bpftool_clean runqslower_clean resolve_btfids_clean $(Q)$(RM) -- $(OUTPUT)FEATURE-DUMP.bpf $(Q)$(RM) -r -- $(OUTPUT)feature -install: $(PROGS) bpftool_install runqslower_install +install: $(PROGS) bpftool_install $(call QUIET_INSTALL, bpf_jit_disasm) $(Q)$(INSTALL) -m 0755 -d $(DESTDIR)$(prefix)/bin $(Q)$(INSTALL) $(OUTPUT)bpf_jit_disasm $(DESTDIR)$(prefix)/bin/bpf_jit_disasm@@ -118,9 +118,6 @@ bpftool_clean: runqslower: $(call descend,runqslower) -runqslower_install: - $(call descend,runqslower,install) - runqslower_clean: $(call descend,runqslower,clean)@@ -131,5 +128,5 @@ resolve_btfids_clean: $(call descend,resolve_btfids,clean) .PHONY: all install clean bpftool bpftool_install bpftool_clean \ - runqslower runqslower_install runqslower_clean \ + runqslower runqslower_clean \ resolve_btfids resolve_btfids_clean --2.25.1
This patch was applied to bpf/bpf.git (refs/heads/master):
Hello:
This patch was applied to bpf/bpf.git (refs/heads/master):
Quoted 8 lines · On Mon, 28 Jun 2021 11:04:09 +0800 you wrote:
make[2]: *** No rule to make target 'install'. Stop. make[1]: *** [Makefile:122:
runqslower_install] Error 2
make: *** [Makefile:116:bpf_install] Error 2There is no rule for target 'install' in
tools/bpf/runqslower/Makefile, and there is no need to install it, so just remove 'runqslower_install'.[...]
Here is the summary with links:
- tools: bpf: Fix error in 'make -C tools/ bpf_install'
https://git.kernel.org/bpf/bpf/c/1d719254c139
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html