From patchwork Wed Oct 3 12:51:15 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: populate_sdk_base.bbclass: Make it possible to overrise the create_shar method of populate_sdk_base. Date: Wed, 03 Oct 2012 12:51:15 -0000 From: Martin Ertsaas X-Patchwork-Id: 37699 Message-Id: <1349268675-7808-1-git-send-email-mertsas@cisco.com> To: openembedded-core@lists.openembedded.org Cc: Thomas Kristensen From: Thomas Kristensen 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 POPULATE_SDK_CREATE_SHAR_COMMAND variable to your new create_shar function. Signed-off-by: Thomas Kristensen Signed-off-by: Martin Ertsaas --- 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 1c151d7..53b11a3 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" +POPULATE_SDK_CREATE_SHAR_COMMAND ?= "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("POPULATE_SDK_CREATE_SHAR_COMMAND", True), d) } fakeroot populate_sdk_image() {