diff options
Diffstat (limited to 'meta/recipes-core/meta/build-sysroots.bb')
-rw-r--r-- | meta/recipes-core/meta/build-sysroots.bb | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/meta/recipes-core/meta/build-sysroots.bb b/meta/recipes-core/meta/build-sysroots.bb new file mode 100644 index 0000000000..7a712e2f38 --- /dev/null +++ b/meta/recipes-core/meta/build-sysroots.bb | |||
@@ -0,0 +1,38 @@ | |||
1 | INHIBIT_DEFAULT_DEPS = "1" | ||
2 | LICENSE = "MIT" | ||
3 | |||
4 | STANDALONE_SYSROOT = "${STAGING_DIR}/${MACHINE}" | ||
5 | STANDALONE_SYSROOT_NATIVE = "${STAGING_DIR}/${BUILD_ARCH}" | ||
6 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
7 | EXCLUDE_FROM_WORLD = "1" | ||
8 | |||
9 | inherit nopackages | ||
10 | deltask fetch | ||
11 | deltask unpack | ||
12 | deltask patch | ||
13 | deltask prepare_recipe_sysroot | ||
14 | deltask populate_lic | ||
15 | deltask configure | ||
16 | deltask compile | ||
17 | deltask install | ||
18 | deltask populate_sysroot | ||
19 | |||
20 | python do_build_native_sysroot () { | ||
21 | targetsysroot = d.getVar("STANDALONE_SYSROOT") | ||
22 | nativesysroot = d.getVar("STANDALONE_SYSROOT_NATIVE") | ||
23 | staging_populate_sysroot_dir(targetsysroot, nativesysroot, True, d) | ||
24 | } | ||
25 | do_build_native_sysroot[cleandirs] = "${STANDALONE_SYSROOT_NATIVE}" | ||
26 | do_build_native_sysroot[nostamp] = "1" | ||
27 | addtask do_build_native_sysroot before do_build | ||
28 | |||
29 | python do_build_target_sysroot () { | ||
30 | targetsysroot = d.getVar("STANDALONE_SYSROOT") | ||
31 | nativesysroot = d.getVar("STANDALONE_SYSROOT_NATIVE") | ||
32 | staging_populate_sysroot_dir(targetsysroot, nativesysroot, False, d) | ||
33 | } | ||
34 | do_build_target_sysroot[cleandirs] = "${STANDALONE_SYSROOT}" | ||
35 | do_build_target_sysroot[nostamp] = "1" | ||
36 | addtask do_build_target_sysroot before do_build | ||
37 | |||
38 | do_clean[cleandirs] += "${STANDALONE_SYSROOT} ${STANDALONE_SYSROOT_NATIVE}" | ||