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:19 +0100 |
commit | 61dbba9fabfcc271974303b149ec17aae5ee9e55 (patch) | |
tree | d9667ac835e1da35c21a00cb1ea68873b3392738 /meta | |
parent | a5b9fa3c450af3beac5f1b68797a1d044091fbbe (diff) | |
download | poky-61dbba9fabfcc271974303b149ec17aae5ee9e55.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.
(From OE-Core rev: 289a58ddbbd8bb3f5ae0d3421cfe8e75b60b0fbe)
Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-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 | |||
26 | INST_ARCH=$(uname -m | sed -e "s/i[3-6]86/ix86/" -e "s/x86[-_]64/x86_64/") | 26 | INST_ARCH=$(uname -m | sed -e "s/i[3-6]86/ix86/" -e "s/x86[-_]64/x86_64/") |
27 | SDK_ARCH=$(echo @SDK_ARCH@ | sed -e "s/i[3-6]86/ix86/" -e "s/x86[-_]64/x86_64/") | 27 | SDK_ARCH=$(echo @SDK_ARCH@ | sed -e "s/i[3-6]86/ix86/" -e "s/x86[-_]64/x86_64/") |
28 | 28 | ||
29 | INST_GCC_VER=$(gcc --version | sed -ne 's/.* \([0-9]\+\.[0-9]\+\)\.[0-9]\+.*/\1/p') | 29 | INST_GCC_VER=$(gcc --version 2>/dev/null | sed -ne 's/.* \([0-9]\+\.[0-9]\+\)\.[0-9]\+.*/\1/p') |
30 | SDK_GCC_VER='@SDK_GCC_VER@' | 30 | SDK_GCC_VER='@SDK_GCC_VER@' |
31 | 31 | ||
32 | verlte () { | 32 | verlte () { |