On Tue, Feb 4, 2020 at 9:54 AM Song Liu <songliubraving@xxxxxx> wrote: > > Add missing dependency of $(BPFOBJ) to $(LIBBPF_SRC), so that running make > in runqslower/ will rebuild libbpf.a when there is change in libbpf/. > > Fixes: 9c01546d26d2 ("tools/bpf: Add runqslower tool to tools/bpf") > Cc: Andrii Nakryiko <andriin@xxxxxx> > Signed-off-by: Song Liu <songliubraving@xxxxxx> > --- > tools/bpf/runqslower/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/bpf/runqslower/Makefile b/tools/bpf/runqslower/Makefile > index 87eae5be9bcd..ea89fcb6d68f 100644 > --- a/tools/bpf/runqslower/Makefile > +++ b/tools/bpf/runqslower/Makefile > @@ -75,7 +75,7 @@ $(OUTPUT)/vmlinux.h: $(VMLINUX_BTF_PATH) | $(OUTPUT) $(BPFTOOL) > fi > $(Q)$(BPFTOOL) btf dump file $(VMLINUX_BTF_PATH) format c > $@ > > -$(BPFOBJ): | $(OUTPUT) > +$(BPFOBJ): $(LIBBPF_SRC) | $(OUTPUT) Let's instead update this rule to do what selftests/bpf do (watch *.c, *.h and Makefile, and use all + install_headers to build libbpf and generate bpf_helper_defs.h? Please also specify (in subject) which tree (bpf or bpf-next) you are targeting. > $(Q)$(MAKE) $(submake_extras) -C $(LIBBPF_SRC) \ > OUTPUT=$(abspath $(dir $@))/ $(abspath $@) > > -- > 2.17.1 >