All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Guo Hongruan" <camelguo@gmail.com>
To: "Guo Hongruan" <camelguo@gmail.com>,
	openembedded-devel@lists.openembedded.org
Subject: Re: building u-boot - git failed
Date: Sun, 31 Jan 2010 12:02:28 +0800	[thread overview]
Message-ID: <op.u7dpieeymn1qzu@camelguo> (raw)
In-Reply-To: <op.u7do2cw1mn1qzu@camelguo>

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@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.
>
>


-- 
Guo Hongruan, Embedded Linux Consultant
Skype: camelguo
Twitter: camelguo
http://www.gulessoft.com



  reply	other threads:[~2010-01-31  4:05 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-31  3:20 building u-boot - git failed Guo Hongruan
2010-01-31  3:22 ` Guo Hongruan
2010-01-31  3:35 ` Holger Hans Peter Freyther
2010-01-31  3:52   ` Guo Hongruan
2010-01-31  4:02     ` Guo Hongruan [this message]
2010-01-31  4:16       ` Holger Hans Peter Freyther
2010-01-31  5:23         ` Khem Raj
2010-01-31  5:33           ` Guo Hongruan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=op.u7dpieeymn1qzu@camelguo \
    --to=camelguo@gmail.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.