Skip to content

Commit d42f0c6

Browse files
seehearfeeltsbogend
authored andcommitted
MIPS: 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 moving the related file to use "grep -E" instead. Here are the steps to install the latest grep: wget http://ftp.gnu.org/gnu/grep/grep-3.8.tar.gz tar xf grep-3.8.tar.gz cd grep-3.8 && ./configure && make sudo make install export PATH=/usr/local/bin:$PATH Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
1 parent ca637c0 commit d42f0c6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

arch/mips/Makefile

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

319319
ifdef CONFIG_MIPS
320320
CHECKFLAGS += $(shell $(CC) $(KBUILD_CFLAGS) -dM -E -x c /dev/null | \
321-
egrep -vw '__GNUC_(MINOR_|PATCHLEVEL_)?_' | \
321+
grep -E -vw '__GNUC_(MINOR_|PATCHLEVEL_)?_' | \
322322
sed -e "s/^\#define /-D'/" -e "s/ /'='/" -e "s/$$/'/" -e 's/\$$/&&/g')
323323
endif
324324

arch/mips/vdso/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ KCOV_INSTRUMENT := n
7171

7272
# Check that we don't have PIC 'jalr t9' calls left
7373
quiet_cmd_vdso_mips_check = VDSOCHK $@
74-
cmd_vdso_mips_check = if $(OBJDUMP) --disassemble $@ | egrep -h "jalr.*t9" > /dev/null; \
74+
cmd_vdso_mips_check = if $(OBJDUMP) --disassemble $@ | grep -E -h "jalr.*t9" > /dev/null; \
7575
then (echo >&2 "$@: PIC 'jalr t9' calls are not supported"; \
7676
rm -f $@; /bin/false); fi
7777

0 commit comments

Comments
 (0)