[oe-commits] Thomas Kristensen : populate_sdk_base.bbclass: Make it possible to override the create_shar method of populate_sdk_base.

git at git.openembedded.org git at git.openembedded.org
Thu Oct 11 13:17:30 UTC 2012


Module: openembedded-core.git
Branch: master-next
Commit: 7d92d082e796110ba583b1a155bad11db3c7344b
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=7d92d082e796110ba583b1a155bad11db3c7344b

Author: Thomas Kristensen <thkriste at cisco.com>
Date:   Mon Oct  8 12:43:50 2012 +0200

populate_sdk_base.bbclass: Make it possible to override the create_shar method of populate_sdk_base.

If you wish to change the install/unpack method of the sdk, this can now be done by making
your own create_shar method, and setting a SDK_PACKAGING_FUNC variable to your
new create_shar function.

Signed-off-by: Thomas Kristensen <thkriste at cisco.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>

---

 meta/classes/populate_sdk_base.bbclass |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass
index 6eb6726..a914a2c 100644
--- a/meta/classes/populate_sdk_base.bbclass
+++ b/meta/classes/populate_sdk_base.bbclass
@@ -24,6 +24,8 @@ PID = "${@os.getpid()}"
 
 EXCLUDE_FROM_WORLD = "1"
 
+SDK_PACKAGING_FUNC ?= "create_shar"
+
 python () {
     # If we don't do this we try and run the mapping hooks while parsing which is slow
     # bitbake should really provide something to let us know this...
@@ -56,7 +58,7 @@ fakeroot python do_populate_sdk() {
 
     bb.build.exec_func("tar_sdk", d)
 
-    bb.build.exec_func("create_shar", d)
+    bb.build.exec_func(d.getVar("SDK_PACKAGING_FUNC", True), d)
 }
 
 fakeroot populate_sdk_image() {





More information about the Openembedded-commits mailing list