Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame^] | 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 | TEST_EXPORT_SDK_PACKAGES ??= "" |
| 10 | |
| 11 | TOOLCHAIN_TARGET_TASK ?= "" |
| 12 | |
| 13 | TOOLCHAIN_HOST_TASK ?= "${TEST_EXPORT_SDK_PACKAGES}" |
| 14 | |
| 15 | SDK_PACKAGE_ARCHS += "tesexport-tools-${SDKPKGSUFFIX}" |
| 16 | |
| 17 | TOOLCHAIN_OUTPUTNAME ?= "${TEST_EXPORT_SDK_NAME}" |
| 18 | |
| 19 | SDK_TITLE = "Testexport tools" |
| 20 | |
| 21 | RDEPENDS = "${TOOLCHAIN_HOST_TASK}" |
| 22 | |
| 23 | EXCLUDE_FROM_WORLD = "1" |
| 24 | |
| 25 | inherit meta |
| 26 | inherit populate_sdk |
| 27 | inherit toolchain-scripts |
| 28 | |
| 29 | create_sdk_files_append () { |
| 30 | rm -f ${SDK_OUTPUT}/${SDKPATH}/site-config-* |
| 31 | rm -f ${SDK_OUTPUT}/${SDKPATH}/environment-setup-* |
| 32 | rm -f ${SDK_OUTPUT}/${SDKPATH}/version-* |
| 33 | |
| 34 | # Generate new (mini) sdk-environment-setup file |
| 35 | script=${1:-${SDK_OUTPUT}/${SDKPATH}/environment-setup-${SDK_SYS}} |
| 36 | touch $script |
| 37 | echo 'export PATH=${SDKPATHNATIVE}${bindir_nativesdk}:$PATH' >> $script |
| 38 | # In order for the self-extraction script to correctly extract and set up things, |
| 39 | # we need a 'OECORE_NATIVE_SYSROOT=xxx' line in environment setup script. |
| 40 | # However, testexport-tarball is inherently a tool set instead of a fully functional SDK, |
| 41 | # so instead of exporting the variable, we use a comment here. |
| 42 | echo '#OECORE_NATIVE_SYSROOT="${SDKPATHNATIVE}"' >> $script |
| 43 | toolchain_create_sdk_version ${SDK_OUTPUT}/${SDKPATH}/version-${SDK_SYS} |
| 44 | |
| 45 | echo 'export GIT_SSL_CAINFO="${SDKPATHNATIVE}${sysconfdir}/ssl/certs/ca-certificates.crt"' >>$script |
| 46 | |
| 47 | if [ "${SDKMACHINE}" = "i686" ]; then |
| 48 | echo 'export NO32LIBS="0"' >>$script |
| 49 | echo 'echo "$BB_ENV_EXTRAWHITE" | grep -q "NO32LIBS"' >>$script |
| 50 | echo '[ $? != 0 ] && export BB_ENV_EXTRAWHITE="NO32LIBS $BB_ENV_EXTRAWHITE"' >>$script |
| 51 | fi |
| 52 | } |
| 53 | |
| 54 | # testexport-tarball doesn't need config site |
| 55 | TOOLCHAIN_NEED_CONFIGSITE_CACHE = "" |
| 56 | |
| 57 | # The recipe doesn't need any default deps |
| 58 | INHIBIT_DEFAULT_DEPS = "1" |