Skip to contentSkip to conversation

samples/bpf: Drop unnecessary build targets.

PATCH Applied Joe Stringer 2 participants 2 messages Dec 9, 2016 – Dec 12, 2016

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 samples/bpf: Drop unnecessary build targets.

Commit f72179ef11db ("samples/bpf: Switch over to libbpf") added these two makefile changes that were unnecessary for switching samples to use libbpf. The extra make is already handled by the build dependency, and libbpf target doesn't build because it lacks main(). Remove these.

---
 samples/bpf/Makefile   | 1 -
 tools/lib/bpf/Makefile | 2 --
 2 files changed, 3 deletions(-)
samples/bpf/Makefile +0 -1
index 9ffa6a2c061d..60ffc8115b67 100644
@@ -127,7 +127,6 @@ CLANG ?= clang
 
 # Trick to allow make to be run from this directory
 all:
-	$(MAKE) -C ../../ tools/lib/bpf/
 	$(MAKE) -C ../../ $$PWD/
 
 clean:
tools/lib/bpf/Makefile +0 -2
index 616bd55f3be8..62d89d50fcbd 100644
@@ -149,8 +149,6 @@ CMD_TARGETS = $(LIB_FILE)
 
 TARGETS = $(CMD_TARGETS)
 
-libbpf: all
-
 all: fixdep $(VERSION_FILES) all_cmd
 
 all_cmd: $(CMD_TARGETS)
Signature · 1 line
2.10.2
#1 lore raw

Em Fri, Dec 09, 2016 at 09:51:09AM -0800, Joe Stringer escreveu:

Quoted 7 lines

Commit f72179ef11db ("samples/bpf: Switch over to libbpf") added these two makefile changes that were unnecessary for switching samples to use libbpf. The extra make is already handled by the build dependency, and libbpf target doesn't build because it lacks main(). Remove these.

Thanks, applied.

- Arnaldo