aboutsummaryrefslogtreecommitdiff
path: root/package/uboot-tools/uboot-tools-02-hostcflags-override-fix.patch
diff options
context:
space:
mode:
authorGravatar Gustavo Zacarias <gustavo@zacarias.com.ar>2013-07-31 08:06:37 -0300
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2013-07-31 18:00:59 +0200
commit0a7a850ca5142170c427d2234064558551a327c3 (patch)
tree6ba92e5739e6067b8f141d5509c886341144fb0c /package/uboot-tools/uboot-tools-02-hostcflags-override-fix.patch
parent5adb0f46a26099dbbbf4d9904d391962f5de8f85 (diff)
downloadbuildroot-0a7a850ca5142170c427d2234064558551a327c3.tar.gz
buildroot-0a7a850ca5142170c427d2234064558551a327c3.tar.bz2
uboot-tools: bump to version 2013.07
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/uboot-tools/uboot-tools-02-hostcflags-override-fix.patch')
-rw-r--r--package/uboot-tools/uboot-tools-02-hostcflags-override-fix.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/package/uboot-tools/uboot-tools-02-hostcflags-override-fix.patch b/package/uboot-tools/uboot-tools-02-hostcflags-override-fix.patch
new file mode 100644
index 0000000000..0202eda9b4
--- /dev/null
+++ b/package/uboot-tools/uboot-tools-02-hostcflags-override-fix.patch
@@ -0,0 +1,29 @@
+[PATCH] Fix tools build with custom HOSTCFLAGS
+
+We always need to append HOSTCPPFLAGS, even if HOSTCFLAGS have been
+overridden on the cmdline.
+
+Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
+---
+ config.mk | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+Index: u-boot-2011.03/config.mk
+===================================================================
+--- u-boot-2011.03.orig/config.mk
++++ u-boot-2011.03/config.mk
+@@ -46,10 +46,12 @@
+
+ #########################################################################
+
+-HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer \
+- $(HOSTCPPFLAGS)
++HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
+ HOSTSTRIP = strip
+
++# append CPPFLAGS even if CFLAGS has been overridden on cmdline
++override HOSTCFLAGS += $(HOSTCPPFLAGS)
++
+ #
+ # Mac OS X / Darwin's C preprocessor is Apple specific. It
+ # generates numerous errors and warnings. We want to bypass it