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 ?= "\ |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame^] | 9 | nativesdk-sdk-provides-dummy \ |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 10 | nativesdk-python3-core \ |
| 11 | nativesdk-python3-modules \ |
| 12 | nativesdk-python3-misc \ |
| 13 | nativesdk-python3-git \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 14 | nativesdk-python3-testtools \ |
| 15 | nativesdk-python3-subunit \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 16 | nativesdk-ncurses-terminfo-base \ |
| 17 | nativesdk-chrpath \ |
| 18 | nativesdk-tar \ |
| 19 | nativesdk-buildtools-perl-dummy \ |
| 20 | nativesdk-git \ |
| 21 | nativesdk-git-perltools \ |
| 22 | nativesdk-pigz \ |
| 23 | nativesdk-make \ |
| 24 | nativesdk-wget \ |
| 25 | nativesdk-ca-certificates \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 26 | nativesdk-texinfo \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 27 | nativesdk-libnss-nis \ |
| 28 | nativesdk-rpcsvc-proto \ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 29 | nativesdk-patch \ |
| 30 | nativesdk-mtools \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 31 | " |
| 32 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 33 | MULTIMACH_TARGET_SYS = "${SDK_ARCH}-nativesdk${SDK_VENDOR}-${SDK_OS}" |
| 34 | PACKAGE_ARCH = "${SDK_ARCH}_${SDK_OS}" |
| 35 | PACKAGE_ARCHS = "" |
| 36 | TARGET_ARCH = "none" |
| 37 | TARGET_OS = "none" |
| 38 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 39 | SDK_PACKAGE_ARCHS += "buildtools-dummy-${SDKPKGSUFFIX}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 40 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 41 | TOOLCHAIN_OUTPUTNAME ?= "${SDK_ARCH}-buildtools-nativesdk-standalone-${DISTRO_VERSION}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 42 | |
| 43 | SDK_TITLE = "Build tools" |
| 44 | |
| 45 | RDEPENDS = "${TOOLCHAIN_HOST_TASK}" |
| 46 | |
| 47 | EXCLUDE_FROM_WORLD = "1" |
| 48 | |
| 49 | inherit meta |
| 50 | inherit populate_sdk |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 51 | inherit toolchain-scripts-base |
| 52 | inherit nopackages |
| 53 | |
| 54 | deltask install |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 55 | deltask populate_sysroot |
| 56 | |
| 57 | do_populate_sdk[stamp-extra-info] = "${PACKAGE_ARCH}" |
| 58 | |
| 59 | REAL_MULTIMACH_TARGET_SYS = "none" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 60 | |
| 61 | create_sdk_files_append () { |
| 62 | rm -f ${SDK_OUTPUT}/${SDKPATH}/site-config-* |
| 63 | rm -f ${SDK_OUTPUT}/${SDKPATH}/environment-setup-* |
| 64 | rm -f ${SDK_OUTPUT}/${SDKPATH}/version-* |
| 65 | |
| 66 | # Generate new (mini) sdk-environment-setup file |
| 67 | script=${1:-${SDK_OUTPUT}/${SDKPATH}/environment-setup-${SDK_SYS}} |
| 68 | touch $script |
| 69 | echo 'export PATH=${SDKPATHNATIVE}${bindir_nativesdk}:$PATH' >> $script |
Andrew Geissler | 635e0e4 | 2020-08-21 15:58:33 -0500 | [diff] [blame] | 70 | echo 'export OECORE_NATIVE_SYSROOT="${SDKPATHNATIVE}"' >> $script |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 71 | 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] | 72 | echo 'export SSL_CERT_FILE="${SDKPATHNATIVE}${sysconfdir}/ssl/certs/ca-certificates.crt"' >>$script |
Andrew Geissler | 635e0e4 | 2020-08-21 15:58:33 -0500 | [diff] [blame] | 73 | |
| 74 | toolchain_create_sdk_version ${SDK_OUTPUT}/${SDKPATH}/version-${SDK_SYS} |
| 75 | |
| 76 | cat >> $script <<EOF |
| 77 | if [ -d "\$OECORE_NATIVE_SYSROOT/environment-setup.d" ]; then |
| 78 | for envfile in \$OECORE_NATIVE_SYSROOT/environment-setup.d/*.sh; do |
| 79 | . \$envfile |
| 80 | done |
| 81 | fi |
| 82 | EOF |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 83 | |
| 84 | if [ "${SDKMACHINE}" = "i686" ]; then |
| 85 | echo 'export NO32LIBS="0"' >>$script |
| 86 | echo 'echo "$BB_ENV_EXTRAWHITE" | grep -q "NO32LIBS"' >>$script |
| 87 | echo '[ $? != 0 ] && export BB_ENV_EXTRAWHITE="NO32LIBS $BB_ENV_EXTRAWHITE"' >>$script |
| 88 | fi |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 89 | } |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 90 | |
| 91 | # buildtools-tarball doesn't need config site |
| 92 | TOOLCHAIN_NEED_CONFIGSITE_CACHE = "" |
| 93 | |
| 94 | # The recipe doesn't need any default deps |
| 95 | INHIBIT_DEFAULT_DEPS = "1" |