Skip to content
Commit b194577b authored by Kumar Gala's avatar Kumar Gala Committed by Wolfgang Denk
Browse files

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: default avatarKumar Gala <galak@kernel.crashing.org>
parent a55bb834
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment