diff options
author | Changqing Li <changqing.li@windriver.com> | 2020-10-16 10:40:25 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-10-17 23:22:15 +0100 |
commit | 289a58ddbbd8bb3f5ae0d3421cfe8e75b60b0fbe (patch) | |
tree | ed88c313e61af95ae8dc77b1629cb82b6b77ceb9 /meta/files | |
parent | 6c3f56020da7a26c2daea73e39c2f324f1f597db (diff) | |
download | openembedded-core-contrib-289a58ddbbd8bb3f5ae0d3421cfe8e75b60b0fbe.tar.gz |
toolchain-shar-extract.sh: don't print useless info
useless info "gcc: command not found" is printed when run
buildtools-extended on system without gcc.
Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/files')
-rw-r--r-- | meta/files/toolchain-shar-extract.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/files/toolchain-shar-extract.sh b/meta/files/toolchain-shar-extract.sh index 04527f891f..bea6d4189a 100644 --- a/meta/files/toolchain-shar-extract.sh +++ b/meta/files/toolchain-shar-extract.sh @@ -26,7 +26,7 @@ tweakpath /sbin INST_ARCH=$(uname -m | sed -e "s/i[3-6]86/ix86/" -e "s/x86[-_]64/x86_64/") SDK_ARCH=$(echo @SDK_ARCH@ | sed -e "s/i[3-6]86/ix86/" -e "s/x86[-_]64/x86_64/") -INST_GCC_VER=$(gcc --version | sed -ne 's/.* \([0-9]\+\.[0-9]\+\)\.[0-9]\+.*/\1/p') +INST_GCC_VER=$(gcc --version 2>/dev/null | sed -ne 's/.* \([0-9]\+\.[0-9]\+\)\.[0-9]\+.*/\1/p') SDK_GCC_VER='@SDK_GCC_VER@' verlte () { |