Patchwork [1/4] classes/populate_sdk_base.bbclass: add a manifest for target sdk

login
register
mail settings
Submitter Corneliu Stoicescu
Date Aug. 26, 2014, 10:05 a.m.
Message ID <1409047544-7026-2-git-send-email-corneliux.stoicescu@intel.com>
Download mbox | patch
Permalink /patch/78955/
State Accepted
Commit 475e9762727a5c6b7cfe4c6bf248f050fe107533
Headers show

Comments

Corneliu Stoicescu - Aug. 26, 2014, 10:05 a.m.
Similar to the way BSP images have rootfs a manifest, the toolchain now also has a manifest file created alongside the sdk image.

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
---
 meta/classes/populate_sdk_base.bbclass | 12 ++++++++++++
 1 file changed, 12 insertions(+)

Patch

diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass
index 9e3bd61..db64d3a 100644
--- a/meta/classes/populate_sdk_base.bbclass
+++ b/meta/classes/populate_sdk_base.bbclass
@@ -52,6 +52,18 @@  EXCLUDE_FROM_WORLD = "1"
 
 SDK_PACKAGING_FUNC ?= "create_shar"
 
+SDK_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.manifest"
+python write_target_sdk_manifest () {
+    from oe.sdk import sdk_list_installed_packages
+    sdkmanifestdir = os.path.dirname(d.getVar("SDK_MANIFEST", True))
+    if not os.path.exists(sdkmanifestdir):
+        bb.utils.mkdirhier(sdkmanifestdir)
+    with open(d.getVar('SDK_MANIFEST', True), 'w') as output:
+        output.write(sdk_list_installed_packages(d, True, 'ver'))
+}
+
+POPULATE_SDK_POST_TARGET_COMMAND_append = " write_target_sdk_manifest ; "
+
 fakeroot python do_populate_sdk() {
     from oe.sdk import populate_sdk
     from oe.manifest import create_manifest, Manifest