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>
This commit is contained in:
Corneliu Stoicescu 2014-08-26 13:05:41 +03:00 committed by Richard Purdie
parent 30c22a35d6
commit 475e976272
1 changed files with 12 additions and 0 deletions

View File

@ -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