mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-24 09:13:20 -05:00
tools: runqslower: Build and use lightweight bootstrap version of bpftool
tools/runqslower use bpftool for vmlinux.h, skeleton, and static linking only. So we can use lightweight bootstrap version of bpftool to handle these, and it will be faster. Suggested-by: Andrii Nakryiko <andrii@kernel.org> Signed-off-by: Pu Lehui <pulehui@huawei.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20220714024612.944071-3-pulehui@huawei.com
This commit is contained in:
parent
2e4966288c
commit
3a2a58c447
1 changed files with 3 additions and 4 deletions
|
@ -4,7 +4,7 @@ include ../../scripts/Makefile.include
|
||||||
OUTPUT ?= $(abspath .output)/
|
OUTPUT ?= $(abspath .output)/
|
||||||
|
|
||||||
BPFTOOL_OUTPUT := $(OUTPUT)bpftool/
|
BPFTOOL_OUTPUT := $(OUTPUT)bpftool/
|
||||||
DEFAULT_BPFTOOL := $(BPFTOOL_OUTPUT)bpftool
|
DEFAULT_BPFTOOL := $(BPFTOOL_OUTPUT)bootstrap/bpftool
|
||||||
BPFTOOL ?= $(DEFAULT_BPFTOOL)
|
BPFTOOL ?= $(DEFAULT_BPFTOOL)
|
||||||
LIBBPF_SRC := $(abspath ../../lib/bpf)
|
LIBBPF_SRC := $(abspath ../../lib/bpf)
|
||||||
BPFOBJ_OUTPUT := $(OUTPUT)libbpf/
|
BPFOBJ_OUTPUT := $(OUTPUT)libbpf/
|
||||||
|
@ -86,6 +86,5 @@ $(BPFOBJ): $(wildcard $(LIBBPF_SRC)/*.[ch] $(LIBBPF_SRC)/Makefile) | $(BPFOBJ_OU
|
||||||
$(Q)$(MAKE) $(submake_extras) -C $(LIBBPF_SRC) OUTPUT=$(BPFOBJ_OUTPUT) \
|
$(Q)$(MAKE) $(submake_extras) -C $(LIBBPF_SRC) OUTPUT=$(BPFOBJ_OUTPUT) \
|
||||||
DESTDIR=$(BPFOBJ_OUTPUT) prefix= $(abspath $@) install_headers
|
DESTDIR=$(BPFOBJ_OUTPUT) prefix= $(abspath $@) install_headers
|
||||||
|
|
||||||
$(DEFAULT_BPFTOOL): $(BPFOBJ) | $(BPFTOOL_OUTPUT)
|
$(DEFAULT_BPFTOOL): | $(BPFTOOL_OUTPUT)
|
||||||
$(Q)$(MAKE) $(submake_extras) -C ../bpftool OUTPUT=$(BPFTOOL_OUTPUT) \
|
$(Q)$(MAKE) $(submake_extras) -C ../bpftool OUTPUT=$(BPFTOOL_OUTPUT) bootstrap
|
||||||
ARCH= CROSS_COMPILE= CC=$(HOSTCC) LD=$(HOSTLD)
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue