Use --no-sysroot-suffix

With this, we can avoid the need to create a symlink for the multilib sysroot
suffix. This also adds a nativesdk package to the sdk to adjust the
environment setup there to use it as well.

JIRA: SB-6018

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
This commit is contained in:
Christopher Larson
2015-10-02 13:41:44 -07:00
parent f971b6f2cc
commit 5ce0b68788
5 changed files with 23 additions and 26 deletions

View File

@@ -0,0 +1,4 @@
export CC="$CC --no-sysroot-suffix"
export CXX="$CXX --no-sysroot-suffix"
export CPP="$CPP --no-sysroot-suffix"
export KCFLAGS="$KCFLAGS --no-sysroot-suffix"

View File

@@ -0,0 +1,13 @@
SUMMARY = "Adjustments to the SDK environment for an external toolchain."
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
SRC_URI = "file://external.sh"
inherit nativesdk
do_install () {
install -d "${D}${SDKPATHNATIVE}/environment-setup.d"
install -m 0644 -o root -g root "${WORKDIR}/external.sh" "${D}${SDKPATHNATIVE}/environment-setup.d/"
}
FILES_${PN} += "${SDKPATHNATIVE}/environment-setup.d/*"