2013-06-24 14:45:49 +00:00
|
|
|
DESCRIPTION = "SDK type target for building a standalone tarball containing python, chrpath, make, git and tar. The \
|
2013-06-07 11:05:01 +00:00
|
|
|
tarball can be used to run bitbake builds on systems which don't meet the usual version requirements."
|
|
|
|
SUMMARY = "Standalone tarball for running builds on systems with inadequate software"
|
2010-11-02 13:11:37 +00:00
|
|
|
LICENSE = "MIT"
|
2014-01-02 14:19:45 +00:00
|
|
|
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \
|
2011-04-20 15:56:03 +00:00
|
|
|
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
2011-01-14 12:10:38 +00:00
|
|
|
|
2013-02-20 06:06:17 +00:00
|
|
|
TOOLCHAIN_TARGET_TASK ?= ""
|
2010-11-02 13:11:37 +00:00
|
|
|
|
|
|
|
TOOLCHAIN_HOST_TASK ?= "\
|
2011-12-22 17:43:33 +00:00
|
|
|
nativesdk-python-core \
|
2014-11-05 20:34:40 +00:00
|
|
|
nativesdk-python-modules \
|
2011-12-22 17:43:33 +00:00
|
|
|
nativesdk-python-misc \
|
2013-06-19 17:01:31 +00:00
|
|
|
nativesdk-python-git \
|
2015-03-18 22:25:55 +00:00
|
|
|
nativesdk-python-pexpect \
|
2013-06-14 11:46:05 +00:00
|
|
|
nativesdk-ncurses-terminfo-base \
|
2011-12-22 17:43:33 +00:00
|
|
|
nativesdk-chrpath \
|
2013-06-07 11:05:01 +00:00
|
|
|
nativesdk-tar \
|
2014-12-05 18:09:28 +00:00
|
|
|
nativesdk-buildtools-perl-dummy \
|
2013-06-07 11:05:01 +00:00
|
|
|
nativesdk-git \
|
2014-12-05 18:09:28 +00:00
|
|
|
nativesdk-git-perltools \
|
2013-10-21 20:13:11 +00:00
|
|
|
nativesdk-pigz \
|
2013-06-24 14:45:49 +00:00
|
|
|
nativesdk-make \
|
2014-07-20 20:00:43 +00:00
|
|
|
nativesdk-wget \
|
2014-08-28 07:36:16 +00:00
|
|
|
nativesdk-ca-certificates \
|
2010-12-15 15:40:32 +00:00
|
|
|
"
|
2010-11-02 13:11:37 +00:00
|
|
|
|
2014-12-05 18:09:28 +00:00
|
|
|
SDK_PACKAGE_ARCHS =+ "buildtools-dummy-${SDKPKGSUFFIX}"
|
|
|
|
|
2013-06-07 11:05:01 +00:00
|
|
|
TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-buildtools-nativesdk-standalone-${DISTRO_VERSION}"
|
2010-11-02 13:11:37 +00:00
|
|
|
|
2015-04-20 16:47:08 +00:00
|
|
|
SDK_TITLE = "Build tools"
|
|
|
|
|
2010-11-02 13:11:37 +00:00
|
|
|
RDEPENDS = "${TOOLCHAIN_HOST_TASK}"
|
|
|
|
|
|
|
|
EXCLUDE_FROM_WORLD = "1"
|
|
|
|
|
2013-02-20 06:06:17 +00:00
|
|
|
inherit meta
|
|
|
|
inherit populate_sdk
|
2015-07-10 21:31:32 +00:00
|
|
|
inherit toolchain-scripts
|
2013-06-07 11:05:01 +00:00
|
|
|
|
|
|
|
create_sdk_files_append () {
|
2013-06-24 14:47:15 +00:00
|
|
|
rm -f ${SDK_OUTPUT}/${SDKPATH}/site-config-*
|
|
|
|
rm -f ${SDK_OUTPUT}/${SDKPATH}/environment-setup-*
|
|
|
|
rm -f ${SDK_OUTPUT}/${SDKPATH}/version-*
|
|
|
|
|
|
|
|
# Generate new (mini) sdk-environment-setup file
|
|
|
|
script=${1:-${SDK_OUTPUT}/${SDKPATH}/environment-setup-${SDK_SYS}}
|
|
|
|
touch $script
|
|
|
|
echo 'export PATH=${SDKPATHNATIVE}${bindir_nativesdk}:$PATH' >> $script
|
2013-08-02 03:37:08 +00:00
|
|
|
# In order for the self-extraction script to correctly extract and set up things,
|
|
|
|
# we need a 'OECORE_NATIVE_SYSROOT=xxx' line in environment setup script.
|
|
|
|
# However, buildtools-tarball is inherently a tool set instead of a fully functional SDK,
|
|
|
|
# so instead of exporting the variable, we use a comment here.
|
|
|
|
echo '#OECORE_NATIVE_SYSROOT="${SDKPATHNATIVE}"' >> $script
|
2013-06-24 14:47:15 +00:00
|
|
|
toolchain_create_sdk_version ${SDK_OUTPUT}/${SDKPATH}/version-${SDK_SYS}
|
2014-08-28 07:36:17 +00:00
|
|
|
|
|
|
|
echo 'export GIT_SSL_CAINFO="${SDKPATHNATIVE}${sysconfdir}/ssl/certs/ca-certificates.crt"' >>$script
|
2015-12-03 23:09:55 +00:00
|
|
|
|
|
|
|
if [ ${SDKMACHINE} = "i686" ]; then
|
|
|
|
echo 'export NO32LIBS="0"' >>$script
|
|
|
|
echo 'echo "$BB_ENV_EXTRAWHITE" | grep -q "NO32LIBS"' >>$script
|
|
|
|
echo '[ $? != 0 ] && export BB_ENV_EXTRAWHITE="NO32LIBS $BB_ENV_EXTRAWHITE"' >>$script
|
|
|
|
fi
|
2013-06-07 11:05:01 +00:00
|
|
|
}
|