
On Sun, Nov 25, 2012 at 12:21:24PM +0100, Henrik Nordstr?m wrote:
This patch series adds CONFIG_SYS_BOARD_NAME with the boards.cfg board name. This differs from the source level board name when multiple boards share the same source using parameters set in boards.cfg.
This is used by the upcoming Allwinner sunxi (A10 & A13) SoC support
In the future, please thread the 0/N to the patch series, thanks.
So the root problem is that you are able to share a good amount of code between many (but lets just go with a10a and a10b for now) boards and share a common config file. When building for a10a in boards.cfg you do: a10a ... allwinner_common:PERIPHERALX=A10A,PERIPHERALY=A10A a10b ... allwinner_common:PERIPHERALX=A10B,PERIPHERALY=A10B
to handle the differences between a10a and a10b. So, what are you wanting to save the fact that we built for a10a or a10b for? Is this later passed along in the environment for run-time detection? Is there no other way to do run-time detection?