i.MX Yocto Project: How do I add an existing package to an image?

i.MX Yocto Project: How do I add an existing package to an image?

There are two ways:


1. BitBake. Append the package into the IMAGE_INSTALL variable. But

 

  • In case you want the package in every image,  add a line to your conf/local.conf file

 

IMAGE_INSTALL_append = " package"

 

          Make sure to include the space BEFORE the package name. You can add other packages, just place spaces in-between.

  • In case you want the package in a particular image, e.g. fsl-image-gui,, add it on meta-fsl-demos/recipes-fsl/images/fsl-image-gui.bb

IMAGE_INSTALL += " \

    ${SOC_IMAGE_INSTALL} \

    cpufrequtils \

    nano \

    packagegroup-fsl-gstreamer \

    packagegroup-fsl-tools-testapps \

    packagegroup-fsl-tools-benchmark \

    packagegroup-qt-in-use-demos \

    qt4-plugin-phonon-backend-gstreamer \

    qt4-demos \

    qt4-examples \

    fsl-gui-extrafiles \

    package \

    "


2. Hob. Due to its graphical nature, adding more packages to a base image is easier than the bitbake way. Run the hob app under the build folder, select your machine and image, then edit the later (click on the Edit image button)

 

In case the package is not available, you need to create it. As a starting point take a look at this example. In case you consider is good enough to be present on the mainstream repos, send the patch to the meta-freescale mailing list.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值