Skip to content

Commit 83f638b

Browse files
seehearfeelchenhuacai
authored andcommitted
LoongArch: Makefile: Use "grep -E" instead of "egrep"
The latest version of grep claims the egrep is now obsolete so the build now contains warnings that look like: egrep: warning: egrep is obsolescent; using grep -E Fix this up by changing the LoongArch Makefile to use "grep -E" instead. Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
1 parent eb70814 commit 83f638b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/loongarch/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ KBUILD_LDFLAGS += -m $(ld-emul)
9797

9898
ifdef CONFIG_LOONGARCH
9999
CHECKFLAGS += $(shell $(CC) $(KBUILD_CFLAGS) -dM -E -x c /dev/null | \
100-
egrep -vw '__GNUC_(MINOR_|PATCHLEVEL_)?_' | \
100+
grep -E -vw '__GNUC_(MINOR_|PATCHLEVEL_)?_' | \
101101
sed -e "s/^\#define /-D'/" -e "s/ /'='/" -e "s/$$/'/" -e 's/\$$/&&/g')
102102
endif
103103

0 commit comments

Comments
 (0)