summaryrefslogtreecommitdiffstats
path: root/lib/libxdp/libxdp.mk
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libxdp/libxdp.mk')
-rw-r--r--lib/libxdp/libxdp.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libxdp/libxdp.mk b/lib/libxdp/libxdp.mk
new file mode 100644
index 0000000..18b60e5
--- /dev/null
+++ b/lib/libxdp/libxdp.mk
@@ -0,0 +1,3 @@
+LIBXDP_VERSION := $(shell sed -ne "/LIBXDP_[0-9\.]\+ {/ {s/LIBXDP_\([0-9\.]\+\) {/\1/;p}" $(LIB_DIR)/libxdp/libxdp.map | tail -n 1)
+LIBXDP_MAJOR_VERSION := $(shell echo $(LIBXDP_VERSION) | sed 's/\..*//')
+