diff options
Diffstat (limited to 'meta/recipes-core/meta')
-rw-r--r-- | meta/recipes-core/meta/buildtools-tarball.bb | 71 | ||||
-rw-r--r-- | meta/recipes-core/meta/meta-environment.bb | 51 | ||||
-rw-r--r-- | meta/recipes-core/meta/meta-ide-support.bb | 18 | ||||
-rw-r--r-- | meta/recipes-core/meta/meta-toolchain.bb | 9 | ||||
-rw-r--r-- | meta/recipes-core/meta/package-index.bb | 29 |
5 files changed, 178 insertions, 0 deletions
diff --git a/meta/recipes-core/meta/buildtools-tarball.bb b/meta/recipes-core/meta/buildtools-tarball.bb new file mode 100644 index 0000000000..c54d9e8699 --- /dev/null +++ b/meta/recipes-core/meta/buildtools-tarball.bb | |||
@@ -0,0 +1,71 @@ | |||
1 | DESCRIPTION = "SDK type target for building a standalone tarball containing python, chrpath, make, git and tar. The \ | ||
2 | tarball can be used to run bitbake builds on systems which don't meet the usual version requirements." | ||
3 | SUMMARY = "Standalone tarball for running builds on systems with inadequate software" | ||
4 | LICENSE = "MIT" | ||
5 | LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \ | ||
6 | file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | ||
7 | |||
8 | TOOLCHAIN_TARGET_TASK ?= "" | ||
9 | |||
10 | TOOLCHAIN_HOST_TASK ?= "\ | ||
11 | nativesdk-python-core \ | ||
12 | nativesdk-python-textutils \ | ||
13 | nativesdk-python-sqlite3 \ | ||
14 | nativesdk-python-pickle \ | ||
15 | nativesdk-python-logging \ | ||
16 | nativesdk-python-elementtree \ | ||
17 | nativesdk-python-curses \ | ||
18 | nativesdk-python-compile \ | ||
19 | nativesdk-python-compiler \ | ||
20 | nativesdk-python-fcntl \ | ||
21 | nativesdk-python-shell \ | ||
22 | nativesdk-python-misc \ | ||
23 | nativesdk-python-multiprocessing \ | ||
24 | nativesdk-python-subprocess \ | ||
25 | nativesdk-python-xmlrpc \ | ||
26 | nativesdk-python-netclient \ | ||
27 | nativesdk-python-netserver \ | ||
28 | nativesdk-python-distutils \ | ||
29 | nativesdk-python-unixadmin \ | ||
30 | nativesdk-python-compression \ | ||
31 | nativesdk-python-json \ | ||
32 | nativesdk-python-unittest \ | ||
33 | nativesdk-python-mmap \ | ||
34 | nativesdk-python-difflib \ | ||
35 | nativesdk-python-pprint \ | ||
36 | nativesdk-python-git \ | ||
37 | nativesdk-python-pkgutil \ | ||
38 | nativesdk-ncurses-terminfo-base \ | ||
39 | nativesdk-chrpath \ | ||
40 | nativesdk-tar \ | ||
41 | nativesdk-git \ | ||
42 | nativesdk-pigz \ | ||
43 | nativesdk-make \ | ||
44 | nativesdk-wget \ | ||
45 | " | ||
46 | |||
47 | TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-buildtools-nativesdk-standalone-${DISTRO_VERSION}" | ||
48 | |||
49 | RDEPENDS = "${TOOLCHAIN_HOST_TASK}" | ||
50 | |||
51 | EXCLUDE_FROM_WORLD = "1" | ||
52 | |||
53 | inherit meta | ||
54 | inherit populate_sdk | ||
55 | |||
56 | create_sdk_files_append () { | ||
57 | rm -f ${SDK_OUTPUT}/${SDKPATH}/site-config-* | ||
58 | rm -f ${SDK_OUTPUT}/${SDKPATH}/environment-setup-* | ||
59 | rm -f ${SDK_OUTPUT}/${SDKPATH}/version-* | ||
60 | |||
61 | # Generate new (mini) sdk-environment-setup file | ||
62 | script=${1:-${SDK_OUTPUT}/${SDKPATH}/environment-setup-${SDK_SYS}} | ||
63 | touch $script | ||
64 | echo 'export PATH=${SDKPATHNATIVE}${bindir_nativesdk}:$PATH' >> $script | ||
65 | # In order for the self-extraction script to correctly extract and set up things, | ||
66 | # we need a 'OECORE_NATIVE_SYSROOT=xxx' line in environment setup script. | ||
67 | # However, buildtools-tarball is inherently a tool set instead of a fully functional SDK, | ||
68 | # so instead of exporting the variable, we use a comment here. | ||
69 | echo '#OECORE_NATIVE_SYSROOT="${SDKPATHNATIVE}"' >> $script | ||
70 | toolchain_create_sdk_version ${SDK_OUTPUT}/${SDKPATH}/version-${SDK_SYS} | ||
71 | } | ||
diff --git a/meta/recipes-core/meta/meta-environment.bb b/meta/recipes-core/meta/meta-environment.bb new file mode 100644 index 0000000000..cf142ef5ca --- /dev/null +++ b/meta/recipes-core/meta/meta-environment.bb | |||
@@ -0,0 +1,51 @@ | |||
1 | SUMMARY = "Package of environment files for SDK" | ||
2 | LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \ | ||
3 | file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | ||
4 | LICENSE = "MIT" | ||
5 | PR = "r8" | ||
6 | |||
7 | EXCLUDE_FROM_WORLD = "1" | ||
8 | |||
9 | inherit toolchain-scripts | ||
10 | TOOLCHAIN_NEED_CONFIGSITE_CACHE += "zlib" | ||
11 | REAL_MULTIMACH_TARGET_SYS = "${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS}" | ||
12 | |||
13 | SDK_DIR = "${WORKDIR}/sdk" | ||
14 | SDK_OUTPUT = "${SDK_DIR}/image" | ||
15 | SDKTARGETSYSROOT = "${SDKPATH}/sysroots/${TARGET_SYS}" | ||
16 | |||
17 | inherit cross-canadian | ||
18 | |||
19 | do_generate_content[nostamp] = "1" | ||
20 | do_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 | } | ||
32 | addtask generate_content before do_install after do_compile | ||
33 | |||
34 | do_install[nostamp] = "1" | ||
35 | do_install() { | ||
36 | install -d ${D}/${SDKPATH} | ||
37 | install -m 0644 -t ${D}/${SDKPATH} ${SDK_OUTPUT}/${SDKPATH}/* | ||
38 | } | ||
39 | |||
40 | PN = "meta-environment-${MACHINE}" | ||
41 | PACKAGES = "${PN}" | ||
42 | FILES_${PN}= " \ | ||
43 | ${SDKPATH}/* \ | ||
44 | " | ||
45 | |||
46 | do_fetch[noexec] = "1" | ||
47 | do_unpack[noexec] = "1" | ||
48 | do_patch[noexec] = "1" | ||
49 | do_configure[noexec] = "1" | ||
50 | do_compile[noexec] = "1" | ||
51 | do_populate_sysroot[noexec] = "1" | ||
diff --git a/meta/recipes-core/meta/meta-ide-support.bb b/meta/recipes-core/meta/meta-ide-support.bb new file mode 100644 index 0000000000..40bda28949 --- /dev/null +++ b/meta/recipes-core/meta/meta-ide-support.bb | |||
@@ -0,0 +1,18 @@ | |||
1 | SUMMARY = "Integrated Development Environment support" | ||
2 | DESCRIPTION = "Meta package for ensuring the build directory contains all appropriate toolchain packages for using an IDE" | ||
3 | LICENSE = "MIT" | ||
4 | LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \ | ||
5 | file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | ||
6 | |||
7 | DEPENDS = "virtual/libc gdb-cross qemu-native qemu-helper-native unfs3-native" | ||
8 | PR = "r3" | ||
9 | |||
10 | inherit meta toolchain-scripts | ||
11 | |||
12 | do_populate_ide_support () { | ||
13 | toolchain_create_tree_env_script | ||
14 | } | ||
15 | |||
16 | do_populate_ide_support[nostamp] = "1" | ||
17 | do_populate_ide_support[recrdeptask] = "do_package_write" | ||
18 | addtask populate_ide_support before do_build after do_install | ||
diff --git a/meta/recipes-core/meta/meta-toolchain.bb b/meta/recipes-core/meta/meta-toolchain.bb new file mode 100644 index 0000000000..ba9fd88805 --- /dev/null +++ b/meta/recipes-core/meta/meta-toolchain.bb | |||
@@ -0,0 +1,9 @@ | |||
1 | SUMMARY = "Meta package for building a installable toolchain" | ||
2 | LICENSE = "MIT" | ||
3 | |||
4 | PR = "r7" | ||
5 | |||
6 | LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \ | ||
7 | file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | ||
8 | |||
9 | inherit populate_sdk | ||
diff --git a/meta/recipes-core/meta/package-index.bb b/meta/recipes-core/meta/package-index.bb new file mode 100644 index 0000000000..27b6d8ea9f --- /dev/null +++ b/meta/recipes-core/meta/package-index.bb | |||
@@ -0,0 +1,29 @@ | |||
1 | SUMMARY = "Rebuilds the package index" | ||
2 | LICENSE = "MIT" | ||
3 | |||
4 | INHIBIT_DEFAULT_DEPS = "1" | ||
5 | PACKAGES = "" | ||
6 | |||
7 | do_fetch[noexec] = "1" | ||
8 | do_unpack[noexec] = "1" | ||
9 | do_patch[noexec] = "1" | ||
10 | do_configure[noexec] = "1" | ||
11 | do_compile[noexec] = "1" | ||
12 | do_install[noexec] = "1" | ||
13 | do_package[noexec] = "1" | ||
14 | do_packagedata[noexec] = "1" | ||
15 | do_package_write[noexec] = "1" | ||
16 | do_package_write_ipk[noexec] = "1" | ||
17 | do_package_write_rpm[noexec] = "1" | ||
18 | do_package_write_deb[noexec] = "1" | ||
19 | do_populate_sysroot[noexec] = "1" | ||
20 | |||
21 | do_package_index[nostamp] = "1" | ||
22 | do_package_index[depends] += "${PACKAGEINDEXDEPS}" | ||
23 | |||
24 | python do_package_index() { | ||
25 | from oe.rootfs import generate_index_files | ||
26 | generate_index_files(d) | ||
27 | } | ||
28 | addtask do_package_index before do_build | ||
29 | EXCLUDE_FROM_WORLD = "1" | ||