summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Kristensen <thkriste@cisco.com>2012-10-08 12:43:50 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-10-18 12:13:40 +0100
commitbfa0fcdce944d521153e027f0ca0996fcee5b40f (patch)
tree648fb75f866d78c1370ce6c58484b2799d882aa1
parent7817d91970e204b8bc1b733b8a6dd86a48aa27be (diff)
downloadpoky-bfa0fcdce944d521153e027f0ca0996fcee5b40f.tar.gz
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. (From OE-Core rev: 3955c8eced352226bb4c9ceb710dbe02474b9024) Signed-off-by: Thomas Kristensen <thkriste@cisco.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/populate_sdk_base.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass
index 6eb6726033..a914a2c273 100644
--- a/meta/classes/populate_sdk_base.bbclass
+++ b/meta/classes/populate_sdk_base.bbclass
@@ -24,6 +24,8 @@ PID = "${@os.getpid()}"
24 24
25EXCLUDE_FROM_WORLD = "1" 25EXCLUDE_FROM_WORLD = "1"
26 26
27SDK_PACKAGING_FUNC ?= "create_shar"
28
27python () { 29python () {
28 # If we don't do this we try and run the mapping hooks while parsing which is slow 30 # If we don't do this we try and run the mapping hooks while parsing which is slow
29 # bitbake should really provide something to let us know this... 31 # bitbake should really provide something to let us know this...
@@ -56,7 +58,7 @@ fakeroot python do_populate_sdk() {
56 58
57 bb.build.exec_func("tar_sdk", d) 59 bb.build.exec_func("tar_sdk", d)
58 60
59 bb.build.exec_func("create_shar", d) 61 bb.build.exec_func(d.getVar("SDK_PACKAGING_FUNC", True), d)
60} 62}
61 63
62fakeroot populate_sdk_image() { 64fakeroot populate_sdk_image() {