Re: [U-Boot] [PATCH v2] hwconfig: Fix dummy initialization of {board, cpu}_hwconfig

2010-11-30 Thread Scott Wood
On Tue, 30 Nov 2010 13:11:41 -0600 Kumar Gala wrote: > diff --git a/common/hwconfig.c b/common/hwconfig.c > index 3c9759f..752bfc3 100644 > --- a/common/hwconfig.c > +++ b/common/hwconfig.c > @@ -68,8 +68,8 @@ next: > return NULL; > } > > -const char *cpu_hwconfig __attribute__((weak));

[U-Boot] [PATCH v2] hwconfig: Fix dummy initialization of {board, cpu}_hwconfig

2010-11-30 Thread Kumar Gala
Since board_hwconfig & cpu_hwconfig are defined as weak and dont have a default value they will get put into the BSS if they aren't defined elsewhere. This is problematic as we try to utilize hwconfig before we've relocated and thus BSS isn't setup. Instead of giving dummy values in the board fil