diff options
| -rw-r--r-- | meta/recipes-core/meta/testexport-tarball.bb | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/meta/recipes-core/meta/testexport-tarball.bb b/meta/recipes-core/meta/testexport-tarball.bb new file mode 100644 index 0000000000..951d3be057 --- /dev/null +++ b/meta/recipes-core/meta/testexport-tarball.bb | |||
| @@ -0,0 +1,56 @@ | |||
| 1 | DESCRIPTION = "SDK type target for standalone tarball containing packages defined by TEST_EXPORT_TOOLS. The \ | ||
| 2 | tarball can be used to run missing programs on testing systems which don't have such tools.\ | ||
| 3 | This recipe is almost the same as buildtools-tarball" | ||
| 4 | SUMMARY = "Standalone tarball for test systems with missing software" | ||
| 5 | LICENSE = "MIT" | ||
| 6 | LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \ | ||
| 7 | file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | ||
| 8 | |||
| 9 | TOOLCHAIN_TARGET_TASK ?= "" | ||
| 10 | |||
| 11 | TOOLCHAIN_HOST_TASK ?= "${TEST_EXPORT_SDK_PACKAGES}" | ||
| 12 | |||
| 13 | SDK_PACKAGE_ARCHS += "tesexport-tools-${SDKPKGSUFFIX}" | ||
| 14 | |||
| 15 | TOOLCHAIN_OUTPUTNAME ?= "${TEST_EXPORT_SDK_NAME}" | ||
| 16 | |||
| 17 | SDK_TITLE = "Testexport tools" | ||
| 18 | |||
| 19 | RDEPENDS = "${TOOLCHAIN_HOST_TASK}" | ||
| 20 | |||
| 21 | EXCLUDE_FROM_WORLD = "1" | ||
| 22 | |||
| 23 | inherit meta | ||
| 24 | inherit populate_sdk | ||
| 25 | inherit toolchain-scripts | ||
| 26 | |||
| 27 | create_sdk_files_append () { | ||
| 28 | rm -f ${SDK_OUTPUT}/${SDKPATH}/site-config-* | ||
| 29 | rm -f ${SDK_OUTPUT}/${SDKPATH}/environment-setup-* | ||
| 30 | rm -f ${SDK_OUTPUT}/${SDKPATH}/version-* | ||
| 31 | |||
| 32 | # Generate new (mini) sdk-environment-setup file | ||
| 33 | script=${1:-${SDK_OUTPUT}/${SDKPATH}/environment-setup-${SDK_SYS}} | ||
| 34 | touch $script | ||
| 35 | echo 'export PATH=${SDKPATHNATIVE}${bindir_nativesdk}:$PATH' >> $script | ||
| 36 | # In order for the self-extraction script to correctly extract and set up things, | ||
| 37 | # we need a 'OECORE_NATIVE_SYSROOT=xxx' line in environment setup script. | ||
| 38 | # However, testexport-tarball is inherently a tool set instead of a fully functional SDK, | ||
| 39 | # so instead of exporting the variable, we use a comment here. | ||
| 40 | echo '#OECORE_NATIVE_SYSROOT="${SDKPATHNATIVE}"' >> $script | ||
| 41 | toolchain_create_sdk_version ${SDK_OUTPUT}/${SDKPATH}/version-${SDK_SYS} | ||
| 42 | |||
| 43 | echo 'export GIT_SSL_CAINFO="${SDKPATHNATIVE}${sysconfdir}/ssl/certs/ca-certificates.crt"' >>$script | ||
| 44 | |||
| 45 | if [ "${SDKMACHINE}" = "i686" ]; then | ||
| 46 | echo 'export NO32LIBS="0"' >>$script | ||
| 47 | echo 'echo "$BB_ENV_EXTRAWHITE" | grep -q "NO32LIBS"' >>$script | ||
| 48 | echo '[ $? != 0 ] && export BB_ENV_EXTRAWHITE="NO32LIBS $BB_ENV_EXTRAWHITE"' >>$script | ||
| 49 | fi | ||
| 50 | } | ||
| 51 | |||
| 52 | # testexport-tarball doesn't need config site | ||
| 53 | TOOLCHAIN_NEED_CONFIGSITE_CACHE = "" | ||
| 54 | |||
| 55 | # The recipe doesn't need any default deps | ||
| 56 | INHIBIT_DEFAULT_DEPS = "1" | ||
