Whichever PMS you are using, you need to be sure that the
PACKAGE_CLASSES
variable in the conf/local.conf
file is set to reflect that system.
The first value you choose for the variable specifies the package file format for the root
filesystem at sysroot.
Additional values specify additional formats for convenience or testing.
See the conf/local.conf
configuration file for
details.
package.bbclass
"
section in the Yocto Project Reference Manual.
As an example, consider a scenario where you are using OPKG and you want to add
the libglade
package to the target sysroot.
First, you should generate the IPK file for the
libglade
package and add it
into a working opkg
repository.
Use these commands:
$ bitbake libglade $ bitbake package-index
Next, source the cross-toolchain environment setup script found in the
Source Directory.
Follow that by setting up the installation destination to point to your
sysroot as sysroot_dir
.
Finally, have an OPKG configuration file conf_file
that corresponds to the opkg
repository you have just created.
The following command forms should now work:
$ opkg-cl –fconf_file
-osysroot_dir
update $ opkg-cl –fcconf_file
-osysroot_dir
\ --force-overwrite install libglade $ opkg-cl –fcconf_file
-osysroot_dir
\ --force-overwrite install libglade-dbg $ opkg-cl –fconf_file> -o
sysroot_dir> \ --force-overwrite install libglade-dev