This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM5749: Yocto Build - Adding Component to Specific Target Image

Expert 2430 points
Part Number: AM5749

Reference:  Processor SDK Linux / Building the SDK / Build Options


So for my production build, I am targeting the minimal build: arago-base-tisdk-image.  I need an SFTP server running, though, and as that is not included in the minimal build, I added it (and other needed but missing things) globally (to all targets) via my local.conf file:

IMAGE_INSTALL_append += " rsync zip ninja gpgme openssh"

Adding openssh globally, though, breaks the bitbake build for tisdk-rootfs-image target which is what I use for development.
So, specifically, step-by-step and file-by-file, how do I update the configuration files to manually include openssh to only the arago-base-tisdk-image target?
  • Is all of TI support on vacation or something?

  • Hi Alex,

    Instead of adding the openssh into the local.conf, which causes it to take effect for all the images, you can add it to the specific image itself.

    For example, try adding to meta-arago-distro/recipes-core/images/arago-base-tisdk-image.bb, within the IMAGE_INSTALL - along with other packagegroups in that file.

    Regards

    Karthik

  • That's helpful, thanks, but when I asked for "step-by-step" instructions, I wasn't kidding.

    That file just cites package files.  How do I simply add "openssl" to it?

  • Alex,

    You can do something like this:

    meta-arago$ git diff
    diff --git a/meta-arago-distro/recipes-core/images/arago-base-tisdk-image.bb b/meta-arago-distro/recipes-core/images/arago-base-tisdk-image.bb
    index e926724c..3557769a 100644
    --- a/meta-arago-distro/recipes-core/images/arago-base-tisdk-image.bb
    +++ b/meta-arago-distro/recipes-core/images/arago-base-tisdk-image.bb
    @@ -7,6 +7,7 @@ IMAGE_FSTYPES += "cpio.xz"
    IMAGE_FSTYPES_append_dra7xx = " ubifs ubi"

    IMAGE_INSTALL += "\
    + openssh \
    packagegroup-arago-base \
    packagegroup-arago-console \
    packagegroup-arago-base-tisdk \

    Regards

    Karthik