commit | af0ec0d4b36a95165746bdf8a848604008a80c9b | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Tue May 07 06:11:51 2013 +0000 |
committer | Tom Rini <trini@ti.com> | Tue May 14 15:37:25 2013 -0400 |
tree | f1ae2d4e34ed738a5cdac53fa3e21d3a5d998844 | |
parent | 3a4de332e9047816ffbb993421a4b2948ceb9794 [diff] |
image: Move timestamp #ifdefs to header file Rather than repeat the line #if defined(CONFIG_TIMESTAMP) || defined(CONFIG_CMD_DATE) || \ defined(USE_HOSTCC) everywhere, put this in a header file and #define IMAGE_ENABLE_TIMESTAMP to either 1 or 0. Then we can use a plain if() in most code and avoid the #ifdefs. The compiler's dead code elimination ensures that the result is the same. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Marek Vasut <marex@denx.de>