blob: 824b1bcff47bcd36a70aa1d7b8724b6cf07131ff [file] [log] [blame]
Patrick Williams92b42cb2022-09-03 06:53:57 -05001#
2# Copyright OpenEmbedded Contributors
3#
4# SPDX-License-Identifier: MIT
5#
6
7inherit cross
8
9CLASSOVERRIDE = "class-crosssdk"
10NATIVESDKLIBC ?= "libc-glibc"
11LIBCOVERRIDE = ":${NATIVESDKLIBC}"
12MACHINEOVERRIDES = ""
13PACKAGE_ARCH = "${SDK_ARCH}"
14
15python () {
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
25STAGING_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.
29SSTATE_SCAN_CMD ?= "${SSTATE_SCAN_CMD_NATIVE}"
30
31TARGET_ARCH = "${SDK_ARCH}"
32TARGET_VENDOR = "${SDK_VENDOR}"
33TARGET_OS = "${SDK_OS}"
34TARGET_PREFIX = "${SDK_PREFIX}"
35TARGET_CC_ARCH = "${SDK_CC_ARCH}"
36TARGET_LD_ARCH = "${SDK_LD_ARCH}"
37TARGET_AS_ARCH = "${SDK_AS_ARCH}"
38TARGET_CPPFLAGS = ""
39TARGET_CFLAGS = ""
40TARGET_CXXFLAGS = ""
41TARGET_LDFLAGS = ""
42TARGET_FPU = ""
43
44
45target_libdir = "${SDKPATHNATIVE}${libdir_nativesdk}"
46target_includedir = "${SDKPATHNATIVE}${includedir_nativesdk}"
47target_base_libdir = "${SDKPATHNATIVE}${base_libdir_nativesdk}"
48target_prefix = "${SDKPATHNATIVE}${prefix_nativesdk}"
49target_exec_prefix = "${SDKPATHNATIVE}${prefix_nativesdk}"
50baselib = "lib"
51
52do_packagedata[stamp-extra-info] = ""
53
54# Need to force this to ensure consitency across architectures
55EXTRA_OECONF_GCC_FLOAT = ""
56
57USE_NLS = "no"