kwbimage: Make the Makefile pass in CONFIG_SYS_SPI_U_BOOT_OFFS
PATCH 1/1 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 <[email protected]>
--- tools/Makefile | 4 ++++ tools/kwbimage.c | 1 - 2 files changed, 4 insertions(+), 1 deletion(-)
tools/Makefile +4 -0
@@ -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
tools/kwbimage.c +0 -1
@@ -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))
Signature · 1 line
1.7.9.5
PATCH 1/1 kwbimage: Make the Makefile pass in CONFIG_SYS_SPI_U_BOOT_OFFS
Quoted 4 lines · Tom Rini
We can't use
config.hdirectly as some platforms include headers that aren't safe to use in normal Linux userland.Signed-off-by Tom Rini <[email protected]>
Applied to u-boot/master (testing of this is what held up the other PRs), thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150209/97ac4641/attachment.sig>