[oe] [PATCH] image, rootfs_ipk: implement IMAGE_FEATURES

Marcin Juszkiewicz marcin at juszkiewicz.com.pl
Tue Jan 26 15:53:37 UTC 2010


Dnia wtorek, 19 stycznia 2010 o 22:56:27 Chris Larson napisał(a):
> This adds the ability to include groups of packages in an image.  It is
> similar in concept to the IMAGE_FEATURES used in Poky, but here we use
> IMAGE_FEATURE_<feature> and IMAGE_FEATURE_<feature>_OPTIONAL, rather than
> base_contains calls.
> 
> Initially defined groups:
> base - the packages requested via IMAGE_INSTALL & IMAGE_VARS
> dbg - debug packages
> dev - development packages
> doc - documentation packages (of limited use at the moment due to
>  task.bbclass) vmlinux - kernel debugging packages (just kernel-vmlinux at
>  the moment)
> 
> To add one of these to an image, you can either append to IMAGE_FEATURES or
>  override IMAGE_FEATURES.
> 
> Examples:
> IMAGE_FEATURES_append = " dbg"
> 
> IMAGE_FEATURES = "base dbg vmlinux"
> 
> To add a new package group:
> IMAGE_FEATURE_myfeature = "gstreamer python pulseaudio"

I like idea of that. Few days ago one developer asked me how to prepare rootfs 
with all debug symbols so he could use gdb-cross/gdbserver combo to debug 
something on device. With this code I can just generate normal + debug rootfs 
in one go (bitbake bug-image-production bug-image-production-debug).

Regards, 
-- 
JID:      hrw at jabber.org
Website:  http://marcin.juszkiewicz.com.pl/
LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz






More information about the Openembedded-devel mailing list