rust: Use grep -Ev rather than relying on GNU grep
authorMatthew Maurer <mmaurer@google.com>
Thu, 28 Sep 2023 20:14:20 +0000 (20:14 +0000)
committerMiguel Ojeda <ojeda@kernel.org>
Sun, 15 Oct 2023 19:56:26 +0000 (21:56 +0200)
commita7135d10754760f0c038497b44c2c2f2b0fb5651
tree9a8d9a4a516ef94030638b019ed4925bd21e69ae
parent45f97e6385cad6d0e48a27ddcd08793bb4d35851
rust: Use grep -Ev rather than relying on GNU grep

While GNU grep supports '\|' when in basic regular expression mode, not
all grep implementations do (notably toybox grep, used to build the
Android kernel, does not). Switching to grep -Ev enables extended
regular expressions which includes support for the '|' operator.

Signed-off-by: Matthew Maurer <mmaurer@google.com>
Reviewed-by: Martin Rodriguez Reboredo <yakoyoku@gmail.com>
Reviewed-by: Trevor Gross <tmgross@umich.edu>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Tested-by: Alice Ryhl <aliceryhl@google.com>
Link: https://lore.kernel.org/r/20230928201421.2296518-1-mmaurer@google.com
[ Reworded for typo. ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/Makefile