toolchain-scripts: add TOOLCHAIN_PATH_ADD to PATH

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
This commit is contained in:
Christopher Larson
2012-10-30 15:38:23 -07:00
parent f367734c1c
commit 1e24d0e84a
2 changed files with 18 additions and 0 deletions
@@ -0,0 +1,15 @@
toolchain_create_sdk_env_script_append () {
if [ -n "${TOOLCHAIN_PATH_ADD}" ]; then
echo 'PATH="${TOOLCHAIN_PATH_ADD}$PATH"' >>$script
fi
}
toolchain_create_tree_env_script_append () {
if [ -n "${TOOLCHAIN_PATH_ADD}" ]; then
echo 'PATH="${TOOLCHAIN_PATH_ADD}$PATH"' >>$script
fi
}
toolchain_create_sdk_env_script_for_installer_append () {
if [ -n "${TOOLCHAIN_PATH_ADD}" ]; then
echo 'PATH="${TOOLCHAIN_PATH_ADD}$PATH"' >>$script
fi
}
@@ -11,6 +11,9 @@ PATH =. "${TOOLCHAIN_PATH_ADD}"
# Don't ship any toolchain binaries in the sdk for the time being
TOOLCHAIN_HOST_TASK ?= "nativesdk-packagegroup-sdk-host meta-environment-${TRANSLATED_TARGET_ARCH}"
# Add the external toolchain to the sdk setup script PATH
INHERIT += "toolchain-scripts-external"
localedir = "${exec_prefix}/lib/locale"
CSL_TARGET_SYS_powerpc ?= "powerpc-linux-gnu powerpc-mentor-linux-gnu"