kernel-open/conftest.sh: fix non-portable usage of tr

This commit is contained in:
git-bruh 2024-03-07 21:31:12 +05:30
parent 476bd34534
commit d594b3f02c
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -71,7 +71,8 @@ test_header_presence() {
TEST_CFLAGS="-E -M $CFLAGS"
file="$1"
file_define=NV_`echo $file | tr '/.\-a-z' '___A-Z'`_PRESENT
# Replace '.', '/', '-' with '_'
file_define=NV_`echo $file | awk '{ gsub(/\.|\/|-/, "_", $1); print toupper($0) }'`_PRESENT
CODE="#include <$file>"