[Buildroot] [PATCH 2/2] package/busybox: redirect errors to /dev/null
Vincent Fazio
vfazio at xes-inc.com
Fri Oct 7 23:50:02 UTC 2022
When busybox.mk gets read, pkg-conf gets executed to determine the
location of relevant libraries.
When Busybox is built with per-package directories enabled, a number of
errors related to executing pkg-conf occur because directories have not
been synced to provide pkg-confg at the point when it executes.
These errors occur in stages prior configuring the package and are of
little consequence so redirect the errors to /dev/null.
Signed-off-by: Vincent Fazio <vfazio at xes-inc.com>
---
package/busybox/busybox.mk | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/package/busybox/busybox.mk b/package/busybox/busybox.mk
index ef628e90e9..0dec8d6d60 100644
--- a/package/busybox/busybox.mk
+++ b/package/busybox/busybox.mk
@@ -79,10 +79,10 @@ BUSYBOX_DEPENDENCIES = \
# support for NFS mounting with BusyBox
ifeq ($(BR2_PACKAGE_LIBTIRPC),y)
BUSYBOX_DEPENDENCIES += libtirpc host-pkgconf
-BUSYBOX_CFLAGS += "`$(PKG_CONFIG_HOST_BINARY) --cflags libtirpc`"
+BUSYBOX_CFLAGS += "`$(PKG_CONFIG_HOST_BINARY) --cflags libtirpc 2>/dev/null`"
# Don't use LDFLAGS for -ltirpc, because LDFLAGS is used for
# the non-final link of modules as well.
-BUSYBOX_CFLAGS_busybox += "`$(PKG_CONFIG_HOST_BINARY) --libs libtirpc`"
+BUSYBOX_CFLAGS_busybox += "`$(PKG_CONFIG_HOST_BINARY) --libs libtirpc 2>/dev/null`"
endif
# Allows the build system to tweak CFLAGS
--
2.25.1
More information about the buildroot
mailing list