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

Khem Raj raj.khem at gmail.com
Sun May 8 10:09:29 PDT 2016


> 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 <http://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 <mailto:pknopf at medxchange.com>--
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160508/43890adb/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160508/43890adb/attachment.pgp>


More information about the yocto mailing list