summaryrefslogtreecommitdiffstats
path: root/meta/files
diff options
context:
space:
mode:
authorChangqing Li <changqing.li@windriver.com>2020-10-16 10:40:25 +0800
committerSteve Sakoman <steve@sakoman.com>2020-10-19 04:38:39 -1000
commit1bdaf40c02791fd2c22c19414f554a3c8d26e476 (patch)
treebcfe6965b603b634c00aa95d3c9dc85b5be10271 /meta/files
parent8d2702b7fe51474764c7392ef6386b8d199b88a6 (diff)
downloadopenembedded-core-contrib-1bdaf40c02791fd2c22c19414f554a3c8d26e476.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> (cherry picked from commit 289a58ddbbd8bb3f5ae0d3421cfe8e75b60b0fbe) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/files')
-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 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 () {