summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2023-01-04 15:11:00 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-01-05 11:52:50 +0000
commit47ddb0f26db774495624c9687e11a88d25259cf9 (patch)
treeb4786f462f561d462e333108981bddb4bc97b226 /meta
parentc2adc218442dd0f39ff24fb86b9dd38095260308 (diff)
downloadpoky-47ddb0f26db774495624c9687e11a88d25259cf9.tar.gz
package: Drop support for PACKAGEBUILDPKGD function customisation
We don't really need the customisation capability of PACKAGEBUILDPKGD since we also have PACKAGE_PREPROCESS_FUNCS which is generally used by recipes. Drop PACKAGEBUILDPKGD to have some simpler/clearer code. This allows some function wrappers to be removed too. (From OE-Core rev: 6a4f24724cea3ddf55cacccb80fa54aa898dfa86) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes-global/package.bbclass26
1 files changed, 8 insertions, 18 deletions
diff --git a/meta/classes-global/package.bbclass b/meta/classes-global/package.bbclass
index d334da6fb3..7e96601cd9 100644
--- a/meta/classes-global/package.bbclass
+++ b/meta/classes-global/package.bbclass
@@ -353,14 +353,6 @@ python perform_packagecopy () {
353perform_packagecopy[cleandirs] = "${PKGD}" 353perform_packagecopy[cleandirs] = "${PKGD}"
354perform_packagecopy[dirs] = "${PKGD}" 354perform_packagecopy[dirs] = "${PKGD}"
355 355
356python fixup_perms () {
357 oe.package.fixup_perms(d)
358}
359
360python split_and_strip_files () {
361 oe.package.process_split_and_strip_files(d)
362}
363
364python populate_packages () { 356python populate_packages () {
365 oe.package.populate_packages(d) 357 oe.package.populate_packages(d)
366} 358}
@@ -453,15 +445,9 @@ def gen_packagevar(d, pkgvars="PACKAGEVARS"):
453 ret.append('_exclude_incompatible-%s' % p) 445 ret.append('_exclude_incompatible-%s' % p)
454 return " ".join(ret) 446 return " ".join(ret)
455 447
456PACKAGE_PREPROCESS_FUNCS ?= "" 448
457# Functions for setting up PKGD 449# Functions for setting up PKGD
458PACKAGEBUILDPKGD ?= " \ 450PACKAGE_PREPROCESS_FUNCS ?= ""
459 package_prepare_pkgdata \
460 perform_packagecopy \
461 ${PACKAGE_PREPROCESS_FUNCS} \
462 split_and_strip_files \
463 fixup_perms \
464 "
465# Functions which split PKGD up into separate packages 451# Functions which split PKGD up into separate packages
466PACKAGESPLITFUNCS ?= " \ 452PACKAGESPLITFUNCS ?= " \
467 package_do_split_locales \ 453 package_do_split_locales \
@@ -528,8 +514,12 @@ python do_package () {
528 # Setup PKGD (from D) 514 # Setup PKGD (from D)
529 ########################################################################### 515 ###########################################################################
530 516
531 for f in (d.getVar('PACKAGEBUILDPKGD') or '').split(): 517 bb.build.exec_func("package_prepare_pkgdata", d)
518 bb.build.exec_func("perform_packagecopy", d)
519 for f in (d.getVar('PACKAGE_PREPROCESS_FUNCS') or '').split():
532 bb.build.exec_func(f, d) 520 bb.build.exec_func(f, d)
521 oe.package.process_split_and_strip_files(d)
522 oe.package.fixup_perms(d)
533 523
534 ########################################################################### 524 ###########################################################################
535 # Split up PKGD into PKGDEST 525 # Split up PKGD into PKGDEST
@@ -562,7 +552,7 @@ python do_package () {
562} 552}
563 553
564do_package[dirs] = "${SHLIBSWORKDIR} ${D}" 554do_package[dirs] = "${SHLIBSWORKDIR} ${D}"
565do_package[vardeps] += "${PACKAGEBUILDPKGD} ${PACKAGESPLITFUNCS} ${PACKAGEFUNCS} ${@gen_packagevar(d)}" 555do_package[vardeps] += "${PACKAGE_PREPROCESS_FUNCS} ${PACKAGESPLITFUNCS} ${PACKAGEFUNCS} ${@gen_packagevar(d)}"
566addtask package after do_install 556addtask package after do_install
567 557
568SSTATETASKS += "do_package" 558SSTATETASKS += "do_package"