diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-03-23 17:36:53 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-03-23 17:40:27 +0000 |
commit | 554e3d254075a75a0ce8e114ab5144fff5440440 (patch) | |
tree | 88a17bb63d4d4261352cfd9e10bb74131929005a /meta/classes/populate_sdk_rpm.bbclass | |
parent | 3fff11a7fc0449bf927bcc79773f37dee32e51f1 (diff) | |
download | poky-554e3d254075a75a0ce8e114ab5144fff5440440.tar.gz |
package/populate_sdk: Move functions from package_* to populate_sdk_*
This fixes build failures introduced with "classes/buildhistory: implement history
collection for SDK" by moving the functions to files where only the specific image
type which is enabled is inherited. The failures occured when multiple PACKAGE_CLASSES
were enabled.
(From OE-Core rev: 9a414a57ad69a426a8d8a2970c42ca7427240615)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/populate_sdk_rpm.bbclass')
-rw-r--r-- | meta/classes/populate_sdk_rpm.bbclass | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/meta/classes/populate_sdk_rpm.bbclass b/meta/classes/populate_sdk_rpm.bbclass index bbee35eab5..219cd185ce 100644 --- a/meta/classes/populate_sdk_rpm.bbclass +++ b/meta/classes/populate_sdk_rpm.bbclass | |||
@@ -155,3 +155,18 @@ python () { | |||
155 | d.setVar('MULTILIB_OS_LIST', ml_os_list) | 155 | d.setVar('MULTILIB_OS_LIST', ml_os_list) |
156 | } | 156 | } |
157 | 157 | ||
158 | RPM_QUERY_CMD = '${RPM} --root $INSTALL_ROOTFS_RPM -D "_dbpath ${rpmlibdir}"' | ||
159 | |||
160 | list_installed_packages() { | ||
161 | if [ "$1" = "arch" ]; then | ||
162 | ${RPM_QUERY_CMD} -qa --qf "[%{NAME} %{ARCH}\n]" | translate_smart_to_oe arch | ||
163 | elif [ "$1" = "file" ]; then | ||
164 | ${RPM_QUERY_CMD} -qa --qf "[%{NAME} %{ARCH} %{PACKAGEORIGIN}\n]" | translate_smart_to_oe | ||
165 | else | ||
166 | ${RPM_QUERY_CMD} -qa --qf "[%{NAME} %{ARCH}\n]" | translate_smart_to_oe | ||
167 | fi | ||
168 | } | ||
169 | |||
170 | rootfs_list_installed_depends() { | ||
171 | rpmresolve -t $INSTALL_ROOTFS_RPM/${rpmlibdir} | ||
172 | } | ||