boot/uboot: fix missing host-openssl for i.MX28 target
PATCH 1/1 boot/uboot: fix missing host-openssl for i.MX28 target
From: J?rg Krause <[email protected]>
Building an U-Boot image for the i.MX23 or i.MX28 target requires to run the bootloaders 'mxsimage' tool on the host. As mxsimage needs unconditionally OpenSSL, building U-Boot for those targets fails if it is not available on the host:
tools/mxsimage.c:18:25: fatal error: openssl/evp.h: No such file or directory
#include <openssl/evp.h>
Add the required dependency 'host-openssl' to all the different U-Boot image types used to build a bootloader image for an i.MX23/i.MX28 target.
Fetch from:
https://sourceforge.net/p/armadeus/mailman/message/33595402/
--- boot/uboot/uboot.mk | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-)
boot/uboot/uboot.mk +7 -4
@@ -58,16 +58,17 @@ UBOOT_BIN = u-boot.imx else ifeq ($(BR2_TARGET_UBOOT_FORMAT_SB),y) UBOOT_BIN = u-boot.sb UBOOT_MAKE_TARGET = $(UBOOT_BIN) -UBOOT_DEPENDENCIES += host-elftosb +# mxsimage needs OpenSSL +UBOOT_DEPENDENCIES += host-elftosb host-openssl else ifeq ($(BR2_TARGET_UBOOT_FORMAT_SD),y) # BootStream (.sb) is generated by U-Boot, we convert it to SD format UBOOT_BIN = u-boot.sd UBOOT_MAKE_TARGET = u-boot.sb -UBOOT_DEPENDENCIES += host-elftosb +UBOOT_DEPENDENCIES += host-elftosb host-openssl else ifeq ($(BR2_TARGET_UBOOT_FORMAT_NAND),y) UBOOT_BIN = u-boot.nand UBOOT_MAKE_TARGET = u-boot.sb -UBOOT_DEPENDENCIES += host-elftosb +UBOOT_DEPENDENCIES += host-elftosb host-openssl else ifeq ($(BR2_TARGET_UBOOT_FORMAT_CUSTOM),y) UBOOT_BIN = $(call qstrip,$(BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME)) else
@@ -87,7 +88,9 @@ endif UBOOT_MAKE_OPTS += \ CROSS_COMPILE="$(TARGET_CROSS)" \ - ARCH=$(UBOOT_ARCH) + ARCH=$(UBOOT_ARCH) \ + HOSTCFLAGS="$(HOST_CFLAGS)" \ + HOSTLDFLAGS="$(HOST_LDFLAGS)" ifeq ($(BR2_TARGET_UBOOT_NEEDS_DTC),y) UBOOT_DEPENDENCIES += host-dtc
Signature · 1 line
2.8.2
PATCH 1/1 boot/uboot: fix missing host-openssl for i.MX28 target
Hi J?rg,
Quoted 1 line · J?rg Krause
From: J?rg Krause <[email protected]>
I think you should keep Julien's authorship of this patch.
Quoted 47 lines
Building an U-Boot image for the i.MX23 or i.MX28 target requires to run the bootloaders 'mxsimage' tool on the host. As mxsimage needs unconditionally OpenSSL, building U-Boot for those targets fails if it is not available on the host:
tools/mxsimage.c:18:25: fatal error:openssl/evp.h: No such file or directory
#include <openssl/evp.h>Add the required dependency 'host-openssl' to all the different U-Boot image types used to build a bootloader image for an i.MX23/i.MX28 target.
Fetch from:
https://sourceforge.net/p/armadeus/mailman/message/33595402/Signed-off-by Julien Boibessot <[email protected]>[J?rg: port to recent Buildroot version]Signed-off-by J?rg Krause <[email protected]>--- boot/uboot/uboot.mk | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-)boot/uboot/uboot.mk +4
-3@@ -58,16 +58,17 @@ UBOOT_BIN = u-boot.imx else ifeq ($(BR2_TARGET_UBOOT_FORMAT_SB),y) UBOOT_BIN = u-boot.sb UBOOT_MAKE_TARGET = $(UBOOT_BIN) -UBOOT_DEPENDENCIES += host-elftosb +# mxsimage needs OpenSSL +UBOOT_DEPENDENCIES += host-elftosb host-openssl else ifeq ($(BR2_TARGET_UBOOT_FORMAT_SD),y) # BootStream (.sb) is generated by U-Boot, we convert it to SD format UBOOT_BIN = u-boot.sd UBOOT_MAKE_TARGET = u-boot.sb -UBOOT_DEPENDENCIES += host-elftosb +UBOOT_DEPENDENCIES += host-elftosb host-openssl else ifeq ($(BR2_TARGET_UBOOT_FORMAT_NAND),y) UBOOT_BIN = u-boot.nand UBOOT_MAKE_TARGET = u-boot.sb -UBOOT_DEPENDENCIES += host-elftosb +UBOOT_DEPENDENCIES += host-elftosb host-openssl else ifeq ($(BR2_TARGET_UBOOT_FORMAT_CUSTOM),y) UBOOT_BIN = $(call qstrip,$(BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME)) else
boot/uboot/uboot.mk endif · line 93
Quoted 7 lines
boot/uboot/uboot.mk +3
-1@@ -87,7 +88,9 @@ endif UBOOT_MAKE_OPTS += \ CROSS_COMPILE="$(TARGET_CROSS)" \ - ARCH=$(UBOOT_ARCH) + ARCH=$(UBOOT_ARCH) \ + HOSTCFLAGS="$(HOST_CFLAGS)" \ + HOSTLDFLAGS="$(HOST_LDFLAGS)"
Is this hunk necessary to make mxsimage.c build? If so, please explain how in the commit log.
baruch
Signature · 3 lines
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -PATCH 1/1 boot/uboot: fix missing host-openssl for i.MX28 target
Hello,
Quoted 9 lines · Baruch Siach
boot/uboot/uboot.mk endif · line 93
Quoted 6 lines
UBOOT_MAKE_OPTS+= \boot/uboot/uboot.mk +3
-1CROSS_COMPILE="$(TARGET_CROSS)" \ - ARCH=$(UBOOT_ARCH) + ARCH=$(UBOOT_ARCH) \ + HOSTCFLAGS="$(HOST_CFLAGS)" \ + HOSTLDFLAGS="$(HOST_LDFLAGS)"Is this hunk necessary to make
mxsimage.cbuild? If so, please explain how in the commit log.
I guess it is, to allow the U-Boot build process to find OpenSSL in $(HOST_DIR): thanks to $(HOST_CFLAGS) and $(HOST_LDFLAGS), the right -I/-L options will be passed to allow U-Boot to find OpenSSL.
But indeed, it's nice when such things are explicitly said in the commit log.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 1/1 boot/uboot: fix missing host-openssl for i.MX28 target
In reply to Baruch SiachHi Baruch,
Quoted 6 lines · Baruch Siach
Hi J?rg,
Quoted 1 line · J?rg Krause
From: J?rg Krause <[email protected]>
I think you should keep Julien's authorship of this patch.
Yes! Honestly, I was suprised by this. In fact I didn't applied the patch with git, but by copy & paste and then did a git commit & git format-patch at work and git commit at home...
Quoted 56 lines
Quoted 56 lines
Building an U-Boot image for the i.MX23 or i.MX28 target requires to run the
bootloaders 'mxsimage' tool on the host. As mxsimage needs unconditionally
OpenSSL, building U-Boot for those targets fails if it is not available on
the host:
tools/mxsimage.c:18:25: fatal error:openssl/evp.h: No such file or directory
? #include <openssl/evp.h>Add the required dependency 'host-openssl' to all the different U- Boot image
types used to build a bootloader image for an i.MX23/i.MX28 target.Fetch from:
https://sourceforge.net/p/armadeus/mailman/message/33595402/Signed-off-by Julien Boibessot <[email protected]>[J?rg: port to recent Buildroot version]Signed-off-by J?rg Krause <[email protected]>---
?boot/uboot/uboot.mk | 11 +++++++----
?1 file changed, 7 insertions(+), 4 deletions(-)boot/uboot/uboot.mk +0
-0@@ -58,16 +58,17 @@ UBOOT_BIN = u-boot.imx ?else ifeq ($(BR2_TARGET_UBOOT_FORMAT_SB),y)?UBOOT_BIN = u-boot.sb
?UBOOT_MAKE_TARGET = $(UBOOT_BIN)boot/uboot/uboot.mk +2
-1-UBOOT_DEPENDENCIES += host-elftosb +# mxsimage needs OpenSSL +UBOOT_DEPENDENCIES += host-elftosb host-openssl?else ifeq ($(BR2_TARGET_UBOOT_FORMAT_SD),y)
?# BootStream (.sb) is generated by U-Boot, we convert it to SD format
?UBOOT_BIN = u-boot.sd
?UBOOT_MAKE_TARGET = u-boot.sbboot/uboot/uboot.mk +1
-1-UBOOT_DEPENDENCIES += host-elftosb +UBOOT_DEPENDENCIES += host-elftosb host-openssl?else ifeq ($(BR2_TARGET_UBOOT_FORMAT_NAND),y)
?UBOOT_BIN = u-boot.nand
?UBOOT_MAKE_TARGET = u-boot.sbboot/uboot/uboot.mk +1
-1-UBOOT_DEPENDENCIES += host-elftosb +UBOOT_DEPENDENCIES += host-elftosb host-openssl?else ifeq ($(BR2_TARGET_UBOOT_FORMAT_CUSTOM),y) ?UBOOT_BIN = $(call qstrip,$(BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME)) ?else
boot/uboot/uboot.mk +0
-0@@ -87,7 +88,9 @@ endif?
?UBOOT_MAKE_OPTS += \
? CROSS_COMPILE="$(TARGET_CROSS)" \
Quoted 8 lines
boot/uboot/uboot.mk endif · line 93
Quoted 4 lines
boot/uboot/uboot.mk +3
-1- ARCH=$(UBOOT_ARCH) + ARCH=$(UBOOT_ARCH) \ + HOSTCFLAGS="$(HOST_CFLAGS)" \ + HOSTLDFLAGS="$(HOST_LDFLAGS)"Is this hunk necessary to make
mxsimage.cbuild? If so, please explain how in?
the commit log.
You're right. Fortunatly, Thomas gave a quite good explanation, which I would use in an updated version.
J?rg
PATCH 1/1 boot/uboot: fix missing host-openssl for i.MX28 target
Hi J?rg,
Quoted 9 lines · J?rg Krause
Quoted 4 lines · Baruch Siach
Quoted 1 line · J?rg Krause
From: J?rg Krause <[email protected]>
I think you should keep Julien's authorship of this patch.
Yes! Honestly, I was suprised by this. In fact I didn't applied the patch with git, but by copy & paste and then did a git commit & git format-patch at work and git commit at home...
You can set the authorship of your latest commit with
git --amend --author=[author]
baruch
Signature · 3 lines
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -