mirror of
https://git.yoctoproject.org/poky
synced 2026-02-07 17:26:36 +01:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
28270fc8bf
commit
360171c843
@@ -1119,6 +1119,18 @@ python package_fixsymlinks () {
|
||||
d.setVar('RDEPENDS_' + pkg, bb.utils.join_deps(rdepends, commasep=False))
|
||||
}
|
||||
|
||||
|
||||
python package_package_name_hook() {
|
||||
"""
|
||||
A package_name_hook function can be used to rewrite the package names by
|
||||
changing PKG. For an example, see debian.bbclass.
|
||||
"""
|
||||
pass
|
||||
}
|
||||
|
||||
EXPORT_FUNCTIONS package_name_hook
|
||||
|
||||
|
||||
PKGDESTWORK = "${WORKDIR}/pkgdata"
|
||||
|
||||
python emit_pkgdata() {
|
||||
|
||||
Reference in New Issue
Block a user