Switch nativesdk-external-script to target

This alters the vars for the cross-compiler, not the build tools, so this is
most appropriate, and is one less thing to have in TOOLCHAIN_HOST_TASK.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
This commit is contained in:
Christopher Larson
2016-02-20 11:14:25 -07:00
parent 8bce5b8c3c
commit 26e7e8a719
3 changed files with 4 additions and 6 deletions

View File

@@ -51,7 +51,7 @@ PREFERRED_PROVIDER_libgcc = "libgcc-external"
PREFERRED_PROVIDER_linux-libc-headers = "linux-libc-headers-external"
# Support use of an external toolchain with the SDK/ADE/etc
TOOLCHAIN_HOST_TASK_append = " nativesdk-external-script"
TOOLCHAIN_TARGET_TASK_append = " sdk-env-external-toolchain"
# Pull in our utility functions for use elsewhere
INHERIT += "external-common"

View File

@@ -4,11 +4,9 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda
SRC_URI = "file://external.sh"
INHIBIT_DEFAULT_DEPS = "1"
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/"
install -d "${D}/environment-setup.d"
install -m 0644 -o root -g root "${WORKDIR}/external.sh" "${D}/environment-setup.d/"
}
FILES_${PN} += "${SDKPATHNATIVE}/environment-setup.d/*"
FILES_${PN} += "/environment-setup.d/*"