Patchwork [CONSOLIDATED,PULL,11/17] Add new IMAGE_CLASSES variable for classes for image generation

login
register
mail settings
Submitter Saul Wold
Date Nov. 8, 2011, 7:22 p.m.
Message ID <49dcb301ab39327554d86d23cf6f8d435d7a7351.1320780004.git.sgw@linux.intel.com>
Download mbox | patch
Permalink /patch/14555/
State Accepted
Commit 49dcb301ab39327554d86d23cf6f8d435d7a7351
Headers show

Comments

Saul Wold - Nov. 8, 2011, 7:22 p.m.
From: Matthew McClintock <msm@freescale.com>

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

Signed-off-by: Matthew McClintock <msm@freescale.com>
---
 meta/classes/image.bbclass           |    3 ++-
 meta/conf/local.conf.sample.extended |    6 ++++++
 2 files changed, 8 insertions(+), 1 deletions(-)

Patch

diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 48b78da..14726d2 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -109,7 +109,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 ?= ""
diff --git a/meta/conf/local.conf.sample.extended b/meta/conf/local.conf.sample.extended
index 0c3197d..e9935ce 100644
--- a/meta/conf/local.conf.sample.extended
+++ b/meta/conf/local.conf.sample.extended
@@ -114,3 +114,9 @@ 
 # The network based PR service host and port
 #PRSERV_HOST = "localhost"
 #PRSERV_PORT = "8585"
+
+# 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"