summaryrefslogtreecommitdiffstats
path: root/meta/classes/package_rpm.bbclass
diff options
context:
space:
mode:
authorMichael Ho <Michael.Ho@bmw.de>2020-05-25 10:23:01 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-05-25 22:25:53 +0100
commita3cd8fe20607705324af8e64be5ddaf48b6d5137 (patch)
treeeb25c73807240498fc83ec9008be1886e87b338b /meta/classes/package_rpm.bbclass
parent16421f5af14dc67bffb38e4ad9886bcf821f4e3f (diff)
downloadpoky-a3cd8fe20607705324af8e64be5ddaf48b6d5137.tar.gz
package_rpm.bbclass: add PACKAGE_ADD_METADATA_RPM to sstate variables
Refactor the addition of vardeps for this package class to use RPMEXTRAVARS and pass the items through gen_packagevar so package name specific overrides are accounted for. This matches the style used in package_ipk.bbclass. Since do_package_write_rpm does not have any "extra vars" that affect the rpm packaging yet, this commit has to add the variable. This refactoring is needed to add PACKAGE_ADD_METADATA_RPM to RPMEXTRAVARS so it affects the sstate hash of do_package_write_rpm. (From OE-Core rev: 9e1907d7bd5f825d5ccca1da2a1e6ccc494088dd) Signed-off-by: Michael Ho <Michael.Ho@bmw.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/package_rpm.bbclass')
-rw-r--r--meta/classes/package_rpm.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index 56c1b66938..519c22be47 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -623,6 +623,10 @@ python write_specfile () {
623# Otherwise allarch packages may change depending on override configuration 623# Otherwise allarch packages may change depending on override configuration
624write_specfile[vardepsexclude] = "OVERRIDES" 624write_specfile[vardepsexclude] = "OVERRIDES"
625 625
626# Have to list any variables referenced as X_<pkg> that aren't in pkgdata here
627RPMEXTRAVARS = "PACKAGE_ADD_METADATA_RPM"
628write_specfile[vardeps] += "${@gen_packagevar(d, 'RPMEXTRAVARS')}"
629
626python do_package_rpm () { 630python do_package_rpm () {
627 workdir = d.getVar('WORKDIR') 631 workdir = d.getVar('WORKDIR')
628 tmpdir = d.getVar('TMPDIR') 632 tmpdir = d.getVar('TMPDIR')