From ad1372504729301a60d2b07b7701726b42d4beb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Tue, 6 Oct 2020 17:16:26 +0000 Subject: [PATCH] makefile: Fix usage error with busybox grep Busybox grep does not support long options. In fact, the utilized long options are not mandated by POSIX.1-2008. Using the short options allows building RIOT on Alpine Linux which utilizes Busybox instead of GNU coreutils by default. --- makefiles/usb-codes.inc.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makefiles/usb-codes.inc.mk b/makefiles/usb-codes.inc.mk index ccc3e57926..175137bac3 100644 --- a/makefiles/usb-codes.inc.mk +++ b/makefiles/usb-codes.inc.mk @@ -19,7 +19,7 @@ endif USB_VID_TESTING = 1209 USB_PID_TESTING = 7D01 usb_id_check: - @if grep --quiet --ignore-case "^$(USB_VID) $(USB_PID)$$" $(RIOTBASE)/dist/usb_id_testing; then \ + @if grep -q -i "^$(USB_VID) $(USB_PID)$$" $(RIOTBASE)/dist/usb_id_testing; then \ $(COLOR_ECHO) "$(COLOR_RED)Private testing pid.codes USB VID/PID used!, do not use it outside of test environments!$(COLOR_RESET)" 1>&2 ; \ $(COLOR_ECHO) "$(COLOR_RED)MUST NOT be used on any device redistributed, sold or manufactured, VID/PID is not unique!$(COLOR_RESET)" 1>&2 ; \ fi