[oe] building u-boot - git failed
Guo Hongruan
camelguo at gmail.com
Sun Jan 31 04:02:28 UTC 2010
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.
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")));
+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 at gmail.com> 写道:
> 在 Sun, 31 Jan 2010 11:35:35 +0800,Holger Hans Peter Freyther
> <holger+oe at 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.
>
>
--
Guo Hongruan, Embedded Linux Consultant
Skype: camelguo
Twitter: camelguo
http://www.gulessoft.com
More information about the Openembedded-devel
mailing list