diff options
author | Fang Jia <fang.jia@windriver.com> | 2015-11-30 16:50:34 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-12-08 10:20:06 +0000 |
commit | 473ccbebb426df757adb8955eaa5e191d88180d1 (patch) | |
tree | 3f9e806380c0792f30581bbb52d225fb0ebaebab /meta/classes | |
parent | f7062f54c2ad601d9838d13bfe7933be92a63214 (diff) | |
download | openembedded-core-473ccbebb426df757adb8955eaa5e191d88180d1.tar.gz openembedded-core-473ccbebb426df757adb8955eaa5e191d88180d1.tar.bz2 openembedded-core-473ccbebb426df757adb8955eaa5e191d88180d1.zip |
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.
Signed-off-by: Fang Jia <fang.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/toolchain-scripts.bbclass | 1 |
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 () { echo 'export OECORE_TARGET_SYSROOT="$SDKTARGETSYSROOT"' >> $script echo "export OECORE_ACLOCAL_OPTS=\"-I $sdkpathnative/usr/share/aclocal\"" >> $script echo "export PYTHONHOME=$sdkpathnative$prefix" >> $script + echo 'unset command_not_found_handle' >> $script toolchain_shared_env_script } |