From: Daniel Borkmann <daniel@iogearbox.net>
Date: Mon, 7 Jan 2019 21:57:18 +0000 (+0100)
Subject: bpf, doc: add note for libbpf's stand-alone build
X-Git-Tag: v5.0-rc3~39^2~24^2^2
X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=80f21ff987eb377140d27102285f8dd1167b335c;p=users%2Fdwmw2%2Flinux.git

bpf, doc: add note for libbpf's stand-alone build

Given this came up couple of times, add a note to libbpf's readme
about the semi-automated mirror for a stand-alone build which is
officially managed by BPF folks. While at it, also explicitly state
the libbpf license in the readme file.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
---

diff --git a/tools/lib/bpf/README.rst b/tools/lib/bpf/README.rst
index 056f383107226..607aae40f4eda 100644
--- a/tools/lib/bpf/README.rst
+++ b/tools/lib/bpf/README.rst
@@ -132,6 +132,20 @@ For example, if current state of ``libbpf.map`` is:
 Format of version script and ways to handle ABI changes, including
 incompatible ones, described in details in [1].
 
+Stand-alone build
+=================
+
+Under https://github.com/libbpf/libbpf there is a (semi-)automated
+mirror of the mainline's version of libbpf for a stand-alone build.
+
+However, all changes to libbpf's code base must be upstreamed through
+the mainline kernel tree.
+
+License
+=======
+
+libbpf is dual-licensed under LGPL 2.1 and BSD 2-Clause.
+
 Links
 =====