summaryrefslogtreecommitdiff
path: root/package/u-boot
diff options
context:
space:
mode:
Diffstat (limited to 'package/u-boot')
-rw-r--r--package/u-boot/Makefile3
-rw-r--r--package/u-boot/patches/patch-tools_Makefile11
2 files changed, 12 insertions, 2 deletions
diff --git a/package/u-boot/Makefile b/package/u-boot/Makefile
index 079ed4066..e32c9b7a3 100644
--- a/package/u-boot/Makefile
+++ b/package/u-boot/Makefile
@@ -31,8 +31,7 @@ ifeq ($(ADK_TARGET_SYSTEM_ATMEL_NGW100),y)
CONFIG:= atngw100_defconfig
endif
-HOST_MAKE_FLAGS+= HOSTCFLAGS="$(HOST_CPPFLAGS) $(HOST_CFLAGS)" \
- HOSTLDFLAGS="$(HOST_LDFLAGS) -ldl"
+HOST_MAKE_FLAGS+= HOSTCFLAGS="$(HOST_CPPFLAGS) $(HOST_CFLAGS)"
HOST_STYLE:= manual
CONFIG_STYLE:= manual
BUILD_STYLE:= manual
diff --git a/package/u-boot/patches/patch-tools_Makefile b/package/u-boot/patches/patch-tools_Makefile
new file mode 100644
index 000000000..90ef0c55d
--- /dev/null
+++ b/package/u-boot/patches/patch-tools_Makefile
@@ -0,0 +1,11 @@
+--- u-boot-2015.01.orig/tools/Makefile 2015-01-12 15:39:08.000000000 +0100
++++ u-boot-2015.01/tools/Makefile 2015-02-04 14:51:33.663150060 +0100
+@@ -115,7 +115,7 @@ endif
+
+ # MXSImage needs LibSSL
+ ifneq ($(CONFIG_MX23)$(CONFIG_MX28)$(CONFIG_FIT_SIGNATURE),)
+-HOSTLOADLIBES_mkimage += -lssl -lcrypto
++HOSTLOADLIBES_mkimage += -lssl -lcrypto -ldl
+ endif
+
+ HOSTLOADLIBES_dumpimage := $(HOSTLOADLIBES_mkimage)