summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorKonstantin Ananyev <konstantin.ananyev@intel.com>2018-05-10 11:23:04 +0100
committerThomas Monjalon <thomas@monjalon.net>2018-05-12 00:35:20 +0200
commit5dba93ae5f2dc38a13f373634bd06926716d150a (patch)
treefcc4ece6d0fb57119d88592f1eee9cbd49fe207d /mk
parent94972f35a02e91d60d68d1eea041496903124568 (diff)
downloaddpdk-5dba93ae5f2dc38a13f373634bd06926716d150a.zip
dpdk-5dba93ae5f2dc38a13f373634bd06926716d150a.tar.gz
dpdk-5dba93ae5f2dc38a13f373634bd06926716d150a.tar.xz
bpf: add ability to load eBPF program from ELF object file
Introduce rte_bpf_elf_load() function to provide ability to load eBPF program from ELF object file. It also adds dependency on libelf. Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com> Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
Diffstat (limited to 'mk')
-rw-r--r--mk/rte.app.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/mk/rte.app.mk b/mk/rte.app.mk
index 15a0121..438f99d 100644
--- a/mk/rte.app.mk
+++ b/mk/rte.app.mk
@@ -82,6 +82,9 @@ _LDLIBS-$(CONFIG_RTE_LIBRTE_POWER) += -lrte_power
_LDLIBS-$(CONFIG_RTE_LIBRTE_EFD) += -lrte_efd
_LDLIBS-$(CONFIG_RTE_LIBRTE_BPF) += -lrte_bpf
+ifeq ($(CONFIG_RTE_LIBRTE_BPF_ELF),y)
+_LDLIBS-$(CONFIG_RTE_LIBRTE_BPF) += -lelf
+endif
_LDLIBS-y += --whole-archive