]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
kwbimage: Make the Makefile pass in CONFIG_SYS_SPI_U_BOOT_OFFS
authorTom Rini <trini@ti.com>
Sat, 7 Feb 2015 12:03:00 +0000 (07:03 -0500)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 10:59:12 +0000 (12:59 +0200)
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 <trini@ti.com>
tools/Makefile
tools/kwbimage.c

index 578f8505d33ca9a9ea61466ff7542b6ce6f6a05c..51c1c86e4832d9060454fe62dd5befe09462abb5 100644 (file)
@@ -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_SOC_MX23)$(CONFIG_SOC_MX28)$(CONFIG_FIT_SIGNATURE),)
 HOSTLOADLIBES_mkimage += -lssl -lcrypto
index 28ce1e4f08f24230191e66009f2e07a41c55d40d..de5c80847e3f8d2ee4c8a9aeda595d0c3b1adb56 100644 (file)
@@ -16,7 +16,6 @@
 #include <image.h>
 #include <stdint.h>
 #include "kwbimage.h"
-#include <config.h>
 
 #define ALIGN_SUP(x, a) (((x) + (a - 1)) & ~(a - 1))