From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga03.intel.com ([143.182.124.21]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1TOwbP-0005gp-He for openembedded-core@lists.openembedded.org; Thu, 18 Oct 2012 22:21:59 +0200 Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga101.ch.intel.com with ESMTP; 18 Oct 2012 13:08:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.80,608,1344236400"; d="scan'208";a="206225808" Received: from unknown (HELO [10.255.13.210]) ([10.255.13.210]) by azsmga001.ch.intel.com with ESMTP; 18 Oct 2012 13:08:21 -0700 Message-ID: <508061B5.4030900@linux.intel.com> Date: Thu, 18 Oct 2012 13:08:21 -0700 From: Saul Wold User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120911 Thunderbird/15.0.1 MIME-Version: 1.0 To: Martin Ertsaas References: <1349693030-31861-1-git-send-email-mertsas@cisco.com> In-Reply-To: <1349693030-31861-1-git-send-email-mertsas@cisco.com> Cc: Thomas Kristensen , openembedded-core@lists.openembedded.org Subject: Re: [[PATCH v3]] populate_sdk_base.bbclass: Make it possible to override the create_shar method of populate_sdk_base. X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Oct 2012 20:21:59 -0000 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 10/08/2012 03:43 AM, Martin Ertsaas wrote: > 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 SDK_PACKAGING_FUNC variable to your > new create_shar function. > > Signed-off-by: Thomas Kristensen > --- > 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..762ba12 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() { > Merged into OE-Core Thanks Sau!