summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2016-01-23 00:59:48 +1300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-24 09:40:32 +0000
commitd3a4f72896aaea7374bd8915cfe3adaaecc55a2d (patch)
tree0bd76cd1c224afe941bed4b0bb88551647cd7cb7 /meta/recipes-core
parenta9dfcedd21a5fe212d237633f40e2efcdfb34690 (diff)
downloadpoky-d3a4f72896aaea7374bd8915cfe3adaaecc55a2d.tar.gz
classes/populate_sdk_ext: add option to bring in pkgdata for world
Add a variable SDK_INCLUDE_PKGDATA which you can set to "1" to include pkgdata for all recipes in the world target. There are a couple of uses for this: 1) If you use "devtool add" to add a recipe that builds something which depends on anything in world, the dependency can then be correctly mapped to the recipe providing it and that recipe can be added to DEPENDS, since we have the pkg-config and shared library dependency data within pkgdata. 2) You'll be able to search for these recipes and any files they package for the target with "devtool search" since that also uses pkgdata This of course assumes you've tailored world through EXCLUDE_FROM_WORLD to only include recipes you'd want built in your distro, but I think that's a reasonable assumption; failing that there is a WORLD_PKGDATA_EXCLUDE variable that you can set to exclude any recipes you don't want. Note that this patch relies on functionality implemented in a recent BitBake patch and will not work without it. Implements [YOCTO #8600]. (From OE-Core rev: 67149ea097d6fab7496b43e85a40853f40bd527e) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/meta/meta-world-pkgdata.bb50
1 files changed, 50 insertions, 0 deletions
diff --git a/meta/recipes-core/meta/meta-world-pkgdata.bb b/meta/recipes-core/meta/meta-world-pkgdata.bb
new file mode 100644
index 0000000000..48a9027215
--- /dev/null
+++ b/meta/recipes-core/meta/meta-world-pkgdata.bb
@@ -0,0 +1,50 @@
1SUMMARY = "Pulls in pkgdata for world"
2LICENSE = "MIT"
3INHIBIT_DEFAULT_DEPS = "1"
4
5addtask do_allpackagedata before do_build
6do_allpackagedata() {
7 :
8}
9do_allpackagedata[recrdeptask] = "do_packagedata do_allpackagedata"
10do_allpackagedata[noexec] = "1"
11
12WORLD_PKGDATADIR = "${D}/world-pkgdata"
13
14addtask do_collect_packagedata after do_allpackagedata
15SSTATETASKS += "do_collect_packagedata"
16do_collect_packagedata[sstate-inputdirs] = "${WORLD_PKGDATADIR}"
17do_collect_packagedata[sstate-outputdirs] = "${STAGING_DIR_HOST}/world-pkgdata"
18
19python do_collect_packagedata() {
20 import oe.copy_buildsystem
21 outdir = os.path.join(d.getVar('WORLD_PKGDATADIR', True))
22 bb.utils.mkdirhier(outdir)
23 sigfile = os.path.join(outdir, 'locked-sigs-pkgdata.inc')
24 oe.copy_buildsystem.generate_locked_sigs(sigfile, d)
25}
26
27do_fetch[noexec] = "1"
28do_unpack[noexec] = "1"
29do_patch[noexec] = "1"
30do_configure[noexec] = "1"
31do_compile[noexec] = "1"
32do_install[noexec] = "1"
33
34do_configure[deptask] = ""
35
36WORLD_PKGDATA_EXCLUDE ?= "adt-installer"
37
38python calculate_extra_depends() {
39 exclude = '${WORLD_PKGDATA_EXCLUDE}'.split()
40 for p in world_target:
41 if p == self_pn:
42 continue
43
44 if p in exclude:
45 continue
46
47 deps.append(p)
48}
49
50PACKAGES = ""