From 53d94f89e86ef262c9f76fa2aba93ffae9995717 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Fri, 20 Nov 2015 23:38:39 +0000 Subject: uboot-omap: fix build with gcc-5 This fixes some problems with gcc-5. Signed-off-by: Hauke Mehrtens SVN-Revision: 47539 --- .../uboot-omap/patches/430-use-weak-in-main.patch | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 package/boot/uboot-omap/patches/430-use-weak-in-main.patch (limited to 'package/boot/uboot-omap/patches/430-use-weak-in-main.patch') diff --git a/package/boot/uboot-omap/patches/430-use-weak-in-main.patch b/package/boot/uboot-omap/patches/430-use-weak-in-main.patch new file mode 100644 index 0000000..07c197f --- /dev/null +++ b/package/boot/uboot-omap/patches/430-use-weak-in-main.patch @@ -0,0 +1,27 @@ +From: Jeroen Hofstee +Date: Thu, 26 Jun 2014 18:18:31 +0000 (+0200) +Subject: common: main.c: make show_boot_progress __weak +X-Git-Tag: v2014.10-rc1~130 +X-Git-Url: http://git.denx.de/?p=u-boot.git;a=commitdiff_plain;h=3422299dc28fa8257677d03cc1253e3c9bf17e9f + +common: main.c: make show_boot_progress __weak + +This not only looks a bit better it also prevents a +warning with W=1 (no previous prototype). + +Signed-off-by: Jeroen Hofstee +Acked-by: Simon Glass +--- + +--- a/common/main.c ++++ b/common/main.c +@@ -27,8 +27,7 @@ DECLARE_GLOBAL_DATA_PTR; + /* + * Board-specific Platform code can reimplement show_boot_progress () if needed + */ +-void inline __show_boot_progress (int val) {} +-void show_boot_progress (int val) __attribute__((weak, alias("__show_boot_progress"))); ++__weak void show_boot_progress(int val) {} + + #define MAX_DELAY_STOP_STR 32 + -- cgit v1.1