Adding packages to the SDKs

The Yocto build system will automatically include in the target sysroot all the libraries and header files that are needed to build the applications running in the target. Extra packages can be added to the target sysroot by appending them to the TOOLCHAIN_TARGET_TASK variable. For example, you can selectively add only the static libraries you need to the toolchain by adding them as follows in your image recipe or conf/local.conf file:

TOOLCHAIN_TARGET_TASK_append = " libc-staticdev" 

To add a native package to the host sysroot in the SDK, two things are needed:

  1. The package needs to inherit the nativesdk class, and usually the native class too, by doing the following:
BBCLASSEXTEND = "native nativesdk" 
  1. The package needs to be added to the TOOLCHAIN_HOST_TASK variable, for example, by appending the nativesdk-packagegroup-sdk-host recipe, which is added to it by default, as follows:
RDEPENDS_${PN} += "                                                              
    nativesdk-<packagename>                                                           
"       
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset