| Submitter | Guo Hongruan |
|---|---|
| Date | 2010-01-31 04:02:28 |
| Message ID | <op.u7dpieeymn1qzu@camelguo> |
| Download | mbox | patch |
| Permalink | /patch/1534/ |
| State | Superseded, archived |
| Headers | show |
Comments
On Sunday 31 January 2010 05:02:28 Guo Hongruan wrote: > I think I got the answer, see > http://git.denx.de/?p=u-boot.git;a=commitdiff;h=f865fcbbb35851e75fee9c3a3fa > 8e0f71d9e6463 > > adding the following patch to u-boot recipe can solve this problem. Please create a patch that can be applied to the OE tree. thanks
On Sat, Jan 30, 2010 at 8:16 PM, Holger Hans Peter Freyther <holger+oe@freyther.de> wrote: > On Sunday 31 January 2010 05:02:28 Guo Hongruan wrote: >> I think I got the answer, see >> http://git.denx.de/?p=u-boot.git;a=commitdiff;h=f865fcbbb35851e75fee9c3a3fa >> 8e0f71d9e6463 >> >> adding the following patch to u-boot recipe can solve this problem. > > Please create a patch that can be applied to the OE tree. couple of months back I was hitting this error for beaglebord and had the same patch in my local repo but never pushed it > > thanks > > _______________________________________________ > Openembedded-devel mailing list > Openembedded-devel@lists.openembedded.org > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel >
在 Sun, 31 Jan 2010 13:23:58 +0800,Khem Raj <raj.khem@gmail.com> 写道: >> Please create a patch that can be applied to the OE tree. > couple of months back I was hitting this error for beaglebord and had > the same patch in my local repo but never pushed it Please push it.
Patch
diff --git a/lib_arm/board.c b/lib_arm/board.c index 5e3d7f6..e148739 100644 (file) --- a/lib_arm/board.c +++ b/lib_arm/board.c @@ -93,23 +93,23 @@ extern void rtl8019_get_enetaddr (uchar * addr); * May be supplied by boards if desired */ void inline __coloured_LED_init (void) {} -void inline coloured_LED_init (void) __attribute__((weak, alias("__coloured_LED_init"))); +void coloured_LED_init (void) __attribute__((weak, alias("__coloured_LED_init"))); void inline __red_LED_on (void) {} -void inline red_LED_on (void) __attribute__((weak, alias("__red_LED_on"))); +void red_LED_on (void) __attribute__((weak, alias("__red_LED_on"))); void inline __red_LED_off(void) {} -void inline red_LED_off(void) __attribute__((weak, alias("__red_LED_off"))); +void red_LED_off(void) __attribute__((weak, alias("__red_LED_off"))); void inline __green_LED_on(void) {} -void inline green_LED_on(void) __attribute__((weak, alias("__green_LED_on"))); +void green_LED_on(void) __attribute__((weak, alias("__green_LED_on"))); void inline __green_LED_off(void) {} -void inline green_LED_off(void)__attribute__((weak, alias("__green_LED_off"))); +void green_LED_off(void) __attribute__((weak, alias("__green_LED_off"))); void inline __yellow_LED_on(void) {} -void inline yellow_LED_on(void)__attribute__((weak, alias("__yellow_LED_on"))); +void yellow_LED_on(void) __attribute__((weak, alias("__yellow_LED_on"))); void inline __yellow_LED_off(void) {} -void inline yellow_LED_off(void)__attribute__((weak, alias("__yellow_LED_off")));
I think I got the answer, see http://git.denx.de/?p=u-boot.git;a=commitdiff;h=f865fcbbb35851e75fee9c3a3fa8e0f71d9e6463 adding the following patch to u-boot recipe can solve this problem. +void yellow_LED_off(void) __attribute__((weak, alias("__yellow_LED_off"))); void inline __blue_LED_on(void) {} -void inline blue_LED_on(void)__attribute__((weak, alias("__blue_LED_on"))); +void blue_LED_on(void) __attribute__((weak, alias("__blue_LED_on"))); void inline __blue_LED_off(void) {} -void inline blue_LED_off(void)__attribute__((weak, alias("__blue_LED_off"))); +void blue_LED_off(void) __attribute__((weak, alias("__blue_LED_off"))); /************************************************************************ * Init Utilities * 在 Sun, 31 Jan 2010 11:52:50 +0800,Guo Hongruan <camelguo@gmail.com> 写道: > 在 Sun, 31 Jan 2010 11:35:35 +0800,Holger Hans Peter Freyther > <holger+oe@freyther.de> 写道: > >> Now to the hint: >> 1.) The issue seems to be caused by using newer GCC? > > I searched the error through google. It said that the error occurred > using gcc-4.4.2, while using gcc-4.2, it works OK. > >> 2.) Take it up with upstream uboot to see how they want it to be >> changed. >> 2.1.) E.g. removing the "inline" could work and it should not increase >> the >> size of the text section >> 2.2) E.g. instead of using the alias it could call the inline >> function... > > Someone said it can be solved by removing 'inline' keywords. > >