@@ -12,7 +12,6 @@
.deps/
.dirstamp
.libs/
-.scmversion
CUnit-Memory-Dump.xml
ID
Makefile
new file mode 100644
@@ -0,0 +1 @@
+1.11.0.1_monarch.git10.g7106d8b0
\ No newline at end of file
@@ -11,9 +11,8 @@ SUBDIRS = @platform_with_platform@ \
test \
helper/test \
doc \
- example \
- scripts
+ example
@DX_RULES@
-EXTRA_DIST = bootstrap $(DX_CONFIG) CHANGELOG config/README .scmversion
+EXTRA_DIST = bootstrap $(DX_CONFIG) CHANGELOG config/README
@@ -1,5 +1,23 @@
AC_PREREQ([2.5])
-AC_INIT([OpenDataPlane], m4_esyscmd_s(./scripts/git_hash.sh .), [lng-odp@lists.linaro.org])
+##########################################################################
+# Set correct API version
+##########################################################################
+m4_define([odpapi_generation_version], [1])
+m4_define([odpapi_major_version], [11])
+m4_define([odpapi_minor_version], [0])
+m4_define([odpapi_point_version], [1])
+m4_define([odpapi_version],
+ [odpapi_generation_version.odpapi_major_version.odpapi_minor_version.odpapi_point_version])
+AC_INIT([OpenDataPlane],[odpapi_version],[lng-odp@lists.linaro.org])
+
+ODP_VERSION_API_GENERATION=odpapi_generation_version
+AC_SUBST(ODP_VERSION_API_GENERATION)
+ODP_VERSION_API_MAJOR=odpapi_major_version
+AC_SUBST(ODP_VERSION_API_MAJOR)
+ODP_VERSION_API_MINOR=odpapi_minor_version
+AC_SUBST(ODP_VERSION_API_MINOR)
+AC_CONFIG_FILES([include/odp/api/spec/version.h])
+
AM_INIT_AUTOMAKE([1.9 tar-pax subdir-objects])
AC_CONFIG_SRCDIR([helper/config.h.in])
AM_CONFIG_HEADER([helper/config.h])
@@ -267,7 +285,6 @@ AC_CONFIG_FILES([Makefile
helper/test/Makefile
pkgconfig/libodp-linux.pc
pkgconfig/libodphelper-linux.pc
- scripts/Makefile
])
AC_SEARCH_LIBS([timer_create],[rt posix4])
new file mode 100644
@@ -0,0 +1 @@
+version.h
similarity index 93%
rename from include/odp/api/spec/version.h
rename to include/odp/api/spec/version.h.in
@@ -37,7 +37,7 @@ extern "C" {
* very significant changes to the API. APIs with different
* versions are likely not backward compatible.
*/
-#define ODP_VERSION_API_GENERATION 1
+#define ODP_VERSION_API_GENERATION @ODP_VERSION_API_GENERATION@
/**
* ODP API major version
@@ -45,7 +45,7 @@ extern "C" {
* Introduction of major new features or changes. APIs with different major
* versions are likely not backward compatible.
*/
-#define ODP_VERSION_API_MAJOR 11
+#define ODP_VERSION_API_MAJOR @ODP_VERSION_API_MAJOR@
/**
* ODP API minor version
@@ -54,7 +54,7 @@ extern "C" {
* to the API. For an API with common generation and major version, but with
* different minor numbers the two versions are backward compatible.
*/
-#define ODP_VERSION_API_MINOR 0
+#define ODP_VERSION_API_MINOR @ODP_VERSION_API_MINOR@
/**
* ODP API version string
@@ -10,8 +10,7 @@ lib_LTLIBRARIES = $(LIB)/libodp-linux.la
AM_LDFLAGS += -version-number '$(ODP_LIBSO_VERSION)'
-GIT_DESC = `$(top_srcdir)/scripts/get_impl_str.sh $(top_srcdir)`
-AM_CFLAGS += "-DGIT_HASH=$(GIT_DESC)"
+AM_CFLAGS += "-DGIT_HASH=$(VERSION)"
AM_CFLAGS += $(VISIBILITY_CFLAGS)
#The implementation will need to retain the deprecated implementation
deleted file mode 100644
@@ -1 +0,0 @@
-EXTRA_DIST = get_impl_str.sh git_hash.sh
deleted file mode 100755
@@ -1,11 +0,0 @@
-#!/bin/bash
-
-if [ -z ${1} ]; then
- echo "should be called with a path"
- exit
-fi
-ROOTDIR=${1}
-
-CUSTOM_STR=${CUSTOM_STR:-https://git.linaro.org/lng/odp.git}
-
-echo -n "'${CUSTOM_STR}' ($(cat ${ROOTDIR}/.scmversion))"