]> git.sur5r.net Git - u-boot/commit
hwconfig: Fix dummy initialization of {board, cpu}_hwconfig
authorKumar Gala <galak@kernel.crashing.org>
Tue, 30 Nov 2010 21:01:28 +0000 (15:01 -0600)
committerWolfgang Denk <wd@denx.de>
Tue, 30 Nov 2010 21:11:19 +0000 (22:11 +0100)
commitb194577b2995eacbd2a3769269f0af1bc5e22530
tree375a09de7144df6e527ba3c91de5396ded94cec2
parenta55bb8340ba8682782f816f0b9b3de13e5512e28
hwconfig: Fix dummy initialization of {board, cpu}_hwconfig

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 files that utilize this
feature, we can just initialize the variables to an empty string and
thus move them out of the BSS if they aren't defined elsewhere.

Also made board_hwconfig & cpu_hwconfig arrays to reduce size associated
with string pointers vs arrays.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
board/freescale/mpc8641hpcn/mpc8641hpcn.c
board/freescale/p2020ds/p2020ds.c
common/hwconfig.c