diff options
Diffstat (limited to 'meta/recipes-core')
-rw-r--r-- | meta/recipes-core/meta/meta-world-pkgdata.bb | 50 |
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 @@ | |||
1 | SUMMARY = "Pulls in pkgdata for world" | ||
2 | LICENSE = "MIT" | ||
3 | INHIBIT_DEFAULT_DEPS = "1" | ||
4 | |||
5 | addtask do_allpackagedata before do_build | ||
6 | do_allpackagedata() { | ||
7 | : | ||
8 | } | ||
9 | do_allpackagedata[recrdeptask] = "do_packagedata do_allpackagedata" | ||
10 | do_allpackagedata[noexec] = "1" | ||
11 | |||
12 | WORLD_PKGDATADIR = "${D}/world-pkgdata" | ||
13 | |||
14 | addtask do_collect_packagedata after do_allpackagedata | ||
15 | SSTATETASKS += "do_collect_packagedata" | ||
16 | do_collect_packagedata[sstate-inputdirs] = "${WORLD_PKGDATADIR}" | ||
17 | do_collect_packagedata[sstate-outputdirs] = "${STAGING_DIR_HOST}/world-pkgdata" | ||
18 | |||
19 | python 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 | |||
27 | do_fetch[noexec] = "1" | ||
28 | do_unpack[noexec] = "1" | ||
29 | do_patch[noexec] = "1" | ||
30 | do_configure[noexec] = "1" | ||
31 | do_compile[noexec] = "1" | ||
32 | do_install[noexec] = "1" | ||
33 | |||
34 | do_configure[deptask] = "" | ||
35 | |||
36 | WORLD_PKGDATA_EXCLUDE ?= "adt-installer" | ||
37 | |||
38 | python 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 | |||
50 | PACKAGES = "" | ||