On 05/16/2017 11:21 AM, Patrick Ohly wrote:
While the "development/production" switch may be great for some projects,
it'll make things only more complicated for others while gaining nothing above
what we have now.
What about the approach I outlined in my reponse to Richard, where we
just introduce the IMAGE_MODE mechanism in OE-core without defining
specific modes? Would you find that useful?
Please no. Global variables are a headache, and the less we have of them
the better.
Here in particularly, what is wrong with defining:
patricks-awesome-image-developers.bb
(containing IMAGE_FEATURE = "no-password-for-anything")
patricks-awesome-image-production.bb
(containing IMAGE_FEATURE = "serious-security")
and the common bits can go to patricks-awesome-image.inc.
It's simple, direct and self-explanatory. At the end of the day, you
*always* need to drill down to the code that does the work, and learn
the details, to truly understand what is happening behind a
configuration setting, and adding abstraction layers and scattering
functionality over many different files does not help - quite the opposite.
Alex
--
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core