How to Build an application into the rootfs in iMX8MM Yocto distro 4.19-warrior

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Build an application into the rootfs in iMX8MM Yocto distro 4.19-warrior

Jump to solution
146 Views
sreedhar_appala
Contributor III

Hi,

 

I am working with iMX8MM EVK and Yocto distribution 4.19.35 version

 

Build Configuration:
BB_VERSION = "1.42.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-16.04"
TARGET_SYS = "aarch64-poky-linux"
MACHINE = "imx8mmevk"
DISTRO = "fsl-imx-xwayland"
DISTRO_VERSION = "4.19-warrior"
TUNE_FEATURES = "aarch64"
TARGET_FPU = ""

Could you please point me to a source or steps how to add the application to the distribution and build into the rootfs.

thank you, sreedhar

0 Kudos
1 Solution
90 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Sreedhar,

Yocto uses a modular approach and each software package can be added as “recipes”. There are already a big number of available recipes. You can see which recipes are available as part of the BSP by running:

$ bitbake - s

To look for a specific package name:

$ bitbake -s | grep <string_to_look_for>

These packages are added very easily as you would only need to add them to your image for example by using IMAGE_INSTALL_append on the conf/local.conf file inside the build directory. You can find more information on the Yocto Prohect Reference Manual (link below for the poky warrior release)

https://www.yoctoproject.org/docs/2.7/ref-manual/ref-manual.html

If you would like to add your own application, you would need to integrate it to the Yocto environment, for which the Yocto Project BSP Developer’s Guide is useful. Ideally you would add a new layer with your own recipes which describe to Yocto how to fetch the source, compile it and install it on your image.

https://www.yoctoproject.org/docs/2.7/bsp-guide/bsp-guide.html

This is not trivial, but the Yocto Documentation is a good start.

I hope this helps!

Regards,

View solution in original post

0 Kudos
2 Replies
91 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Sreedhar,

Yocto uses a modular approach and each software package can be added as “recipes”. There are already a big number of available recipes. You can see which recipes are available as part of the BSP by running:

$ bitbake - s

To look for a specific package name:

$ bitbake -s | grep <string_to_look_for>

These packages are added very easily as you would only need to add them to your image for example by using IMAGE_INSTALL_append on the conf/local.conf file inside the build directory. You can find more information on the Yocto Prohect Reference Manual (link below for the poky warrior release)

https://www.yoctoproject.org/docs/2.7/ref-manual/ref-manual.html

If you would like to add your own application, you would need to integrate it to the Yocto environment, for which the Yocto Project BSP Developer’s Guide is useful. Ideally you would add a new layer with your own recipes which describe to Yocto how to fetch the source, compile it and install it on your image.

https://www.yoctoproject.org/docs/2.7/bsp-guide/bsp-guide.html

This is not trivial, but the Yocto Documentation is a good start.

I hope this helps!

Regards,

View solution in original post

0 Kudos
90 Views
sreedhar_appala
Contributor III

thank you gusarambula !!

0 Kudos