summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe/image.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2023-01-04 13:18:03 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-01-05 11:52:50 +0000
commita099ed2125fbd822342b7fc124e3c659b26d29c9 (patch)
treed62cbc302f02f2e692acfc61cc7f0fad0d7bab81 /meta/classes-recipe/image.bbclass
parent93be2cdf492e1ec3d3c13f9c2ce82346be323da6 (diff)
downloadpoky-a099ed2125fbd822342b7fc124e3c659b26d29c9.tar.gz
package: Move pkgdata handling functions to oe.packagedata
To avoid reparsing the bbclass code all the time, move the functions to the packagedata python function library code which is more efficient. (From OE-Core rev: f520a3039540b1183b1b2bdaaf8b9195995c0187) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe/image.bbclass')
-rw-r--r--meta/classes-recipe/image.bbclass7
1 files changed, 4 insertions, 3 deletions
diff --git a/meta/classes-recipe/image.bbclass b/meta/classes-recipe/image.bbclass
index e387645503..a06c9f544d 100644
--- a/meta/classes-recipe/image.bbclass
+++ b/meta/classes-recipe/image.bbclass
@@ -203,6 +203,7 @@ fakeroot python do_rootfs () {
203 from oe.rootfs import create_rootfs 203 from oe.rootfs import create_rootfs
204 from oe.manifest import create_manifest 204 from oe.manifest import create_manifest
205 import logging 205 import logging
206 import oe.packagedata
206 207
207 logger = d.getVar('BB_TASK_LOGGER', False) 208 logger = d.getVar('BB_TASK_LOGGER', False)
208 if logger: 209 if logger:
@@ -247,9 +248,9 @@ fakeroot python do_rootfs () {
247 # otherwise, the multilib renaming could step in and squash any fixups that 248 # otherwise, the multilib renaming could step in and squash any fixups that
248 # may have occurred. 249 # may have occurred.
249 pn = d.getVar('PN') 250 pn = d.getVar('PN')
250 runtime_mapping_rename("PACKAGE_INSTALL", pn, d) 251 oe.packagedata.runtime_mapping_rename("PACKAGE_INSTALL", pn, d)
251 runtime_mapping_rename("PACKAGE_INSTALL_ATTEMPTONLY", pn, d) 252 oe.packagedata.runtime_mapping_rename("PACKAGE_INSTALL_ATTEMPTONLY", pn, d)
252 runtime_mapping_rename("BAD_RECOMMENDATIONS", pn, d) 253 oe.packagedata.runtime_mapping_rename("BAD_RECOMMENDATIONS", pn, d)
253 254
254 # Generate the initial manifest 255 # Generate the initial manifest
255 create_manifest(d) 256 create_manifest(d)