summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorLaszlo Papp <lpapp@kde.org>2014-11-27 17:40:51 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-12-03 12:24:00 +0000
commit1ecad61a9d3ee0dc3a759fba3e95f6958e24512e (patch)
tree0832d9954e41073fab00db0a907967f08275e92c /meta
parent1a46946b82acade0942dfd4e1fc4fc6f799346b3 (diff)
downloadpoky-1ecad61a9d3ee0dc3a759fba3e95f6958e24512e.tar.gz
toolchain-script: Add support for ccache builds with the SDK
It is necessary to have an SDK for developers who build their software with ccache to speed up the compilation. Without resolving this, unfortunately the compilation will fail for them. (From OE-Core rev: 1d31ddb856a80ba9da1a64ed5d701dc0f7351ef7) Signed-off-by: Laszlo Papp <lpapp@kde.org> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/toolchain-scripts.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/toolchain-scripts.bbclass b/meta/classes/toolchain-scripts.bbclass
index d5b9675b7f..9836db4a4c 100644
--- a/meta/classes/toolchain-scripts.bbclass
+++ b/meta/classes/toolchain-scripts.bbclass
@@ -19,6 +19,7 @@ toolchain_create_sdk_env_script () {
19 EXTRAPATH="$EXTRAPATH:${SDKPATHNATIVE}${bindir_nativesdk}/${TARGET_ARCH}${TARGET_VENDOR}-$i" 19 EXTRAPATH="$EXTRAPATH:${SDKPATHNATIVE}${bindir_nativesdk}/${TARGET_ARCH}${TARGET_VENDOR}-$i"
20 done 20 done
21 echo 'export PATH=${SDKPATHNATIVE}${bindir_nativesdk}:${SDKPATHNATIVE}${bindir_nativesdk}/${TARGET_SYS}'$EXTRAPATH':$PATH' >> $script 21 echo 'export PATH=${SDKPATHNATIVE}${bindir_nativesdk}:${SDKPATHNATIVE}${bindir_nativesdk}/${TARGET_SYS}'$EXTRAPATH':$PATH' >> $script
22 echo 'export CCACHE_PATH=${SDKPATHNATIVE}${bindir_nativesdk}:${SDKPATHNATIVE}${bindir_nativesdk}/${TARGET_SYS}'$EXTRAPATH':$CCACHE_PATH' >> $script
22 echo 'export PKG_CONFIG_SYSROOT_DIR=$SDKTARGETSYSROOT' >> $script 23 echo 'export PKG_CONFIG_SYSROOT_DIR=$SDKTARGETSYSROOT' >> $script
23 echo 'export PKG_CONFIG_PATH=$SDKTARGETSYSROOT'"$libdir"'/pkgconfig' >> $script 24 echo 'export PKG_CONFIG_PATH=$SDKTARGETSYSROOT'"$libdir"'/pkgconfig' >> $script
24 echo 'export CONFIG_SITE=${SDKPATH}/site-config-'"${multimach_target_sys}" >> $script 25 echo 'export CONFIG_SITE=${SDKPATH}/site-config-'"${multimach_target_sys}" >> $script
@@ -37,6 +38,7 @@ toolchain_create_tree_env_script () {
37 rm -f $script 38 rm -f $script
38 touch $script 39 touch $script
39 echo 'export PATH=${STAGING_DIR_NATIVE}/usr/bin:${PATH}' >> $script 40 echo 'export PATH=${STAGING_DIR_NATIVE}/usr/bin:${PATH}' >> $script
41 echo 'export CCACHE_PATH=${STAGING_DIR_NATIVE}/usr/bin:${CCACHE_PATH}' >> $script
40 echo 'export PKG_CONFIG_SYSROOT_DIR=${PKG_CONFIG_SYSROOT_DIR}' >> $script 42 echo 'export PKG_CONFIG_SYSROOT_DIR=${PKG_CONFIG_SYSROOT_DIR}' >> $script
41 echo 'export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}' >> $script 43 echo 'export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}' >> $script
42 echo 'export CONFIG_SITE="${@siteinfo_get_files(d)}"' >> $script 44 echo 'export CONFIG_SITE="${@siteinfo_get_files(d)}"' >> $script