Add new package in LSDK

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Add new package in LSDK

2,233 Views
nehageorge
Contributor I

I am adding a new package in my LSDK build environment. How can I enable it to be built?

In Openwrt based build environment, we run make menuconfig which displays a menu with all packages from where we can select or unselect packages. When we copy the directory of our new package, we run ./scripts/feeds update and ./scripts/feeds install to update the menu. What are the equivalent commands to be run in LSDK?

0 Kudos
Reply
5 Replies

2,213 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @nehageorge!

 

Thank you for contacting NXP Support!

 

You can compile your image with our Yocto Project for Layerscape.

 

After you have configured the Yocto Project you have to add the next line on local.conf file before the compilation starts:

 

CORE_IMAGE_EXTRA_INSTALL += "<package>"

 

Where <package> is the name of the package that you want to install in your image.

 

https://github.com/nxp-qoriq/yocto-sdk

 

https://www.nxp.com/docs/en/user-guide/LSDKYOCTOUG.pdf

 

Best Regards!

Chavira

0 Kudos
Reply

2,195 Views
nehageorge
Contributor I

Thanks for your reply. Is there any way that I can accomplish the same in the LSDK flex-builder 21.08 environment?

0 Kudos
Reply

2,180 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @nehageorge!

As there is no menuconfig you won't be able to have the list that scripts/feeds/ updates for you, you need to directly run flex-builder -c <package> as section 4.3.9 in p. 194 exemplifies with restool, opencv, dpdk, etc.

 

And if the source code isn't available, the alternative to ./scripts/feeds install <package> would be teh section 4.3.12, you'll see similarities to feeds.conf.default and configs/sdk.yml

Let me know how did it go.

Note: I am refering to LSDK 2108 User Guide

Best Regards!

Chavira

0 Kudos
Reply

2,163 Views
nehageorge
Contributor I

In the following directory I executed make menuconfig:

~/flexbuild_lsdk2108_github/build/linux/linux/arm64/LS/output/LSDK-21.08

and enabled CFG80211 module. But the .config file in the directory does not reflect this change. it still contains the line:

# CONFIG_CFG80211 is not set

 What can we do to resolve this and get this module enabled?

0 Kudos
Reply

2,153 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @nehageorge!

How to add new app component in Flexbuild


1. Add "<app_name>: y" under CONFIG_APP and configure the new repo url/branch/tag in configs/sdk.yml, user can locally create the new component Git repository in components/apps/<subsystem>/<component> directory before the new Git
repo is ready to download from remote Git server.

2. Add makefile build object support for the new component in packages/apps/<subsystem>/<component>.mk.

3. Run 'flex-builder -c <component> -r <distro_type:distro_scale>' command to build new component against the specified target rootfs.

4. Run 'flex-builder -i merge-component -r <distro_type:distro_scale>' to merger new component package into the target rootfs.

5. Run 'flex-builder -i packrfs -r <distro_type:distro_scale>' to pack the target rootfs.
(Note: '-r ubuntu:main -a arm64' is used by default if unspecified

0 Kudos
Reply