]> code.ossystems Code Review - openembedded-core.git/commit
package_rpm.bbclass: add PACKAGE_ADD_METADATA_RPM to sstate variables
authorMichael Ho <Michael.Ho@bmw.de>
Mon, 25 May 2020 08:23:01 +0000 (10:23 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 25 May 2020 21:25:27 +0000 (22:25 +0100)
commit9e1907d7bd5f825d5ccca1da2a1e6ccc494088dd
treeae5799efc8661b0313ed978a3552d7a8c7813a35
parente669141ccaeff346896f67f72b33c6aeae5cba46
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.

Signed-off-by: Michael Ho <Michael.Ho@bmw.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/package_rpm.bbclass