diff options
author | Michael Ho <Michael.Ho@bmw.de> | 2020-05-25 10:22:58 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-05-25 22:25:53 +0100 |
commit | 1dfd6dad27c0dea1ec6bb20e4bee8f42ae20c525 (patch) | |
tree | 3c165b455b383235399066254d5e74870efb2d46 /meta/classes/package.bbclass | |
parent | c03dbb5afd6de0f94b0d83e7500fd738b2e5336f (diff) | |
download | poky-1dfd6dad27c0dea1ec6bb20e4bee8f42ae20c525.tar.gz |
package.bbclass: add PACKAGE_ADD_METADATA to sstate variables
The PACKAGE_ADD_METADATA can be used to define additional metadata for
packages. Changes to this variable should affect the packaging sstate hash
so packages are re-generated when this variable changes.
This variable is added to both PKGDATA_VARS and PACKAGEVARS. It is needed
in PACKAGEVARS to ensure changes invoke do_package to re-run. It is needed
in PKGDATA_VARS to ensure changes are written into the pkgdata so that the
hash equiv reports a change and does not skip over the package_write tasks.
(From OE-Core rev: de871a51cc450e3f90c923c5d80155453e5c241d)
Signed-off-by: Michael Ho <Michael.Ho@bmw.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/package.bbclass')
-rw-r--r-- | meta/classes/package.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index 0b5cf47749..0af5f66733 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass | |||
@@ -1508,7 +1508,7 @@ EXPORT_FUNCTIONS package_name_hook | |||
1508 | 1508 | ||
1509 | PKGDESTWORK = "${WORKDIR}/pkgdata" | 1509 | PKGDESTWORK = "${WORKDIR}/pkgdata" |
1510 | 1510 | ||
1511 | PKGDATA_VARS = "PN PE PV PR PKGE PKGV PKGR LICENSE DESCRIPTION SUMMARY RDEPENDS RPROVIDES RRECOMMENDS RSUGGESTS RREPLACES RCONFLICTS SECTION PKG ALLOW_EMPTY FILES CONFFILES FILES_INFO pkg_postinst pkg_postrm pkg_preinst pkg_prerm" | 1511 | PKGDATA_VARS = "PN PE PV PR PKGE PKGV PKGR LICENSE DESCRIPTION SUMMARY RDEPENDS RPROVIDES RRECOMMENDS RSUGGESTS RREPLACES RCONFLICTS SECTION PKG ALLOW_EMPTY FILES CONFFILES FILES_INFO PACKAGE_ADD_METADATA pkg_postinst pkg_postrm pkg_preinst pkg_prerm" |
1512 | 1512 | ||
1513 | python emit_pkgdata() { | 1513 | python emit_pkgdata() { |
1514 | from glob import glob | 1514 | from glob import glob |
@@ -2263,7 +2263,7 @@ python package_depchains() { | |||
2263 | 2263 | ||
2264 | # Since bitbake can't determine which variables are accessed during package | 2264 | # Since bitbake can't determine which variables are accessed during package |
2265 | # iteration, we need to list them here: | 2265 | # iteration, we need to list them here: |
2266 | PACKAGEVARS = "FILES RDEPENDS RRECOMMENDS SUMMARY DESCRIPTION RSUGGESTS RPROVIDES RCONFLICTS PKG ALLOW_EMPTY pkg_postinst pkg_postrm pkg_postinst_ontarget INITSCRIPT_NAME INITSCRIPT_PARAMS DEBIAN_NOAUTONAME ALTERNATIVE PKGE PKGV PKGR USERADD_PARAM GROUPADD_PARAM CONFFILES SYSTEMD_SERVICE LICENSE SECTION pkg_preinst pkg_prerm RREPLACES GROUPMEMS_PARAM SYSTEMD_AUTO_ENABLE SKIP_FILEDEPS PRIVATE_LIBS" | 2266 | PACKAGEVARS = "FILES RDEPENDS RRECOMMENDS SUMMARY DESCRIPTION RSUGGESTS RPROVIDES RCONFLICTS PKG ALLOW_EMPTY pkg_postinst pkg_postrm pkg_postinst_ontarget INITSCRIPT_NAME INITSCRIPT_PARAMS DEBIAN_NOAUTONAME ALTERNATIVE PKGE PKGV PKGR USERADD_PARAM GROUPADD_PARAM CONFFILES SYSTEMD_SERVICE LICENSE SECTION pkg_preinst pkg_prerm RREPLACES GROUPMEMS_PARAM SYSTEMD_AUTO_ENABLE SKIP_FILEDEPS PRIVATE_LIBS PACKAGE_ADD_METADATA" |
2267 | 2267 | ||
2268 | def gen_packagevar(d, pkgvars="PACKAGEVARS"): | 2268 | def gen_packagevar(d, pkgvars="PACKAGEVARS"): |
2269 | ret = [] | 2269 | ret = [] |