Skip to content

Commit f97c538

Browse files
committed
Lint: Make tab checks portable
Signed-off-by: Brendan Moran <brendan.moran@arm.com>
1 parent 229c0f4 commit f97c538

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

scripts/format

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ info "Expanding tabs"
6969
expand-tabs()
7070
{
7171
git ls-files -- ":/" ":/!:Makefile" ":/!:**/Makefile" ":/!:**/Makefile.*" ":/!:Makefile.*" ":/!:*.mk" ":/!:*.patch" ":/!:*.S" ":/!:*.inc" ":/!:nix/valgrind/*.txt" | xargs -P "$nproc" -I {} sh -c '
72-
if [ ! -L {} ] && grep -Pq '"'"'\t'"'"' "{}"; then
72+
if [ ! -L {} ] && grep -q "$(printf '"'"'\t'"'"')" "{}"; then
7373
tmp=$(mktemp)
7474
expand -t 4 "{}" > "$tmp" && mv "$tmp" "{}"
7575
echo "{}"

scripts/lint

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,8 @@ gh_group_end
269269
check-tabs()
270270
{
271271
for file in $(git ls-files -- ":/" ":/!:Makefile" ":/!:**/Makefile" ":/!:**/Makefile.*" ":/!:Makefile.*" ":/!:*.mk" ":/!:*.patch" ":/!:*.S" ":/!:*.inc" ":/!:nix/valgrind/*.txt"); do
272-
if [[ ! -L $file ]] && grep -Pq '\t' "$file"; then
273-
l=$(grep -Pn '\t' "$file" | head -1 | cut -d: -f1)
272+
if [[ ! -L $file ]] && grep -q $'\t' "$file"; then
273+
l=$(grep -n $'\t' "$file" | head -1 | cut -d: -f1)
274274
echo "$file $l"
275275
fi
276276
done

test/zephyr/app/Kconfig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
# models (and QEMU's mps3-an547) supports it. Force-select the extension so the
66
# Armv8.1-M MVE FIPS202 backend can be built. Enabled per target by platform.mk.
77
config FIPS202_MVE_BACKEND
8-
bool "Build with the Armv8.1-M MVE FIPS202 backend"
9-
select FPU
10-
select ARMV8_M_DSP
11-
select ARMV8_1_M_MVEI
12-
select ARMV8_1_M_MVEF
8+
bool "Build with the Armv8.1-M MVE FIPS202 backend"
9+
select FPU
10+
select ARMV8_M_DSP
11+
select ARMV8_1_M_MVEI
12+
select ARMV8_1_M_MVEF
1313

1414
source "Kconfig.zephyr"

0 commit comments

Comments
 (0)