Could the DTS experts look at this?
Timur Tabi
timur at freescale.com
Wed Feb 13 10:47:23 EST 2008
David Gibson wrote:
> I can pretty much guarantee you that someone will find that
> insufficient and want to expand the conditional representation. This
> way madness lies.
Then let them. We can have version numbers associated with the conditional
expressions. If they want to make more complex condition expressions, they can
bump the version number and define a spec and write code to parse it.
> No. As Grant says, that's not what the version number is for. It
> represents the version of the encoding, not the content. If you must
> version the content (which you should try really hard to avoid) the
> correct way is to add versioning properties to the root node.
And that's why I prefer updating the DTB format to allow attaching conditional
expressions to nodes. This would then necessitate bumping the version number.
Older U-Boots will reject this new DTB. We can also modify DTC to support
conditional nodes, so that if a customer has an older U-Boot he can't update, he
can use DTC to generate a V17 DTB that has the conditionals already processed.
--
Timur Tabi
Linux kernel developer at Freescale
More information about the Linuxppc-dev
mailing list