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