Enable the ability to create an image matching SDK
v3 cover Enable the ability to create an image matching SDK
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
Signature · 1 line
1.7.3.4
PATCH v3 7/7 base.bbclass: Add cross-canadian-${TRANSLATED_TARGET_ARCH} to the license exclusion list
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.
--- meta/classes/base.bbclass | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
meta/classes/base.bbclass +1 -1
@@ -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)
Signature · 1 line
1.7.3.4
Saul Wold
AppliedQuoted 51 lines · Mark Hatle
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_sdkExisting 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-contribmhatle/sdk
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=mhatle/sdkMark 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 listmeta/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(-)
Quoted 2 lines
create mode 100644 meta/classes/populate_sdk_base.bbclass
Merged into OE-Core
Thanks
Sau!