mirror of
https://github.com/thead-yocto-mirror/meta-external-toolchain
synced 2026-09-16 12:13:08 +02:00
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:
4
recipes-sdk/external-script/external-script/external.sh
Normal file
4
recipes-sdk/external-script/external-script/external.sh
Normal 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"
|
||||
13
recipes-sdk/external-script/nativesdk-external-script.bb
Normal file
13
recipes-sdk/external-script/nativesdk-external-script.bb
Normal 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/*"
|
||||
Reference in New Issue
Block a user