diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-01-04 15:11:00 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-01-05 11:52:50 +0000 |
commit | 47ddb0f26db774495624c9687e11a88d25259cf9 (patch) | |
tree | b4786f462f561d462e333108981bddb4bc97b226 /meta | |
parent | c2adc218442dd0f39ff24fb86b9dd38095260308 (diff) | |
download | poky-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.bbclass | 26 |
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 () { | |||
353 | perform_packagecopy[cleandirs] = "${PKGD}" | 353 | perform_packagecopy[cleandirs] = "${PKGD}" |
354 | perform_packagecopy[dirs] = "${PKGD}" | 354 | perform_packagecopy[dirs] = "${PKGD}" |
355 | 355 | ||
356 | python fixup_perms () { | ||
357 | oe.package.fixup_perms(d) | ||
358 | } | ||
359 | |||
360 | python split_and_strip_files () { | ||
361 | oe.package.process_split_and_strip_files(d) | ||
362 | } | ||
363 | |||
364 | python populate_packages () { | 356 | python 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 | ||
456 | PACKAGE_PREPROCESS_FUNCS ?= "" | 448 | |
457 | # Functions for setting up PKGD | 449 | # Functions for setting up PKGD |
458 | PACKAGEBUILDPKGD ?= " \ | 450 | PACKAGE_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 |
466 | PACKAGESPLITFUNCS ?= " \ | 452 | PACKAGESPLITFUNCS ?= " \ |
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 | ||
564 | do_package[dirs] = "${SHLIBSWORKDIR} ${D}" | 554 | do_package[dirs] = "${SHLIBSWORKDIR} ${D}" |
565 | do_package[vardeps] += "${PACKAGEBUILDPKGD} ${PACKAGESPLITFUNCS} ${PACKAGEFUNCS} ${@gen_packagevar(d)}" | 555 | do_package[vardeps] += "${PACKAGE_PREPROCESS_FUNCS} ${PACKAGESPLITFUNCS} ${PACKAGEFUNCS} ${@gen_packagevar(d)}" |
566 | addtask package after do_install | 556 | addtask package after do_install |
567 | 557 | ||
568 | SSTATETASKS += "do_package" | 558 | SSTATETASKS += "do_package" |