Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame^] | 1 | DESCRIPTION = "SDK type target for building a standalone tarball containing python3, chrpath, make, git and tar. The \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 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 ?= "\ |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame^] | 11 | nativesdk-python3-core \ |
| 12 | nativesdk-python3-modules \ |
| 13 | nativesdk-python3-misc \ |
| 14 | nativesdk-python3-git \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 15 | nativesdk-ncurses-terminfo-base \ |
| 16 | nativesdk-chrpath \ |
| 17 | nativesdk-tar \ |
| 18 | nativesdk-buildtools-perl-dummy \ |
| 19 | nativesdk-git \ |
| 20 | nativesdk-git-perltools \ |
| 21 | nativesdk-pigz \ |
| 22 | nativesdk-make \ |
| 23 | nativesdk-wget \ |
| 24 | nativesdk-ca-certificates \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 25 | nativesdk-texinfo \ |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame^] | 26 | nativesdk-locale-base-en-us \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 27 | " |
| 28 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame^] | 29 | MULTIMACH_TARGET_SYS = "${SDK_ARCH}-nativesdk${SDK_VENDOR}-${SDK_OS}" |
| 30 | PACKAGE_ARCH = "${SDK_ARCH}_${SDK_OS}" |
| 31 | PACKAGE_ARCHS = "" |
| 32 | TARGET_ARCH = "none" |
| 33 | TARGET_OS = "none" |
| 34 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 35 | SDK_PACKAGE_ARCHS += "buildtools-dummy-${SDKPKGSUFFIX}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 36 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame^] | 37 | TOOLCHAIN_OUTPUTNAME ?= "${SDK_ARCH}-buildtools-nativesdk-standalone-${DISTRO_VERSION}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 38 | |
| 39 | SDK_TITLE = "Build tools" |
| 40 | |
| 41 | RDEPENDS = "${TOOLCHAIN_HOST_TASK}" |
| 42 | |
| 43 | EXCLUDE_FROM_WORLD = "1" |
| 44 | |
| 45 | inherit meta |
| 46 | inherit populate_sdk |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame^] | 47 | inherit toolchain-scripts-base |
| 48 | inherit nopackages |
| 49 | |
| 50 | deltask install |
| 51 | deltask package |
| 52 | deltask packagedata |
| 53 | deltask populate_sysroot |
| 54 | |
| 55 | do_populate_sdk[stamp-extra-info] = "${PACKAGE_ARCH}" |
| 56 | |
| 57 | REAL_MULTIMACH_TARGET_SYS = "none" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 58 | |
| 59 | create_sdk_files_append () { |
| 60 | rm -f ${SDK_OUTPUT}/${SDKPATH}/site-config-* |
| 61 | rm -f ${SDK_OUTPUT}/${SDKPATH}/environment-setup-* |
| 62 | rm -f ${SDK_OUTPUT}/${SDKPATH}/version-* |
| 63 | |
| 64 | # Generate new (mini) sdk-environment-setup file |
| 65 | script=${1:-${SDK_OUTPUT}/${SDKPATH}/environment-setup-${SDK_SYS}} |
| 66 | touch $script |
| 67 | echo 'export PATH=${SDKPATHNATIVE}${bindir_nativesdk}:$PATH' >> $script |
| 68 | # In order for the self-extraction script to correctly extract and set up things, |
| 69 | # we need a 'OECORE_NATIVE_SYSROOT=xxx' line in environment setup script. |
| 70 | # However, buildtools-tarball is inherently a tool set instead of a fully functional SDK, |
| 71 | # so instead of exporting the variable, we use a comment here. |
| 72 | echo '#OECORE_NATIVE_SYSROOT="${SDKPATHNATIVE}"' >> $script |
| 73 | toolchain_create_sdk_version ${SDK_OUTPUT}/${SDKPATH}/version-${SDK_SYS} |
| 74 | |
| 75 | echo 'export GIT_SSL_CAINFO="${SDKPATHNATIVE}${sysconfdir}/ssl/certs/ca-certificates.crt"' >>$script |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 76 | |
| 77 | if [ "${SDKMACHINE}" = "i686" ]; then |
| 78 | echo 'export NO32LIBS="0"' >>$script |
| 79 | echo 'echo "$BB_ENV_EXTRAWHITE" | grep -q "NO32LIBS"' >>$script |
| 80 | echo '[ $? != 0 ] && export BB_ENV_EXTRAWHITE="NO32LIBS $BB_ENV_EXTRAWHITE"' >>$script |
| 81 | fi |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 82 | } |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 83 | |
| 84 | # buildtools-tarball doesn't need config site |
| 85 | TOOLCHAIN_NEED_CONFIGSITE_CACHE = "" |
| 86 | |
| 87 | # The recipe doesn't need any default deps |
| 88 | INHIBIT_DEFAULT_DEPS = "1" |