summaryrefslogtreecommitdiffstats
path: root/meta/classes-global/package.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2023-01-04 14:20:37 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-01-05 11:52:50 +0000
commit99de12f152413c1cb942eac26082d6795a285151 (patch)
tree550adb431fcc2b979fa07fa58eca5542192c37ab /meta/classes-global/package.bbclass
parentab8c9d503eca4cbb4e72d17a3418de222c34d305 (diff)
downloadpoky-99de12f152413c1cb942eac26082d6795a285151.tar.gz
package: Move mapping_rename_hook to packagedata function library
This function is used by the packaging tasks/classes and makes much more sense in the packagedata function library. (From OE-Core rev: 7a512a8803101310772d83836e6b78ebaf8121de) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-global/package.bbclass')
-rw-r--r--meta/classes-global/package.bbclass13
1 files changed, 0 insertions, 13 deletions
diff --git a/meta/classes-global/package.bbclass b/meta/classes-global/package.bbclass
index 5c250776f8..d334da6fb3 100644
--- a/meta/classes-global/package.bbclass
+++ b/meta/classes-global/package.bbclass
@@ -607,16 +607,3 @@ python do_packagedata_setscene () {
607} 607}
608addtask do_packagedata_setscene 608addtask do_packagedata_setscene
609 609
610#
611# Helper functions for the package writing classes
612#
613
614def mapping_rename_hook(d):
615 """
616 Rewrite variables to account for package renaming in things
617 like debian.bbclass or manual PKG variable name changes
618 """
619 pkg = d.getVar("PKG")
620 oe.packagedata.runtime_mapping_rename("RDEPENDS", pkg, d)
621 oe.packagedata.runtime_mapping_rename("RRECOMMENDS", pkg, d)
622 oe.packagedata.runtime_mapping_rename("RSUGGESTS", pkg, d)