diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2017-07-25 14:17:11 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-07-26 16:42:09 -0400 |
commit | eb54e522a000b8e625e03282fd434fb725a530c0 (patch) | |
tree | 3e9c87ff1747e60ce5bdc65ddf97cbdfa1cdb7e6 /tools/lib/bpf | |
parent | 9877e1058aaf166b578ed44c8e0fc78fe6e67152 (diff) |
bpf: install libbpf headers on 'make install'
Add a new target to install the bpf.h header to $(prefix)/include/bpf/
directory. This is necessary to build standalone applications using
libbpf, without the need to clone the kernel sources and point to them.
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/lib/bpf')
-rw-r--r-- | tools/lib/bpf/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/lib/bpf/Makefile b/tools/lib/bpf/Makefile index 1f5300e56b44..445289555487 100644 --- a/tools/lib/bpf/Makefile +++ b/tools/lib/bpf/Makefile | |||
@@ -189,6 +189,10 @@ install_lib: all_cmd | |||
189 | $(call QUIET_INSTALL, $(LIB_FILE)) \ | 189 | $(call QUIET_INSTALL, $(LIB_FILE)) \ |
190 | $(call do_install,$(LIB_FILE),$(libdir_SQ)) | 190 | $(call do_install,$(LIB_FILE),$(libdir_SQ)) |
191 | 191 | ||
192 | install_headers: | ||
193 | $(call QUIET_INSTALL, headers) \ | ||
194 | $(call do_install,bpf.h,$(prefix)/include/bpf,644) | ||
195 | |||
192 | install: install_lib | 196 | install: install_lib |
193 | 197 | ||
194 | ### Cleaning rules | 198 | ### Cleaning rules |