linux-next: manual merge of the bpf-next tree with the net tree

From: Stephen Rothwell
Date: Tue Mar 26 2019 - 18:14:48 EST

Hi all,

Today's linux-next merge of the bpf-next tree got a conflict in:


between commit:

1d382264d911 ("bpf, libbpf: fix version info and add it to shared object")

from the net tree and commit:

60e4786e229d ("tools/bpf: generate pkg-config file for libbpf")

from the bpf-next tree.

I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging. You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.

Stephen Rothwell

diff --cc tools/lib/bpf/Makefile
index 5bf8e52c41fc,96e9571b0a2e..000000000000
--- a/tools/lib/bpf/Makefile
+++ b/tools/lib/bpf/Makefile
@@@ -79,6 -79,9 +79,8 @@@ export prefix libdir src ob
libdir_SQ = $(subst ','\'',$(libdir))
libdir_relative_SQ = $(subst ','\'',$(libdir_relative))

-LIB_FILE = libbpf.a
+ PC_FILE = libbpf.pc
@@@ -129,18 -129,17 +131,19 @@@ all
export srctree OUTPUT CC LD CFLAGS V
include $(srctree)/tools/build/Makefile.include

-BPF_IN := $(OUTPUT)libbpf-in.o
-LIB_FILE := $(addprefix $(OUTPUT),$(LIB_FILE))
-PC_FILE := $(addprefix $(OUTPUT),$(PC_FILE))
+BPF_IN := $(OUTPUT)libbpf-in.o
+LIB_TARGET := $(addprefix $(OUTPUT),$(LIB_TARGET))
+LIB_FILE := $(addprefix $(OUTPUT),$(LIB_FILE))
++PC_FILE := $(addprefix $(OUTPUT),$(PC_FILE))

GLOBAL_SYM_COUNT = $(shell readelf -s --wide $(BPF_IN) | \
awk '/GLOBAL/ && /DEFAULT/ && !/UND/ {s++} END{print s}')
VERSIONED_SYM_COUNT = $(shell readelf -s --wide $(OUTPUT) | \
grep -Eo '[^ ]+@LIBBPF_' | cut -d@ -f1 | sort -u | wc -l)


CXX_TEST_TARGET = $(OUTPUT)test_libbpf

@@@ -233,7 -232,7 +247,7 @@@ config-clean

$(call QUIET_CLEAN, libbpf) $(RM) $(TARGETS) $(CXX_TEST_TARGET) \
- *.o *~ *.a *.so *.so.$(VERSION) .*.d .*.cmd LIBBPF-CFLAGS
- *.o *~ *.a *.so .*.d .*.cmd *.pc LIBBPF-CFLAGS
++ *.o *~ *.a *.so *.so.$(VERSION) .*.d .*.cmd *.pc LIBBPF-CFLAGS
$(call QUIET_CLEAN, core-gen) $(RM) $(OUTPUT)FEATURE-DUMP.libbpf

Attachment: pgpaKu97l1zR5.pgp
Description: OpenPGP digital signature