diff options
author | Leonid Borisenko <ive.found@gmail.com> | 2012-11-16 18:29:26 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-01-28 00:52:32 +0000 |
commit | 66055fbeddeb5f5b1fe84c24085f30daa6cfe003 (patch) | |
tree | bbe91c863fff2091d57c608c8e6f01e9ba28a65e /meta/classes/package_ipk.bbclass | |
parent | be77f3138cc1c4131b74924b275acef692f46b26 (diff) | |
download | poky-66055fbeddeb5f5b1fe84c24085f30daa6cfe003.tar.gz |
package_{ipk, deb, rpm}.bbclass: support additional user-defined metadata
Additional metadata from user-defined variable is written into
control/spec file of binary package.
Three variables are searched for adiitional package metadata:
* PACKAGE_ADD_METADATA_<PKGTYPE>_<PN>
* PACKAGE_ADD_METADATA_<PKGTYPE>
* PACKAGE_ADD_METADATA
First found variable with defined value wins.
<PN> is a package name. <PKGTYPE> is a distinct name of specific
package type:
* IPK for .ipk packages
* DEB for .deb packages
* RPM for .rpm packages
Variable can contain multiple [one-line] metadata fields separated by
literal sequence '\n'. Separator can be redefined through variable flag
'separator'. In package control/spec file separator is replaced by
newline character.
(From OE-Core rev: 773d7352309241e15ef5acadcbe416bdd7d45c18)
Signed-off-by: Leonid Borisenko <ive.found@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/package_ipk.bbclass')
-rw-r--r-- | meta/classes/package_ipk.bbclass | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/package_ipk.bbclass b/meta/classes/package_ipk.bbclass index e7b275577a..2d8e459b31 100644 --- a/meta/classes/package_ipk.bbclass +++ b/meta/classes/package_ipk.bbclass | |||
@@ -331,6 +331,11 @@ python do_package_ipk () { | |||
331 | raise bb.build.FuncFailed("Missing field for ipk generation: %s" % value) | 331 | raise bb.build.FuncFailed("Missing field for ipk generation: %s" % value) |
332 | # more fields | 332 | # more fields |
333 | 333 | ||
334 | custom_fields_chunk = get_package_additional_metadata("ipk", localdata) | ||
335 | if custom_fields_chunk is not None: | ||
336 | ctrlfile.write(custom_fields_chunk) | ||
337 | ctrlfile.write("\n") | ||
338 | |||
334 | mapping_rename_hook(localdata) | 339 | mapping_rename_hook(localdata) |
335 | 340 | ||
336 | def debian_cmp_remap(var): | 341 | def debian_cmp_remap(var): |