summaryrefslogtreecommitdiff
path: root/mk/rte.sdkconfig.mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk/rte.sdkconfig.mk')
-rw-r--r--mk/rte.sdkconfig.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/mk/rte.sdkconfig.mk b/mk/rte.sdkconfig.mk
index 120f40b..af2b7a6 100644
--- a/mk/rte.sdkconfig.mk
+++ b/mk/rte.sdkconfig.mk
@@ -30,6 +30,12 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
+.PHONY: showversion
+showversion:
+ @sed -rn 's,^#define RTE_VER_[A-Z_]*[[:space:]]+([0-9]+).*,\1,p' \
+ $(RTE_SRCDIR)/lib/librte_eal/common/include/rte_version.h | \
+ tr '\n' '.' | sed -r 's,\.([0-9]+)\.$$,r\1\n,'
+
INSTALL_CONFIGS := $(filter-out %~,\
$(patsubst $(RTE_SRCDIR)/config/defconfig_%,%,\
$(wildcard $(RTE_SRCDIR)/config/defconfig_*)))