lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 1 | inherit cross |
| 2 | |
| 3 | CLASSOVERRIDE = "class-crosssdk" |
| 4 | NATIVESDKLIBC ?= "libc-glibc" |
| 5 | LIBCOVERRIDE = ":${NATIVESDKLIBC}" |
| 6 | MACHINEOVERRIDES = "" |
| 7 | PACKAGE_ARCH = "${SDK_ARCH}" |
| 8 | |
| 9 | python () { |
| 10 | # set TUNE_PKGARCH to SDK_ARCH |
| 11 | d.setVar('TUNE_PKGARCH', d.getVar('SDK_ARCH')) |
| 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))) |
| 17 | } |
| 18 | |
| 19 | STAGING_BINDIR_TOOLCHAIN = "${STAGING_DIR_NATIVE}${bindir_native}/${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}" |
| 20 | |
| 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 | |
| 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}" |
| 32 | TARGET_CPPFLAGS = "" |
| 33 | TARGET_CFLAGS = "" |
| 34 | TARGET_CXXFLAGS = "" |
| 35 | TARGET_LDFLAGS = "" |
| 36 | TARGET_FPU = "" |
| 37 | |
| 38 | |
| 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 | |
| 46 | do_packagedata[stamp-extra-info] = "" |
| 47 | |
| 48 | # Need to force this to ensure consitency across architectures |
| 49 | EXTRA_OECONF_GCC_FLOAT = "" |
| 50 | |
| 51 | USE_NLS = "no" |