Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | inherit cross |
| 2 | |
| 3 | CLASSOVERRIDE = "class-crosssdk" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 4 | NATIVESDKLIBC ?= "libc-glibc" |
| 5 | LIBCOVERRIDE = ":${NATIVESDKLIBC}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 6 | MACHINEOVERRIDES = "" |
| 7 | PACKAGE_ARCH = "${SDK_ARCH}" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 8 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 9 | python () { |
Brad Bishop | a5c52ff | 2018-11-23 10:55:50 +1300 | [diff] [blame] | 10 | # set TUNE_PKGARCH to SDK_ARCH |
| 11 | d.setVar('TUNE_PKGARCH', d.getVar('SDK_ARCH')) |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 12 | # Set features here to prevent appends and distro features backfill |
| 13 | # from modifying nativesdk distro features |
| 14 | features = set(d.getVar("DISTRO_FEATURES_NATIVESDK").split()) |
| 15 | filtered = set(bb.utils.filter("DISTRO_FEATURES", d.getVar("DISTRO_FEATURES_FILTER_NATIVESDK"), d).split()) |
| 16 | d.setVar("DISTRO_FEATURES", " ".join(sorted(features | filtered))) |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 17 | } |
| 18 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 19 | STAGING_BINDIR_TOOLCHAIN = "${STAGING_DIR_NATIVE}${bindir_native}/${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}" |
| 20 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 21 | # This class encodes staging paths into its scripts data so can only be |
| 22 | # reused if we manipulate the paths. |
| 23 | SSTATE_SCAN_CMD ?= "${SSTATE_SCAN_CMD_NATIVE}" |
| 24 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 25 | TARGET_ARCH = "${SDK_ARCH}" |
| 26 | TARGET_VENDOR = "${SDK_VENDOR}" |
| 27 | TARGET_OS = "${SDK_OS}" |
| 28 | TARGET_PREFIX = "${SDK_PREFIX}" |
| 29 | TARGET_CC_ARCH = "${SDK_CC_ARCH}" |
| 30 | TARGET_LD_ARCH = "${SDK_LD_ARCH}" |
| 31 | TARGET_AS_ARCH = "${SDK_AS_ARCH}" |
Brad Bishop | c4ea075 | 2018-11-15 14:30:15 -0800 | [diff] [blame] | 32 | TARGET_CPPFLAGS = "" |
| 33 | TARGET_CFLAGS = "" |
| 34 | TARGET_CXXFLAGS = "" |
| 35 | TARGET_LDFLAGS = "" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 36 | TARGET_FPU = "" |
| 37 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 38 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 39 | target_libdir = "${SDKPATHNATIVE}${libdir_nativesdk}" |
| 40 | target_includedir = "${SDKPATHNATIVE}${includedir_nativesdk}" |
| 41 | target_base_libdir = "${SDKPATHNATIVE}${base_libdir_nativesdk}" |
| 42 | target_prefix = "${SDKPATHNATIVE}${prefix_nativesdk}" |
| 43 | target_exec_prefix = "${SDKPATHNATIVE}${prefix_nativesdk}" |
| 44 | baselib = "lib" |
| 45 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 46 | do_packagedata[stamp-extra-info] = "" |
| 47 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 48 | # Need to force this to ensure consitency across architectures |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 49 | EXTRA_OECONF_GCC_FLOAT = "" |
| 50 | |
| 51 | USE_NLS = "no" |