Paul, On Wed, Mar 26, 2014 at 8:54 AM, Paul Barker <p...@paulbarker.me.uk> wrote:
> On 26 March 2014 11:29, Diego Sueiro <diego.sue...@gmail.com> wrote: > > > > On Wed, Mar 26, 2014 at 8:16 AM, Paul Barker <p...@paulbarker.me.uk> > wrote: > >> > >> On 26 March 2014 09:47, Diego Sueiro <diego.sue...@gmail.com> wrote: > >> > Folks, > >> > > >> > I have a image recipe which installs some custom files on rootfs. > >> > Instead of having a bbappend for each package that provides those > files > >> > I > >> > want to concentrate it on image recipe. > >> > >> Why do you want to merge all your custom files into one recipe? With > >> them separated into the packages they affect you can add/remove > >> packages a lot easier in the future. > > > > > > Because I want to have different image recipes for different proposes. > > For example: One image with eth0 on dhcp and another one with static ip. > Or > > some different images for product variations. > > > > Ok, I understand you now. I need to work out a way of handling this > for future systems I'll be working on but it's not something I've > needed to do so far. > > I would probably lean in the direction of using bbappends and > generating all config packages during a build (because a package of > custom config files shouldn't have a long build time). So you'd have > init-ifupdown-image1config, init-ifupdown-image2config, etc. Then in > each image recipe I'd select which package is installed. > > That does leave it spread between bbappend files as it's grouped by > functionality rather than by target image. I'm not sure how to > efficiently group it the other way around. > Thanks for the suggestion. > > >> > >> > >> > > >> > The problem is that I'm receiving the following error: > >> > > >> > "But that file is already provided by package" > >> > > >> > > >> > Is there a way to get rid of this error? > >> > >> The only thing I can think of is to use bbappends to prevent the > >> original files from installing but not to add the replacement files. > >> Then have a single recipe which packages all the replacement files. > >> That way only one package provides each file. > > > > > > This is a possible solution. But if I build an image without these custom > > files (core-image-minimal for example) the original ones will not be > > shipped. Am I correct? > > Or maybe I can check for a custom variable defined at local.conf and > check > > for it on bbappend to know if I have to remove or not the original files. > > > > Yes, that would be the issue there. Not sure how well a local.conf > check would work. Well, I'll git it a try. Regards, -- *dS Diego Sueiro Administrador do Embarcados www.embarcados.com.br<http://www.embarcados.com.br/?utm_source=assinatura_diego&utm_medium=e-mail&utm_campaign=Assinatura%20Email%20Diego> /*long live rock 'n roll*/
-- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto