mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
package.bbclass: Add PACKAGESPLITFUNCS variable
Prepending to populate_packages is rather ugly and means its hard to trace errors and also profiling informaiton is summed together in one function. This patch starts to split out the prepends to become separate functions to avoid these issues. This is generally a neater way to write functions than prepending to where there can sometimes be variable scope issues and we've been bitten by whitespace issues in the past. (From OE-Core rev: 4f9963d1d82ee896fe9491d6a8b32be42cd06f14) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -1759,6 +1759,9 @@ PACKAGEBUILDPKGD ?= " \
|
||||
${PACKAGE_PREPROCESS_FUNCS} \
|
||||
split_and_strip_files \
|
||||
fixup_perms \
|
||||
"
|
||||
# Functions which split PKGD up into separate packages
|
||||
PACKAGESPLITFUNCS ?= " \
|
||||
package_do_split_locales \
|
||||
populate_packages"
|
||||
# Functions which process metadata based on split packages
|
||||
@@ -1798,6 +1801,9 @@ python do_package () {
|
||||
for f in (d.getVar('PACKAGEBUILDPKGD', True) or '').split():
|
||||
bb.build.exec_func(f, d)
|
||||
|
||||
for f in (d.getVar('PACKAGESPLITFUNCS', True) or '').split():
|
||||
bb.build.exec_func(f, d)
|
||||
|
||||
# Build global list of files in each split package
|
||||
global pkgfiles
|
||||
pkgfiles = {}
|
||||
|
||||
Reference in New Issue
Block a user