.Ipk deployment recipe for other developers

I have a recipe (say my_package_1.0.bb) that builds libraries and populates sysroot with the libraries and headers I need for development. I also see that .ipk for my package is being created in the build / tmp / deploy / ipk / file.

My requirement: I want to share the libraries, headers and the recipe that deploys them in my client sysroot directory (for their development), but not in the sources for my package. What is the best way to handle this?

Is there a way to share the .ipk file and some recipe for installing .ipk?

PS: the client intends to develop applications using the interfaces in my header and libraries. the client has not licensed sources for my package.

+4
source share
1 answer

using OPKGto install the package you created .ipk.

Start by creating a Yocto Linux image using the program OPKGandpackage-management

In conf/local.conf add them, in particular package-managementin EXTRA_IMAGE_FEATURESand OPKGin IMAGE_INSTALL_append.

PACKAGE_CLASSES ?= "package_rpm package_ipk"
EXTRA_IMAGE_FEATURES = "debug-tweaks ssh-server-openssh package-management"
IMAGE_INSTALL_append = " opkg "

After creating the image, create the package manifest:

bitbake package-index

Create a server apache2, for example. And bind your ipk to this server:

sudo apt-get install apache2

sudo ln -s /path/to/build-x11/tmp/deploy/ipk /var/www/html/my-repo

Configure and test OPKG with reate file opkg.confin/etc/opkg/

Change opkg.conf to the following: Note. Replace 192.168.0.102 with the IP address of the build station (the apache2 server you are using); eg

src/gz all http://192.168.0.102/all
src/gz cortexa9hf-vfp-neon-mx6 http://192.168.0.102/cortexa9hf-vfp-neon-mx6
src/gz cortexa9hf-vfp-neon http://192.168.0.102/cortexa9hf-vfp-neon

Test OPKG

opkg
opkg update
opkg upgrade
opkg install my_package

Youtube Tutorial

Documentation

+6

All Articles