Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/7 v3] Enable the ability to create an image matching SDK
@ 2012-07-02 20:50 Mark Hatle
  2012-07-02 20:50 ` [PATCH 7/7] base.bbclass: Add cross-canadian-${TRANSLATED_TARGET_ARCH} to the license exclusion list Mark Hatle
  2012-07-03 17:41 ` [PATCH 0/7 v3] Enable the ability to create an image matching SDK Saul Wold
  0 siblings, 2 replies; 3+ messages in thread
From: Mark Hatle @ 2012-07-02 20:50 UTC (permalink / raw)
  To: openembedded-core

Rebased and patch 7/7 added to correct an oversight in base.bbclass.

--- v2

Only difference is patch 1/6, I accidently sent and older broken version of the
patch.  This is the correct version.

--- v1

After this series of patches, it is possible to generate an SDK that 
matches the image.  The SDK and all related code is only activated if an image
recipe is built using the "populate_sdk" task, such as:

bitbake core-image-sato -c populate_sdk

Existing SDK images, such as meta-toolchain or meta-toolchain-gmae continue to
work without modifications.

The following changes since commit 64422f7c5da160050a5454817c8fa9d070104b34:

  package.bbclass: Add missing PKGR, PKGV, PKGE and ALTERNATIVE variables from PACKAGEVARS (2012-07-02 16:44:57 +0100)

are available in the git repository at:
  git://git.pokylinux.org/poky-contrib mhatle/sdk
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=mhatle/sdk

Mark Hatle (7):
  Fix manual log file paths
  populate_sdk.bbclass: Split into two parts
  populate_sdk: Allow for attempt only packages in the SDK
  populate_sdk_base.bbclass: Change to using task specific depends
  populate_sdk: enable basic multilib support
  image.bbclass: Add support to build the SDK in parallel with the
    image
  base.bbclass: Add cross-canadian-${TRANSLATED_TARGET_ARCH} to the
    license exclusion list

 meta/classes/base.bbclass              |    2 +-
 meta/classes/image.bbclass             |    7 ++-
 meta/classes/package_deb.bbclass       |    4 +-
 meta/classes/package_ipk.bbclass       |    2 +-
 meta/classes/package_rpm.bbclass       |   10 +-
 meta/classes/populate_sdk.bbclass      |   91 +---------------------
 meta/classes/populate_sdk_base.bbclass |  128 ++++++++++++++++++++++++++++++++
 meta/classes/populate_sdk_deb.bbclass  |    6 +-
 meta/classes/populate_sdk_ipk.bbclass  |    5 +-
 meta/classes/populate_sdk_rpm.bbclass  |    4 +-
 meta/classes/rootfs_deb.bbclass        |    2 +
 meta/classes/rootfs_ipk.bbclass        |    2 +
 meta/classes/toolchain-scripts.bbclass |   16 +++--
 13 files changed, 171 insertions(+), 108 deletions(-)
 create mode 100644 meta/classes/populate_sdk_base.bbclass

-- 
1.7.3.4




^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 7/7] base.bbclass: Add cross-canadian-${TRANSLATED_TARGET_ARCH} to the license exclusion list
  2012-07-02 20:50 [PATCH 0/7 v3] Enable the ability to create an image matching SDK Mark Hatle
@ 2012-07-02 20:50 ` Mark Hatle
  2012-07-03 17:41 ` [PATCH 0/7 v3] Enable the ability to create an image matching SDK Saul Wold
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Hatle @ 2012-07-02 20:50 UTC (permalink / raw)
  To: openembedded-core

This appears to be an oversight in the original implementation.  All of the
host package types were being ignored except for the SDK cross-canadian type.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
---
 meta/classes/base.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 9219170..08065c6 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -432,7 +432,7 @@ python () {
 
         dont_want_license = d.getVar('INCOMPATIBLE_LICENSE', True)
 
-        if dont_want_license and not pn.endswith("-native") and not pn.endswith("-cross") and not pn.endswith("-cross-initial") and not pn.endswith("-cross-intermediate") and not pn.endswith("-crosssdk-intermediate") and not pn.endswith("-crosssdk") and not pn.endswith("-crosssdk-initial") and not pn.endswith("-nativesdk"):
+        if dont_want_license and not pn.endswith("-native") and not pn.endswith("-cross") and not pn.endswith("-cross-initial") and not pn.endswith("-cross-intermediate") and not pn.endswith("-crosssdk-intermediate") and not pn.endswith("-crosssdk") and not pn.endswith("-crosssdk-initial") and not pn.endswith("-cross-canadian-%s" % d.getVar('TRANSLATED_TARGET_ARCH', True)) and not pn.endswith("-nativesdk"):
         # Internally, we'll use the license mapping. This way INCOMPATIBLE_LICENSE = "GPLv2" and
         # INCOMPATIBLE_LICENSE = "GPLv2.0" will pick up all variations of GPL-2.0
             spdx_license = return_spdx(d, dont_want_license)
-- 
1.7.3.4




^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 0/7 v3] Enable the ability to create an image matching SDK
  2012-07-02 20:50 [PATCH 0/7 v3] Enable the ability to create an image matching SDK Mark Hatle
  2012-07-02 20:50 ` [PATCH 7/7] base.bbclass: Add cross-canadian-${TRANSLATED_TARGET_ARCH} to the license exclusion list Mark Hatle
@ 2012-07-03 17:41 ` Saul Wold
  1 sibling, 0 replies; 3+ messages in thread
From: Saul Wold @ 2012-07-03 17:41 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On 07/02/2012 01:50 PM, Mark Hatle wrote:
> Rebased and patch 7/7 added to correct an oversight in base.bbclass.
>
> --- v2
>
> Only difference is patch 1/6, I accidently sent and older broken version of the
> patch.  This is the correct version.
>
> --- v1
>
> After this series of patches, it is possible to generate an SDK that
> matches the image.  The SDK and all related code is only activated if an image
> recipe is built using the "populate_sdk" task, such as:
>
> bitbake core-image-sato -c populate_sdk
>
> Existing SDK images, such as meta-toolchain or meta-toolchain-gmae continue to
> work without modifications.
>
> The following changes since commit 64422f7c5da160050a5454817c8fa9d070104b34:
>
>    package.bbclass: Add missing PKGR, PKGV, PKGE and ALTERNATIVE variables from PACKAGEVARS (2012-07-02 16:44:57 +0100)
>
> are available in the git repository at:
>    git://git.pokylinux.org/poky-contrib mhatle/sdk
>    http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=mhatle/sdk
>
> Mark Hatle (7):
>    Fix manual log file paths
>    populate_sdk.bbclass: Split into two parts
>    populate_sdk: Allow for attempt only packages in the SDK
>    populate_sdk_base.bbclass: Change to using task specific depends
>    populate_sdk: enable basic multilib support
>    image.bbclass: Add support to build the SDK in parallel with the
>      image
>    base.bbclass: Add cross-canadian-${TRANSLATED_TARGET_ARCH} to the
>      license exclusion list
>
>   meta/classes/base.bbclass              |    2 +-
>   meta/classes/image.bbclass             |    7 ++-
>   meta/classes/package_deb.bbclass       |    4 +-
>   meta/classes/package_ipk.bbclass       |    2 +-
>   meta/classes/package_rpm.bbclass       |   10 +-
>   meta/classes/populate_sdk.bbclass      |   91 +---------------------
>   meta/classes/populate_sdk_base.bbclass |  128 ++++++++++++++++++++++++++++++++
>   meta/classes/populate_sdk_deb.bbclass  |    6 +-
>   meta/classes/populate_sdk_ipk.bbclass  |    5 +-
>   meta/classes/populate_sdk_rpm.bbclass  |    4 +-
>   meta/classes/rootfs_deb.bbclass        |    2 +
>   meta/classes/rootfs_ipk.bbclass        |    2 +
>   meta/classes/toolchain-scripts.bbclass |   16 +++--
>   13 files changed, 171 insertions(+), 108 deletions(-)
>   create mode 100644 meta/classes/populate_sdk_base.bbclass
>

Merged into OE-Core

Thanks
	Sau!



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-07-03 17:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-02 20:50 [PATCH 0/7 v3] Enable the ability to create an image matching SDK Mark Hatle
2012-07-02 20:50 ` [PATCH 7/7] base.bbclass: Add cross-canadian-${TRANSLATED_TARGET_ARCH} to the license exclusion list Mark Hatle
2012-07-03 17:41 ` [PATCH 0/7 v3] Enable the ability to create an image matching SDK Saul Wold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox