Skip to content
Snippets Groups Projects
Commit 859e92b7 authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

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: default avatarSimon Glass <sjg@chromium.org>
Acked-by: default avatarMarek Vasut <marex@denx.de>
parent 88f95bba
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment