summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorneliu Stoicescu <corneliux.stoicescu@intel.com>2014-08-26 13:05:41 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-08-27 12:12:31 +0100
commit475e9762727a5c6b7cfe4c6bf248f050fe107533 (patch)
tree4382eb0eead44ef7297493d372f8fe13d40a665d
parent30c22a35d6be996ff607ea4c90d199eef80a47cd (diff)
downloadpoky-475e9762727a5c6b7cfe4c6bf248f050fe107533.tar.gz
classes/populate_sdk_base.bbclass: add a manifest for target sdk
Similar to the way BSP images have rootfs a manifest, the toolchain now also has a manifest file created alongside the sdk image. (From OE-Core rev: 3d42fd1f050a1382b15c3c4d59fd02d0ed7091b2) Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/populate_sdk_base.bbclass12
1 files changed, 12 insertions, 0 deletions
diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass
index 9e3bd61925..db64d3abc8 100644
--- a/meta/classes/populate_sdk_base.bbclass
+++ b/meta/classes/populate_sdk_base.bbclass
@@ -52,6 +52,18 @@ EXCLUDE_FROM_WORLD = "1"
52 52
53SDK_PACKAGING_FUNC ?= "create_shar" 53SDK_PACKAGING_FUNC ?= "create_shar"
54 54
55SDK_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.manifest"
56python write_target_sdk_manifest () {
57 from oe.sdk import sdk_list_installed_packages
58 sdkmanifestdir = os.path.dirname(d.getVar("SDK_MANIFEST", True))
59 if not os.path.exists(sdkmanifestdir):
60 bb.utils.mkdirhier(sdkmanifestdir)
61 with open(d.getVar('SDK_MANIFEST', True), 'w') as output:
62 output.write(sdk_list_installed_packages(d, True, 'ver'))
63}
64
65POPULATE_SDK_POST_TARGET_COMMAND_append = " write_target_sdk_manifest ; "
66
55fakeroot python do_populate_sdk() { 67fakeroot python do_populate_sdk() {
56 from oe.sdk import populate_sdk 68 from oe.sdk import populate_sdk
57 from oe.manifest import create_manifest, Manifest 69 from oe.manifest import create_manifest, Manifest