summaryrefslogtreecommitdiffstats
path: root/meta/classes/package.bbclass
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2014-07-01 16:56:53 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-07-10 17:38:33 +0100
commit360171c8435242c6bfa87ca5b43a50737ae6d4d8 (patch)
treebd7675cbf2966b38b8f72e8f694e691864ba7bb4 /meta/classes/package.bbclass
parent28270fc8bfe7c4ddd0c5ef2b42a6620366ed8b32 (diff)
downloadpoky-360171c8435242c6bfa87ca5b43a50737ae6d4d8.tar.gz
package.bbclass: add a stub implementation of package_name_hook
do_package() calls package_name_hook so that e.g. debian-style renaming through debian.bbclass can happen. If there is no class providing a package_name_hook then this causes "WARNING: Function package_name_hook doesn't exist" every time do_package() is executed. Silence this warning by providing an empty package_name_hook in package.bbclass. (From OE-Core rev: f6eb8e4e44b66217e4ada9f830a058c5ba120932) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/package.bbclass')
-rw-r--r--meta/classes/package.bbclass12
1 files changed, 12 insertions, 0 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 735837667f..26a20d1ff5 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -1119,6 +1119,18 @@ python package_fixsymlinks () {
1119 d.setVar('RDEPENDS_' + pkg, bb.utils.join_deps(rdepends, commasep=False)) 1119 d.setVar('RDEPENDS_' + pkg, bb.utils.join_deps(rdepends, commasep=False))
1120} 1120}
1121 1121
1122
1123python package_package_name_hook() {
1124 """
1125 A package_name_hook function can be used to rewrite the package names by
1126 changing PKG. For an example, see debian.bbclass.
1127 """
1128 pass
1129}
1130
1131EXPORT_FUNCTIONS package_name_hook
1132
1133
1122PKGDESTWORK = "${WORKDIR}/pkgdata" 1134PKGDESTWORK = "${WORKDIR}/pkgdata"
1123 1135
1124python emit_pkgdata() { 1136python emit_pkgdata() {