[Concept,05/14] ulib: Return the full version with ulib_get_version()

Message ID 20250911214425.3687188-6-sjg@u-boot.org
State New
Headers
Series ulib: Add support for Rust main programs |

Commit Message

Simon Glass Sept. 11, 2025, 9:44 p.m. UTC
  From: Simon Glass <sjg@chromium.org>

Provide the entire version string so it is possible to see the date of
the build.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 lib/ulib/ulib.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
  

Patch

diff --git a/lib/ulib/ulib.c b/lib/ulib/ulib.c
index 385faa60844..ccaa655f398 100644
--- a/lib/ulib/ulib.c
+++ b/lib/ulib/ulib.c
@@ -9,6 +9,7 @@ 
 #include <string.h>
 #include <version.h>
 #include <asm/global_data.h>
+#include <version_string.h>
 #include <u-boot-lib.h>
 
 /* Static storage for global data when using simplified API */
@@ -32,5 +33,5 @@  void ulib_uninit(void)
 
 const char *ulib_get_version(void)
 {
-	return PLAIN_VERSION;
+	return version_string;
 }