]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/main.c
unify version_string
[karo-tx-uboot.git] / common / main.c
index 1f221423a202866cd98eabb6b9763604a0490f5c..3324d9d6e433a9b91efee84eea73e4f5f2d49cc6 100644 (file)
@@ -30,6 +30,7 @@
 #include <common.h>
 #include <watchdog.h>
 #include <command.h>
+#include <version.h>
 #ifdef CONFIG_MODEM_SUPPORT
 #include <malloc.h>            /* for free() prototype */
 #endif
@@ -307,8 +308,6 @@ void main_loop (void)
 
 #ifdef CONFIG_VERSION_VARIABLE
        {
-               extern char version_string[];
-
                setenv ("ver", version_string);  /* set version variable */
        }
 #endif /* CONFIG_VERSION_VARIABLE */