blob: d6c7cf2ae67f63d09b147e206c1338800d148b12 [file] [log] [blame]
wdenk5b1d7132002-11-03 00:07:02 +00001/*
Wolfgang Denk4d1d9a32006-02-21 17:33:04 +01002 * (C) Copyright 2000-2006
wdenk5b1d7132002-11-03 00:07:02 +00003 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
wdenk5b1d7132002-11-03 00:07:02 +00006 */
7
8#ifndef __VERSION_H__
9#define __VERSION_H__
10
Andreas Bießmann61d01952011-07-18 20:24:04 +020011#include <timestamp.h>
12
Wolfgang Denk9046f3f2008-05-13 23:15:52 +020013#ifndef DO_DEPS_ONLY
Simon Glass50402412011-10-10 08:55:19 +000014#include "generated/version_autogenerated.h"
Wolfgang Denk9046f3f2008-05-13 23:15:52 +020015#endif
wdenk5b1d7132002-11-03 00:07:02 +000016
Andreas Bießmann61d01952011-07-18 20:24:04 +020017#ifndef CONFIG_IDENT_STRING
18#define CONFIG_IDENT_STRING ""
19#endif
20
21#define U_BOOT_VERSION_STRING U_BOOT_VERSION " (" U_BOOT_DATE " - " \
22 U_BOOT_TIME ")" CONFIG_IDENT_STRING
23
Wolfgang Denkb3701192011-07-28 22:14:26 +020024#ifndef __ASSEMBLY__
Andreas Bießmann61d01952011-07-18 20:24:04 +020025extern const char version_string[];
Wolfgang Denkb3701192011-07-28 22:14:26 +020026#endif /* __ASSEMBLY__ */
wdenk5b1d7132002-11-03 00:07:02 +000027#endif /* __VERSION_H__ */