Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sched_ext: tools: Removing duplicate targets during non-cross compilation

When cross-compilation is not used, BPFOBJ and HOST_BPFOBJ are identical
files, libbpf.a, and duplicate libbpf.a files should be removed.

Signed-off-by: Rong Tao <rongtao@cestc.cn>
Signed-off-by: Tejun Heo <tj@kernel.org>

authored by

Rong Tao and committed by
Tejun Heo
06a7415c 348d3c58

+2
+2
tools/sched_ext/Makefile
··· 133 133 $(call msg,MKDIR,,$@) 134 134 $(Q)mkdir -p $@ 135 135 136 + ifneq ($(CROSS_COMPILE),) 136 137 $(BPFOBJ): $(wildcard $(BPFDIR)/*.[ch] $(BPFDIR)/Makefile) \ 137 138 $(APIDIR)/linux/bpf.h \ 138 139 | $(OBJ_DIR)/libbpf ··· 142 141 EXTRA_CFLAGS='-g -O0 -fPIC' \ 143 142 LDFLAGS="$(LDFLAGS)" \ 144 143 DESTDIR=$(OUTPUT_DIR) prefix= all install_headers 144 + endif 145 145 146 146 $(HOST_BPFOBJ): $(wildcard $(BPFDIR)/*.[ch] $(BPFDIR)/Makefile) \ 147 147 $(APIDIR)/linux/bpf.h \