manifests: add support for SRC_URI 43/30743/2
authorPatrick Ohly <patrick.ohly@intel.com>
Mon, 24 Nov 2014 20:15:38 +0000 (21:15 +0100)
committerronan(Eurogiciel) Le Martret <ronan.lemartret@open.eurogiciel.org>
Mon, 1 Dec 2014 13:29:02 +0000 (05:29 -0800)
commitfa636dbe0d05ad75398221b4b45729a3e21d352c
tree23e6481c052647865026e833a01f59a41d3f7a8d
parenta3278883cfaf98b1e8a12bcc52501e4a2162a6c1
manifests: add support for SRC_URI

MANIFESTFILES assumes that the file comes out of the source or build
process. The new SRC_URI support for files ending in .manifest or
.manifest.in makes it possible to add manifest files as pure packaging
meta data.

The "pkg" parameter determines which package the manifest file is used
for. If not set or empty, it is used for all. If set, the value is a
comma-separated list of package names. The first suitable manifest
file is used. Fake example file_%.bbappend:

SRC_URI += "file://libmagic.manifest.in;pkg=libmagic,libmagic-data file://file.manifest"
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

When turning a .manifest.in file into .manifest, @[a-zA-Z0-9]+@ will
get replaced by the value of the corresponding Bitbake variable (for
example, "bindir").

This could also cover Tizen multi-user variables
(https://wiki.tizen.org/wiki/Multi-user_Platform_Metadata) if those were
added to the active distro or build conf.

Change-Id: I33e49ea4e97670a70bc06bff21a265272a48626e
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
meta-tizen-common-base/classes/metatizen.bbclass