aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChangqing Li <changqing.li@windriver.com>2020-10-16 10:40:25 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-10-17 23:22:15 +0100
commit289a58ddbbd8bb3f5ae0d3421cfe8e75b60b0fbe (patch)
treeed88c313e61af95ae8dc77b1629cb82b6b77ceb9
parent6c3f56020da7a26c2daea73e39c2f324f1f597db (diff)
downloadopenembedded-core-contrib-289a58ddbbd8bb3f5ae0d3421cfe8e75b60b0fbe.tar.gz
openembedded-core-contrib-289a58ddbbd8bb3f5ae0d3421cfe8e75b60b0fbe.tar.bz2
openembedded-core-contrib-289a58ddbbd8bb3f5ae0d3421cfe8e75b60b0fbe.zip
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>
-rw-r--r--meta/files/toolchain-shar-extract.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/files/toolchain-shar-extract.sh b/meta/files/toolchain-shar-extract.sh
index 04527f891f8..bea6d4189a0 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 () {