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