image.h: avoid command.h for host tools
authorMike Frysinger <vapier@gentoo.org>
Thu, 21 Jan 2010 09:03:20 +0000 (04:03 -0500)
committerWolfgang Denk <wd@denx.de>
Thu, 21 Jan 2010 21:58:49 +0000 (22:58 +0100)
The u-boot command structures don't get used with host systems, so don't
bother including it when building host code.  This avoids an implicit need
on config.h in the process.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
include/image.h

index 4ed03791069b72dcb69a833485861074848c4dab..acc553cae9cfa34d7376716b89f1ff808f96fa5d 100644 (file)
 
 #include <lmb.h>
 #include <asm/u-boot.h>
+#include <command.h>
 
 #endif /* USE_HOSTCC */
 
-#include <command.h>
-
 #if defined(CONFIG_FIT)
 #include <fdt.h>
 #include <libfdt.h>