@@ -14,4 +14,8 @@ AM_LDFLAGS += -version-number '$(ODP_LIBSO_VERSION)'
GIT_DESC !=$(top_srcdir)/scripts/git_hash.sh
AM_CFLAGS += "-DGIT_HASH=$(GIT_DESC)"
+
+TIMESTAMP =`git log -1 --pretty="%cD" $(top_srcdir) | tr -d "\n"`
+AM_CFLAGS += "-DIMPL_TIMESTAMP=\"$(TIMESTAMP)\""
+
AM_CFLAGS += -DPLATFORM=${with_platform}
@@ -30,7 +30,7 @@ extern "C" {
ODP_VERSION_TO_STR(ODP_VERSION_API_GENERATION) "." \
ODP_VERSION_TO_STR(ODP_VERSION_API_MAJOR) "." \
ODP_VERSION_TO_STR(ODP_VERSION_API_MINOR) ") " \
- __DATE__ " " __TIME__ " " \
+ IMPL_TIMESTAMP \
ODP_VERSION_TO_STR(GIT_HASH)
const char *odp_version_impl_str(void)
take date as date of the latest commit in ./platform/linux-generic, not as current compilation date. Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org> --- platform/Makefile.inc | 4 ++++ platform/linux-generic/odp_impl.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-)