mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00

Similarlly to OE-Core rev 4b936cde58ca0a6f34092ce82640a02859110411 for cross.sdk, BUILD_* flags can't be used as TARGET_* flags gcc-crosssdk buils leaks config.log's through "gcc-stashed-builddir" and TARGET_* flags to libgcc cross-build through "gcc/libgcc.mvars" file on "gcc-stashed-builddir". This means that if BUILD_CFLAGS contains host-specific flags like "-isystem/usr/include" libgcc build will fail "do_qa_configure" and "do_package_qa" checks. Remove host-related flags from TARGET_* flags for gcc-crosssdk builds. [YOCTO #11874] (From OE-Core rev: 6e162e619b6f5173c073cd9bedbcadf205017e30) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
45 lines
1.2 KiB
Plaintext
45 lines
1.2 KiB
Plaintext
inherit cross
|
|
|
|
CLASSOVERRIDE = "class-crosssdk"
|
|
MACHINEOVERRIDES = ""
|
|
PACKAGE_ARCH = "${SDK_ARCH}"
|
|
python () {
|
|
# set TUNE_PKGARCH to SDK_ARCH
|
|
d.setVar('TUNE_PKGARCH', d.getVar('SDK_ARCH'))
|
|
}
|
|
|
|
STAGING_BINDIR_TOOLCHAIN = "${STAGING_DIR_NATIVE}${bindir_native}/${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}"
|
|
|
|
# This class encodes staging paths into its scripts data so can only be
|
|
# reused if we manipulate the paths.
|
|
SSTATE_SCAN_CMD ?= "${SSTATE_SCAN_CMD_NATIVE}"
|
|
|
|
TARGET_ARCH = "${SDK_ARCH}"
|
|
TARGET_VENDOR = "${SDK_VENDOR}"
|
|
TARGET_OS = "${SDK_OS}"
|
|
TARGET_PREFIX = "${SDK_PREFIX}"
|
|
TARGET_CC_ARCH = "${SDK_CC_ARCH}"
|
|
TARGET_LD_ARCH = "${SDK_LD_ARCH}"
|
|
TARGET_AS_ARCH = "${SDK_AS_ARCH}"
|
|
TARGET_CPPFLAGS = ""
|
|
TARGET_CFLAGS = ""
|
|
TARGET_CXXFLAGS = ""
|
|
TARGET_LDFLAGS = ""
|
|
TARGET_FPU = ""
|
|
|
|
|
|
target_libdir = "${SDKPATHNATIVE}${libdir_nativesdk}"
|
|
target_includedir = "${SDKPATHNATIVE}${includedir_nativesdk}"
|
|
target_base_libdir = "${SDKPATHNATIVE}${base_libdir_nativesdk}"
|
|
target_prefix = "${SDKPATHNATIVE}${prefix_nativesdk}"
|
|
target_exec_prefix = "${SDKPATHNATIVE}${prefix_nativesdk}"
|
|
baselib = "lib"
|
|
|
|
do_populate_sysroot[stamp-extra-info] = ""
|
|
do_packagedata[stamp-extra-info] = ""
|
|
|
|
# Need to force this to ensure consitency across architectures
|
|
EXTRA_OECONF_GCC_FLOAT = ""
|
|
|
|
USE_NLS = "no"
|