summaryrefslogtreecommitdiffstats
path: root/meta/classes/populate_sdk_base.bbclass
diff options
context:
space:
mode:
authorMariano Lopez <mariano.lopez@linux.intel.com>2016-01-18 14:33:06 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-20 17:07:15 +0000
commit6ebda8e659f678a0f4fe1e970d6f38e5e273f5f7 (patch)
tree3f3a48a5798b58defdfc9c812705da0bf7fd40fb /meta/classes/populate_sdk_base.bbclass
parent03075f671c5425f08669f10f30330c4880c0d60a (diff)
downloadpoky-6ebda8e659f678a0f4fe1e970d6f38e5e273f5f7.tar.gz
lib/oe/rootfs: Use list_pkgs() instead of list()
This patch changes the use list_pkgs() instead of list() from class RpmPkgsList. The change is in two functions, image_list_installed_packages from rootfs.py and sdk_list_installed_packages from sdk.py. With this change the functions calling the functions listed above, must format the output as they required. The formatting can be done using format_pkg_list() from oe.utils. The classes calling the afected functions are changed too with this patch, to keep the same functionality using the new data structure. [YOCTO #7427] (From OE-Core rev: 983ea373362514e5888bd1d7d9c4f136c94b00f2) Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/populate_sdk_base.bbclass')
-rw-r--r--meta/classes/populate_sdk_base.bbclass8
1 files changed, 6 insertions, 2 deletions
diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass
index 7ca1df67a2..99b64f7429 100644
--- a/meta/classes/populate_sdk_base.bbclass
+++ b/meta/classes/populate_sdk_base.bbclass
@@ -62,20 +62,24 @@ SDK_TARGET_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.target.manifest"
62SDK_HOST_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.host.manifest" 62SDK_HOST_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.host.manifest"
63python write_target_sdk_manifest () { 63python write_target_sdk_manifest () {
64 from oe.sdk import sdk_list_installed_packages 64 from oe.sdk import sdk_list_installed_packages
65 from oe.utils import format_pkg_list
65 sdkmanifestdir = os.path.dirname(d.getVar("SDK_TARGET_MANIFEST", True)) 66 sdkmanifestdir = os.path.dirname(d.getVar("SDK_TARGET_MANIFEST", True))
67 pkgs = sdk_list_installed_packages(d, True)
66 if not os.path.exists(sdkmanifestdir): 68 if not os.path.exists(sdkmanifestdir):
67 bb.utils.mkdirhier(sdkmanifestdir) 69 bb.utils.mkdirhier(sdkmanifestdir)
68 with open(d.getVar('SDK_TARGET_MANIFEST', True), 'w') as output: 70 with open(d.getVar('SDK_TARGET_MANIFEST', True), 'w') as output:
69 output.write(sdk_list_installed_packages(d, True, 'ver')) 71 output.write(format_pkg_list(pkgs, 'ver'))
70} 72}
71 73
72python write_host_sdk_manifest () { 74python write_host_sdk_manifest () {
73 from oe.sdk import sdk_list_installed_packages 75 from oe.sdk import sdk_list_installed_packages
76 from oe.utils import format_pkg_list
74 sdkmanifestdir = os.path.dirname(d.getVar("SDK_HOST_MANIFEST", True)) 77 sdkmanifestdir = os.path.dirname(d.getVar("SDK_HOST_MANIFEST", True))
78 pkgs = sdk_list_installed_packages(d, False)
75 if not os.path.exists(sdkmanifestdir): 79 if not os.path.exists(sdkmanifestdir):
76 bb.utils.mkdirhier(sdkmanifestdir) 80 bb.utils.mkdirhier(sdkmanifestdir)
77 with open(d.getVar('SDK_HOST_MANIFEST', True), 'w') as output: 81 with open(d.getVar('SDK_HOST_MANIFEST', True), 'w') as output:
78 output.write(sdk_list_installed_packages(d, False, 'ver')) 82 output.write(format_pkg_list(pkgs, 'ver'))
79} 83}
80 84
81POPULATE_SDK_POST_TARGET_COMMAND_append = " write_target_sdk_manifest ; " 85POPULATE_SDK_POST_TARGET_COMMAND_append = " write_target_sdk_manifest ; "