[openwrt/openwrt] packages: uboot-mxs: override instead of appending u-boot make flags

LEDE Commits lede-commits at lists.infradead.org
Tue Feb 13 01:02:37 PST 2018


blogic pushed a commit to openwrt/openwrt.git, branch master:
https://git.lede-project.org/123dbb77aa24842ed00e566b3e01536535407d66

commit 123dbb77aa24842ed00e566b3e01536535407d66
Author: Michael Heimpold <mhei at heimpold.de>
AuthorDate: Sat Feb 10 14:05:17 2018 +0100

    packages: uboot-mxs: override instead of appending u-boot make flags
    
    This prevents passing down the HOSTCC stuff set in u-boot.mk
    which results in linking errors against openssl:
    
    tools/mxsimage.o: In function `sb_aes_reinit':
    mxsimage.c:(.text+0x202): undefined reference to `EVP_CIPHER_CTX_reset'
    tools/mxsimage.o: In function `mxsimage_generate':
    mxsimage.c:(.text+0x110d): undefined reference to `EVP_MD_CTX_new'
    mxsimage.c:(.text+0x114f): undefined reference to `EVP_MD_CTX_free'
    mxsimage.c:(.text+0x11c3): undefined reference to `EVP_MD_CTX_new'
    mxsimage.c:(.text+0x1323): undefined reference to `EVP_MD_CTX_free'
    mxsimage.c:(.text+0x134a): undefined reference to `EVP_CIPHER_CTX_reset'
    tools/mxsimage.o: In function `mxsimage_verify_print_header':
    mxsimage.c:(.text+0x23ce): undefined reference to `EVP_MD_CTX_new'
    mxsimage.c:(.text+0x242c): undefined reference to `EVP_MD_CTX_new'
    mxsimage.c:(.text+0x246b): undefined reference to `EVP_MD_CTX_free'
    mxsimage.c:(.text+0x24ef): undefined reference to `EVP_CIPHER_CTX_reset'
    mxsimage.c:(.text+0x2e52): undefined reference to `EVP_MD_CTX_free'
    collect2: error: ld returned 1 exit status
    
    Signed-off-by: Michael Heimpold <mhei at heimpold.de>
---
 package/boot/uboot-mxs/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/boot/uboot-mxs/Makefile b/package/boot/uboot-mxs/Makefile
index cd752bb..6fde52e 100644
--- a/package/boot/uboot-mxs/Makefile
+++ b/package/boot/uboot-mxs/Makefile
@@ -35,7 +35,7 @@ UBOOT_TARGETS := \
 	mx23_olinuxino \
 	duckbill
 
-UBOOT_MAKE_FLAGS += $(UBOOT_IMAGE)
+UBOOT_MAKE_FLAGS = $(UBOOT_IMAGE)
 
 define Build/InstallDev
 	$(INSTALL_DIR) $(STAGING_DIR_IMAGE)



More information about the lede-commits mailing list