
mån 2012-11-26 klockan 14:13 -0700 skrev Tom Rini:
In the future, please thread the 0/N to the patch series, thanks.
I know. Didn't notice that my git was wrongly configured in this small patch series before it was sent, and don't know what whent wrong with the threading of the cover letter in the third big sunxi patch series. Will make sure they are threaded properly next time.
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.
Yes.
When building for a10a in boards.cfg you do: a10a ... allwinner_common:PERIPHERALX=A10A,PERIPHERALY=A10A a10b ... allwinner_common:PERIPHERALX=A10B,PERIPHERALY=A10B
Yes.
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?
Currently it's only for diagnostics purposes, with the board name reported by SPL at boot time to notice if someone tries to use the wrong SPL for their board. Several users have already benefitted from this when trying to figure out why their built OS image do not boot proper. It's a bit subtle as many times the wrong SPL (incorrect DRAM settings) will load u-boot just fine only hang while booting the kernel.
But it's mostly cosmetic. Not very important.
Regards Henirk