mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:24:45 +01:00
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>
This commit is contained in:
parent
348d3c587a
commit
06a7415cf2
1 changed files with 2 additions and 0 deletions
|
|
@ -133,6 +133,7 @@ $(MAKE_DIRS):
|
|||
$(call msg,MKDIR,,$@)
|
||||
$(Q)mkdir -p $@
|
||||
|
||||
ifneq ($(CROSS_COMPILE),)
|
||||
$(BPFOBJ): $(wildcard $(BPFDIR)/*.[ch] $(BPFDIR)/Makefile) \
|
||||
$(APIDIR)/linux/bpf.h \
|
||||
| $(OBJ_DIR)/libbpf
|
||||
|
|
@ -141,6 +142,7 @@ $(BPFOBJ): $(wildcard $(BPFDIR)/*.[ch] $(BPFDIR)/Makefile) \
|
|||
EXTRA_CFLAGS='-g -O0 -fPIC' \
|
||||
LDFLAGS="$(LDFLAGS)" \
|
||||
DESTDIR=$(OUTPUT_DIR) prefix= all install_headers
|
||||
endif
|
||||
|
||||
$(HOST_BPFOBJ): $(wildcard $(BPFDIR)/*.[ch] $(BPFDIR)/Makefile) \
|
||||
$(APIDIR)/linux/bpf.h \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue