Hello @Edward,
These packages are not necessarily useless.
You can define what you need or not by the “EXTRA_IMAGE_FEATURES” on your local.conf:
#
# Extra image configuration defaults
#
# The EXTRA_IMAGE_FEATURES variable allows extra packages to be added to the generated
# images. Some of these options are added to certain image types automatically. The
# variable can contain the following options:
# "dbg-pkgs" - add -dbg packages for all installed packages
# (adds symbol information for debugging/profiling)
# "src-pkgs" - add -src packages for all installed packages
# (adds source code for debugging)
# "dev-pkgs" - add -dev packages for all installed packages
# (useful if you want to develop against libs in the image)
# "ptest-pkgs" - add -ptest packages for all ptest-enabled packages
# (useful if you want to run the package test suites)
# "tools-sdk" - add development tools (gcc, make, pkgconfig etc.)
# "tools-debug" - add debugging tools (gdb, strace)
# "eclipse-debug" - add Eclipse remote debugging support
# "tools-profile" - add profiling tools (oprofile, lttng, valgrind)
# "tools-testapps" - add useful testing tools (ts_print, aplay, arecord etc.)
# "debug-tweaks" - make an image suitable for development
# e.g. ssh root access has a blank password
# There are other application targets that can be used here too, see
# meta/classes/image.bbclass and meta/classes/core-image.bbclass for more details.
# We default to enabling the debugging tweaks.
# package-management deploys the package meta data of deployed packeges
EXTRA_IMAGE_FEATURES ?= "debug-tweaks package-management"
So, in your case, you can add the dev-pkgs on it.
Also… judging by your response, you need to have static libraries generated by Yocto, right?
If that is the point, you can do that by adding staticdev-pkgs
to EXTRA_IMAGE_FEATURES as well.
Either way, It’s not advisable to compile things on target, if that is what you are trying to do.
You’ll end up with a huge image, plus the computational overhead of the compilation on the target itself.
The best approach is to generate a SDK with your environment, configuring the required kind of pkgs through SDKIMAGE_FEATURES_append on local.conf, plus executing:
bitbake my-image -fc populate_sdk
Then, you use this SDK as a reference for development on your host machine, for cross-compiling your app to be deployed to your target.
Best regards,
André Curvello