toolchain-scripts.bbclass:Add CROSS_COMPILE variable to environment-setup file
when compiling the linux kernel manually. users need to set CROSS_COMPILE separately. adding the CROSS_COMPILE variable will be nice for using. (From OE-Core rev: b66ec45e5dd9418a6568c04ef30854531a4b66f3) Signed-off-by: Zongchun Yu <b40527@freescale.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
9fa1590474
commit
360bfe943a
|
@ -47,6 +47,7 @@ toolchain_create_sdk_env_script () {
|
|||
echo 'export OECORE_SDK_VERSION="${SDK_VERSION}"' >> $script
|
||||
echo 'export PYTHONHOME=${SDKPATHNATIVE}${prefix_nativesdk}' >> $script
|
||||
echo 'export ARCH=${ARCH}' >> $script
|
||||
echo 'export CROSS_COMPILE=${TARGET_PREFIX}' >> $script
|
||||
}
|
||||
|
||||
# This function creates an environment-setup-script in the TMPDIR which enables
|
||||
|
@ -92,6 +93,7 @@ toolchain_create_tree_env_script () {
|
|||
echo 'export OECORE_DISTRO_VERSION="${DISTRO_VERSION}"' >> $script
|
||||
echo 'export OECORE_SDK_VERSION="${SDK_VERSION}"' >> $script
|
||||
echo 'export ARCH=${ARCH}' >> $script
|
||||
echo 'export CROSS_COMPILE=${TARGET_PREFIX}' >> $script
|
||||
}
|
||||
|
||||
# This function creates an environment-setup-script for use by the ADT installer
|
||||
|
@ -137,6 +139,7 @@ toolchain_create_sdk_env_script_for_installer () {
|
|||
echo 'export OECORE_SDK_VERSION="${SDK_VERSION}"' >> $script
|
||||
echo 'export PYTHONHOME=${SDKPATHNATIVE}${prefix_nativesdk}' >> $script
|
||||
echo 'export ARCH=${ARCH}' >> $script
|
||||
echo 'export CROSS_COMPILE=${TARGET_PREFIX}' >> $script
|
||||
}
|
||||
|
||||
#we get the cached site config in the runtime
|
||||
|
|
Loading…
Reference in New Issue