summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/meta/meta-environment.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/meta/meta-environment.bb')
-rw-r--r--meta/recipes-core/meta/meta-environment.bb51
1 files changed, 51 insertions, 0 deletions
diff --git a/meta/recipes-core/meta/meta-environment.bb b/meta/recipes-core/meta/meta-environment.bb
new file mode 100644
index 0000000..cf142ef
--- /dev/null
+++ b/meta/recipes-core/meta/meta-environment.bb
@@ -0,0 +1,51 @@
1SUMMARY = "Package of environment files for SDK"
2LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \
3 file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
4LICENSE = "MIT"
5PR = "r8"
6
7EXCLUDE_FROM_WORLD = "1"
8
9inherit toolchain-scripts
10TOOLCHAIN_NEED_CONFIGSITE_CACHE += "zlib"
11REAL_MULTIMACH_TARGET_SYS = "${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS}"
12
13SDK_DIR = "${WORKDIR}/sdk"
14SDK_OUTPUT = "${SDK_DIR}/image"
15SDKTARGETSYSROOT = "${SDKPATH}/sysroots/${TARGET_SYS}"
16
17inherit cross-canadian
18
19do_generate_content[nostamp] = "1"
20do_generate_content() {
21
22 rm -rf ${SDK_OUTPUT}
23 mkdir -p ${SDK_OUTPUT}/${SDKPATH}
24
25 toolchain_create_sdk_siteconfig ${SDK_OUTPUT}/${SDKPATH}/site-config-${REAL_MULTIMACH_TARGET_SYS}
26
27 toolchain_create_sdk_env_script ${SDK_OUTPUT}/${SDKPATH}/environment-setup-${REAL_MULTIMACH_TARGET_SYS} ${REAL_MULTIMACH_TARGET_SYS} '##SDKTARGETSYSROOT##' ${target_libdir}
28
29 # Add version information
30 toolchain_create_sdk_version ${SDK_OUTPUT}/${SDKPATH}/version-${REAL_MULTIMACH_TARGET_SYS}
31}
32addtask generate_content before do_install after do_compile
33
34do_install[nostamp] = "1"
35do_install() {
36 install -d ${D}/${SDKPATH}
37 install -m 0644 -t ${D}/${SDKPATH} ${SDK_OUTPUT}/${SDKPATH}/*
38}
39
40PN = "meta-environment-${MACHINE}"
41PACKAGES = "${PN}"
42FILES_${PN}= " \
43 ${SDKPATH}/* \
44 "
45
46do_fetch[noexec] = "1"
47do_unpack[noexec] = "1"
48do_patch[noexec] = "1"
49do_configure[noexec] = "1"
50do_compile[noexec] = "1"
51do_populate_sysroot[noexec] = "1"