Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] Add new IMAGE_CLASSES variable for classes for image generation
@ 2011-10-28  7:26 Matthew McClintock
  2011-11-02  0:31 ` Saul Wold
  0 siblings, 1 reply; 10+ messages in thread
From: Matthew McClintock @ 2011-10-28  7:26 UTC (permalink / raw)
  To: openembedded-core

Allows us to import classes only for images and not to the global
namespace

Signed-off-by: Matthew McClintock <msm@freescale.com>
---
This is a resend

 meta-yocto/conf/local.conf.sample |    6 ++++++
 meta/classes/image.bbclass        |    3 ++-
 2 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/meta-yocto/conf/local.conf.sample b/meta-yocto/conf/local.conf.sample
index da3f8df..5e59ad4 100644
--- a/meta-yocto/conf/local.conf.sample
+++ b/meta-yocto/conf/local.conf.sample
@@ -163,6 +163,12 @@ EXTRA_IMAGE_FEATURES = "debug-tweaks"
 # NOTE: mklibs also needs to be explicitly enabled for a given image, see local.conf.extended
 USER_CLASSES ?= "image-mklibs image-prelink"
 
+# Additional image generation features
+#
+# The following is a list of classes to import to use in the generation of images
+# currently an example class is image_types_uboot
+# IMAGE_CLASSES ?= "image_types_uboot"
+
 #
 # Runtime testing of images
 #
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 05f4331..e932879 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -111,7 +111,8 @@ def get_devtable_list(d):
         str += " %s" % bb.which(bb.data.getVar('BBPATH', d, 1), devtable)
     return str
 
-inherit image_types
+IMAGE_CLASSES = "image_types"
+inherit ${IMAGE_CLASSES}
 
 IMAGE_POSTPROCESS_COMMAND ?= ""
 MACHINE_POSTPROCESS_COMMAND ?= ""
-- 
1.7.6.1





^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-11-08 23:08 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-28  7:26 [PATCH] Add new IMAGE_CLASSES variable for classes for image generation Matthew McClintock
2011-11-02  0:31 ` Saul Wold
2011-11-02  0:50   ` McClintock Matthew-B29882
2011-11-02  0:54     ` McClintock Matthew-B29882
2011-11-02  0:56     ` Saul Wold
2011-11-02 15:03       ` McClintock Matthew-B29882
2011-11-02 16:25         ` [PATCH v2] " Matthew McClintock
2011-11-07 19:07           ` Saul Wold
2011-11-07 19:20             ` [PATCH v3] " Matthew McClintock
2011-11-08 23:01               ` Saul Wold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox