summaryrefslogtreecommitdiffstats
path: root/package/boot/uboot-lantiq/patches/0027-no_weak_alias.patch
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2016-05-21 12:13:36 +0200
committerJohn Crispin <john@phrozen.org>2016-05-23 11:03:24 +0200
commitb3795d0c93d309de9be670e3d2c86b3df479ad2c (patch)
treeda9d2e74e7d5c66eec0539dc3f999713bbf04da3 /package/boot/uboot-lantiq/patches/0027-no_weak_alias.patch
parent74b1687be31f3682c411e7f0ea6c7de6cff57cb3 (diff)
downloadmaster-31e0f0ae-b3795d0c93d309de9be670e3d2c86b3df479ad2c.tar.gz
master-31e0f0ae-b3795d0c93d309de9be670e3d2c86b3df479ad2c.tar.bz2
master-31e0f0ae-b3795d0c93d309de9be670e3d2c86b3df479ad2c.zip
uboot-lantiq: reorder and rework patches
use: - 00nn for u-boot patches - 01nn for new boards While doing the rework, the board definitions for the easy50712 and easy80920 were moved to distinct board definitions patches. Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'package/boot/uboot-lantiq/patches/0027-no_weak_alias.patch')
-rw-r--r--package/boot/uboot-lantiq/patches/0027-no_weak_alias.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/package/boot/uboot-lantiq/patches/0027-no_weak_alias.patch b/package/boot/uboot-lantiq/patches/0027-no_weak_alias.patch
new file mode 100644
index 0000000000..da519a5f1d
--- /dev/null
+++ b/package/boot/uboot-lantiq/patches/0027-no_weak_alias.patch
@@ -0,0 +1,26 @@
+From 3422299dc28fa8257677d03cc1253e3c9bf17e9f Mon Sep 17 00:00:00 2001
+From: Jeroen Hofstee <jeroen@myspectrum.nl>
+Date: Thu, 26 Jun 2014 20:18:31 +0200
+Subject: [PATCH] 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 <jeroen@myspectrum.nl>
+Acked-by: Simon Glass <sjg@chromium.org>
+---
+ common/main.c | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+--- 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
+