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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

ソリューションへジャンプ
2,191件の閲覧回数
sreedhar_appala
Contributor IV

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

ラベル(3)
0 件の賞賛
返信
1 解決策
2,135件の閲覧回数
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,

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
2,136件の閲覧回数
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,

0 件の賞賛
返信
2,135件の閲覧回数
sreedhar_appala
Contributor IV

thank you gusarambula !!

0 件の賞賛
返信