[yocto] Using multiple versions of package (PACKAGECONFIG) in the same bitbake

Paul Knopf pknopf at medxchange.com
Mon May 9 06:43:02 PDT 2016


Thanks,

What I winded up doing is using bbappend to remove fstab from base-files. I
then created two separate packages with different fstab files, and added
each of them into their own image.

On Sun, May 8, 2016 at 1:09 PM Khem Raj <raj.khem at gmail.com> wrote:

> On May 8, 2016, at 6:50 AM, Paul Knopf <pknopf at medxchange.com> wrote:
>
> I have two rootfs. My main image, and the initramfs image for the kernel
> (INITRAMFS_IAMGE and INITRAMFS_IMAGE_BUNDLE).
>
> I need to provide different fstab files for each build.
>
> I have added a .bbappend for the base-files recipe to use a customized
> fstab.
>
> In the bbappend file, I'd like to add PACKAGECONFIG support to the package
> to customize it for each rootfs.
>
> However, it seems that I can only PACKAGECONFIG for a recipe in the
> local.conf. How do I add features to a package at a "image-recipe.bb"
> level?
>
> Maybe I should create a separate recipe all together that overwrite fstab?
> Then, I can include this "base-files-overrite-fstab" in the appropriate
> image recipe?
>
>
> you can write a shell function doing this in image recipe and then hook it
> up to tweak the rootfs after its created during image build.
>
> your_func() {
> …..
> }
>
> ROOTFS_POSTPROCESS_COMMAND += “your_functon;”
>
>
>
> Thanks,
> Paul Knopf
> Software Engineer
> Med X Change, Inc
> pknopf at medxchange.com
>
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
> --

Thanks,
Paul Knopf
Software Engineer
Med X Change, Inc
pknopf at medxchange.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160509/94bc1e76/attachment.html>


More information about the yocto mailing list