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 4ed0379..acc553c 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>