On Tuesday, March 27, 2012 at 7:42 PM, Denys Dmytriyenko wrote:
On Tue, Mar 27, 2012 at 08:27:02PM +0100, Paul Eggleton wrote:On Tuesday 27 March 2012 08:20:11 Robert P. J. Day wrote:i'm currently poring over the OE docs (including the ones at theyocto site), and i'm trying to figure out how to simply add a packageto an image through one's local.conf file.the current yocto ref manual has an entire section about customizingimages:l#usingpoky-extend-customimagebut it discusses creating custom recipe files and custom tasks, andusing IMAGE_INSTALL and IMAGE_FEATURES and EXTRA_IMAGE_FEATURES, andfinally gets into using local.conf, suggesting:DISTRO_EXTRA_RDEPENDS += "strace"is that, in fact, the accepted way if one simply wants to add apackage to an existing image build? because as soon as the manualmentions it, in the very next paragraph, it discourages its use.Well, this clearly does not make sense if that's the way it is presented.The real answer to this question is it depends on why you're adding thepackage.1) If you just want to add a single package temporarily for testing, useCORE_IMAGE_EXTRA_INSTALL += in local.conf (although I really wish we couldmake this mechanism more generic so that it applies to any image, not just theones in OE-Core).2) If you want to add something permanently for every (non-minimal) imageproduced using your DISTRO, set DISTRO_EXTRA_RDEPENDS in your distroconfiguration. This will come into your image via task-distro-base which ispulled in by task-base. I don't think we should be advocating doing anythingwith DISTRO_EXTRA_RDEPENDS via local.conf.3) If you're adding it permanently for a single image, consider whether addingyour own custom image recipe would be more appropriate. FWIW, I don't thinkbbappends for recipes are a good idea.All these options don't cover one more need - temporarily adding one or morepackages to a single specific image via local.conf. Both option 1) and 2) doit too broadly to several/all images... And the only option is to go with morepermanent way in 3) by adding own image recipe.--Denys_______________________________________________Openembedded-core mailing list