From 5daa1c18b6a6877b0619a8dbaad0afd783f79e4f Mon Sep 17 00:00:00 2001
From: Mike Frysinger <vapier@gentoo.org>
Date: Thu, 21 Jan 2010 04:03:20 -0500
Subject: [PATCH] image.h: avoid command.h for host tools

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 | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/include/image.h b/include/image.h
index 4ed03791069..acc553cae9c 100644
--- a/include/image.h
+++ b/include/image.h
@@ -46,11 +46,10 @@
 
 #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>
-- 
GitLab