summaryrefslogtreecommitdiff
path: root/tools/Makefile
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2015-02-07 07:03:00 -0500
committerTom Rini <trini@ti.com>2015-02-07 07:03:00 -0500
commite35c6c797888b9b4361a8cfdc3a4aecacfece74c (patch)
treef49aba7abe3486b511d378cf7f7f86fa0a581953 /tools/Makefile
parent5c123f5fbfa2f7ae43f08a0f92073e90330d704a (diff)
downloadu-boot-e35c6c797888b9b4361a8cfdc3a4aecacfece74c.tar.gz
u-boot-e35c6c797888b9b4361a8cfdc3a4aecacfece74c.tar.bz2
u-boot-e35c6c797888b9b4361a8cfdc3a4aecacfece74c.zip
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 <trini@ti.com>
Diffstat (limited to 'tools/Makefile')
-rw-r--r--tools/Makefile4
1 files changed, 4 insertions, 0 deletions
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