On Wed, 19 Jan 2011 15:45:54 -0700, John Rigby john.rigby@linaro.org wrote:
Sorry for entering late here. Here are my questions:
How does l-m-c know about the boot partition convention? Is the fact that omap wants a dos partition with some files on it but i.MX just needs the raw bits at a fixed location on the card embedded in l-m-c? If a new platform pops up with a completely different convention does l-m-c need to be modified or could we put a script in the hwpack to do that?
For map you could call a script with an argument pointing to the blown out hwpack and and second argument pointing at the mounted boot partition. For mx first argument is the same second is a pointer to raw device. So the hwpack would need a field to say if the scipt needs a raw device or mounted dos partition and.. another field with the script name.
Is this over engineering?
Not particularly, but we are adverse to adding more scripts to the system. We have enough trouble with the maintainer scripts in packages.
Yes, they give more flexibility, but that comes at a cost, so I think we should avoid it if at all possible.
Thanks,
James