summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
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 = ""