[Buildroot] [git commit branch/2022.11.x] support/dependencies/dependencies.sh: silence gcc plugin test
Peter Korsgaard
peter at korsgaard.com
Tue Feb 28 15:28:31 UTC 2023
commit: https://git.buildroot.net/buildroot/commit/?id=1174407c5f6759e960b20c0e89ee6bae3820ebb1
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2022.11.x
The gcc plugin test was not using the -q option to grep causing it to print
the line to stdout, so fix that.
While we're at it, adjust the locale check to use grep -q instead of
redirecting to /dev/null for consistency with the other checks.
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
(cherry picked from commit 4fbd2f6d2cf26225f73f584c3a0cacb1b2476f5f)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
support/dependencies/dependencies.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/support/dependencies/dependencies.sh b/support/dependencies/dependencies.sh
index cd0e900ff6..3822f0ca0e 100755
--- a/support/dependencies/dependencies.sh
+++ b/support/dependencies/dependencies.sh
@@ -203,7 +203,7 @@ if [ "${PATCH_MAJOR}" -lt 2 ] || [ "${PATCH_MAJOR}" -eq 2 -a "${PATCH_MINOR}" -l
exit 1;
fi
-if grep ^BR2_NEEDS_HOST_UTF8_LOCALE=y $BR2_CONFIG > /dev/null; then
+if grep -q ^BR2_NEEDS_HOST_UTF8_LOCALE=y $BR2_CONFIG ; then
if ! which locale > /dev/null ; then
echo
echo "You need locale support on your build machine to build a toolchain supporting locales"
@@ -263,7 +263,7 @@ if grep -q ^BR2_HOSTARCH_NEEDS_IA32_COMPILER=y $BR2_CONFIG ; then
fi
fi
-if grep ^BR2_NEEDS_HOST_GCC_PLUGIN_SUPPORT=y $BR2_CONFIG ; then
+if grep -q ^BR2_NEEDS_HOST_GCC_PLUGIN_SUPPORT=y $BR2_CONFIG ; then
if ! echo "#include <gcc-plugin.h>" | $HOSTCXX_NOCCACHE -I$($HOSTCXX_NOCCACHE -print-file-name=plugin)/include -x c++ -c - -o /dev/null ; then
echo
echo "Your Buildroot configuration needs a host compiler capable of building gcc plugins."
More information about the buildroot
mailing list