Skip to content

Commit ad13725

Browse files
committed
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.
1 parent 71fe668 commit ad13725

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

makefiles/usb-codes.inc.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ endif
1919
USB_VID_TESTING = 1209
2020
USB_PID_TESTING = 7D01
2121
usb_id_check:
22-
@if grep --quiet --ignore-case "^$(USB_VID) $(USB_PID)$$" $(RIOTBASE)/dist/usb_id_testing; then \
22+
@if grep -q -i "^$(USB_VID) $(USB_PID)$$" $(RIOTBASE)/dist/usb_id_testing; then \
2323
$(COLOR_ECHO) "$(COLOR_RED)Private testing pid.codes USB VID/PID used!, do not use it outside of test environments!$(COLOR_RESET)" 1>&2 ; \
2424
$(COLOR_ECHO) "$(COLOR_RED)MUST NOT be used on any device redistributed, sold or manufactured, VID/PID is not unique!$(COLOR_RESET)" 1>&2 ; \
2525
fi

0 commit comments

Comments
 (0)