From 8952fad3ee43dc16f00fc3b5b3584139cbd30385 Mon Sep 17 00:00:00 2001 From: Gustavo Zacarias Date: Fri, 27 Apr 2012 05:05:08 +0000 Subject: uboot-tools: bump to version 2012.04.01 Signed-off-by: Gustavo Zacarias Signed-off-by: Peter Korsgaard --- ...-tools-2012.04.01-hostcflags-override-fix.patch | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 package/uboot-tools/uboot-tools-2012.04.01-hostcflags-override-fix.patch (limited to 'package/uboot-tools/uboot-tools-2012.04.01-hostcflags-override-fix.patch') diff --git a/package/uboot-tools/uboot-tools-2012.04.01-hostcflags-override-fix.patch b/package/uboot-tools/uboot-tools-2012.04.01-hostcflags-override-fix.patch new file mode 100644 index 000000000..0202eda9b --- /dev/null +++ b/package/uboot-tools/uboot-tools-2012.04.01-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 +--- + 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 -- cgit v1.2.3