summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorFang Jia <fang.jia@windriver.com>2015-11-30 16:50:34 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-12-08 10:20:47 +0000
commit9d788d73307d3bb1733dca3f399bf3dabedd3d2b (patch)
treeb654de0c49803dec62eef956b722e02ce555fb52 /meta/classes
parent82ab99f7def6f0a4f20ee0673d7b6db4e8e8676f (diff)
downloadpoky-9d788d73307d3bb1733dca3f399bf3dabedd3d2b.tar.gz
toolchain-scripts.bbclass: unset command_not_found_handle
On Ubuntu-system, When sourcing the env.sh from an exported sdk, and running a bogus linux command (for example "asd"), a core dump of python is usually generated. Unset the command_not_found_handle to fix it. (From OE-Core rev: 473ccbebb426df757adb8955eaa5e191d88180d1) Signed-off-by: Fang Jia <fang.jia@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/toolchain-scripts.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/toolchain-scripts.bbclass b/meta/classes/toolchain-scripts.bbclass
index d0b2b9148c..ab4feb0834 100644
--- a/meta/classes/toolchain-scripts.bbclass
+++ b/meta/classes/toolchain-scripts.bbclass
@@ -32,6 +32,7 @@ toolchain_create_sdk_env_script () {
32 echo 'export OECORE_TARGET_SYSROOT="$SDKTARGETSYSROOT"' >> $script 32 echo 'export OECORE_TARGET_SYSROOT="$SDKTARGETSYSROOT"' >> $script
33 echo "export OECORE_ACLOCAL_OPTS=\"-I $sdkpathnative/usr/share/aclocal\"" >> $script 33 echo "export OECORE_ACLOCAL_OPTS=\"-I $sdkpathnative/usr/share/aclocal\"" >> $script
34 echo "export PYTHONHOME=$sdkpathnative$prefix" >> $script 34 echo "export PYTHONHOME=$sdkpathnative$prefix" >> $script
35 echo 'unset command_not_found_handle' >> $script
35 36
36 toolchain_shared_env_script 37 toolchain_shared_env_script
37} 38}