summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/meta
diff options
context:
space:
mode:
authorMariano Lopez <mariano.lopez@linux.intel.com>2016-06-06 07:15:43 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-06-07 15:22:38 +0100
commit7d18d9f9c5a9ce52610732cc1836b243a660eacb (patch)
tree62e94b5329b599548ed8686bd8271eff61af481c /meta/recipes-core/meta
parentcfe3efd7304b6473574f016650df56dcb0e2ca3c (diff)
downloadpoky-7d18d9f9c5a9ce52610732cc1836b243a660eacb.tar.gz
testexport-tarball.bb: Add recipe
This new recipe is used when exporting runtime test outside packages that won't be installed in the testing system but are required for the runtime testing. This new recipe is almost identical to buildtools-tarball, but is able to define the SDK packages in local.conf. [YOCTO #7850] (From OE-Core rev: fbcd1f9ed6144a76ff6a556d23af30f04c39bfa0) (From OE-Core rev: d787cd34da1cba52f5ecf68b7f55aa5550ed5e71) Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/meta')
-rw-r--r--meta/recipes-core/meta/testexport-tarball.bb56
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 @@
1DESCRIPTION = "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"
4SUMMARY = "Standalone tarball for test systems with missing software"
5LICENSE = "MIT"
6LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \
7 file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
8
9TOOLCHAIN_TARGET_TASK ?= ""
10
11TOOLCHAIN_HOST_TASK ?= "${TEST_EXPORT_SDK_PACKAGES}"
12
13SDK_PACKAGE_ARCHS += "tesexport-tools-${SDKPKGSUFFIX}"
14
15TOOLCHAIN_OUTPUTNAME ?= "${TEST_EXPORT_SDK_NAME}"
16
17SDK_TITLE = "Testexport tools"
18
19RDEPENDS = "${TOOLCHAIN_HOST_TASK}"
20
21EXCLUDE_FROM_WORLD = "1"
22
23inherit meta
24inherit populate_sdk
25inherit toolchain-scripts
26
27create_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
53TOOLCHAIN_NEED_CONFIGSITE_CACHE = ""
54
55# The recipe doesn't need any default deps
56INHIBIT_DEFAULT_DEPS = "1"