From: Tom Rini Date: Sat, 7 Feb 2015 12:03:00 +0000 (-0500) Subject: kwbimage: Make the Makefile pass in CONFIG_SYS_SPI_U_BOOT_OFFS X-Git-Tag: v2015.04-rc2~38 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e35c6c797888b9b4361a8cfdc3a4aecacfece74c;p=oweals%2Fu-boot.git kwbimage: Make the Makefile pass in CONFIG_SYS_SPI_U_BOOT_OFFS We can't use config.h directly as some platforms include headers that aren't safe to use in normal Linux userland. Signed-off-by: Tom Rini --- diff --git a/tools/Makefile b/tools/Makefile index 6e1ce79f2f..e4b23eb5b8 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -115,6 +115,10 @@ ifdef CONFIG_FIT_SIGNATURE HOST_EXTRACFLAGS += -DCONFIG_FIT_SIGNATURE endif +ifdef CONFIG_SYS_SPI_U_BOOT_OFFS +HOSTCFLAGS_kwbimage.o += -DCONFIG_SYS_SPI_U_BOOT_OFFS=$(CONFIG_SYS_SPI_U_BOOT_OFFS) +endif + # MXSImage needs LibSSL ifneq ($(CONFIG_MX23)$(CONFIG_MX28)$(CONFIG_FIT_SIGNATURE),) HOSTLOADLIBES_mkimage += -lssl -lcrypto diff --git a/tools/kwbimage.c b/tools/kwbimage.c index 28ce1e4f08..de5c80847e 100644 --- a/tools/kwbimage.c +++ b/tools/kwbimage.c @@ -16,7 +16,6 @@ #include #include #include "kwbimage.h" -#include #define ALIGN_SUP(x, a) (((x) + (a - 1)) & ~(a - 1))