mirror of
https://git.yoctoproject.org/poky
synced 2026-05-04 22:39:49 +02:00
populate_sdk_base: also record the host part into manifest
For now, we can create manifest for the target part for SDK. I think it's nice to have a place for users to look into to examine contents of the host part of SDK. This also affects uninative-tarball and buildtools-tarball as they inherit populate_sdk.bbclass. After this change, we could have a manifest file created in the deploy directory containing a list of packages used to construct them. [YOCTO #7604] (From OE-Core rev: 3069641589942f52b11e88cfea564ebba4beb3c2) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -56,17 +56,28 @@ SDK_RELOCATE_AFTER_INSTALL ?= "1"
|
||||
|
||||
SDK_TITLE ?= "${@d.getVar('DISTRO_NAME', True) or d.getVar('DISTRO', True)} SDK"
|
||||
|
||||
SDK_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.manifest"
|
||||
SDK_TARGET_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.target.manifest"
|
||||
SDK_HOST_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.host.manifest"
|
||||
python write_target_sdk_manifest () {
|
||||
from oe.sdk import sdk_list_installed_packages
|
||||
sdkmanifestdir = os.path.dirname(d.getVar("SDK_MANIFEST", True))
|
||||
sdkmanifestdir = os.path.dirname(d.getVar("SDK_TARGET_MANIFEST", True))
|
||||
if not os.path.exists(sdkmanifestdir):
|
||||
bb.utils.mkdirhier(sdkmanifestdir)
|
||||
with open(d.getVar('SDK_MANIFEST', True), 'w') as output:
|
||||
with open(d.getVar('SDK_TARGET_MANIFEST', True), 'w') as output:
|
||||
output.write(sdk_list_installed_packages(d, True, 'ver'))
|
||||
}
|
||||
|
||||
python write_host_sdk_manifest () {
|
||||
from oe.sdk import sdk_list_installed_packages
|
||||
sdkmanifestdir = os.path.dirname(d.getVar("SDK_HOST_MANIFEST", True))
|
||||
if not os.path.exists(sdkmanifestdir):
|
||||
bb.utils.mkdirhier(sdkmanifestdir)
|
||||
with open(d.getVar('SDK_HOST_MANIFEST', True), 'w') as output:
|
||||
output.write(sdk_list_installed_packages(d, False, 'ver'))
|
||||
}
|
||||
|
||||
POPULATE_SDK_POST_TARGET_COMMAND_append = " write_target_sdk_manifest ; "
|
||||
POPULATE_SDK_POST_HOST_COMMAND_append = " write_host_sdk_manifest; "
|
||||
|
||||
fakeroot python do_populate_sdk() {
|
||||
from oe.sdk import populate_sdk
|
||||
|
||||
Reference in New Issue
Block a user