powerpc: comvert relocs_check to a shell script using grep
PATCH v4 1/1 powerpc: comvert relocs_check to a shell script using grep
This runs a bit faster and removes another use of perl from the kernel build.
Signed-off-by Stephen Rothwell <[email protected]>
---
v4: don't do checks on $objdump or $vmlinux as it will become pretty
obvious if they are not the correct things (Michael)
v3: use $# instead of ${#*} (thanks David Laight)
also added check on vmlinux and objdump
v2: address ShellCheck comments from Michael
arch/powerpc/Makefile | 4 +-- arch/powerpc/relocs_check.pl | 66 -------------------------------------------- arch/powerpc/relocs_check.sh | 59 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 61 insertions(+), 68 deletions(-) delete mode 100755 arch/powerpc/relocs_check.pl create mode 100755 arch/powerpc/relocs_check.sh
arch/powerpc/Makefile +2 -2
@@ -248,10 +248,10 @@ boot := arch/$(ARCH)/boot ifeq ($(CONFIG_RELOCATABLE),y) quiet_cmd_relocs_check = CALL $< - cmd_relocs_check = perl $< "$(OBJDUMP)" "$(obj)/vmlinux" + cmd_relocs_check = $(CONFIG_SHELL) $< "$(OBJDUMP)" "$(obj)/vmlinux" PHONY += relocs_check -relocs_check: arch/powerpc/relocs_check.pl vmlinux +relocs_check: arch/powerpc/relocs_check.sh vmlinux $(call cmd,relocs_check) zImage: relocs_check
arch/powerpc/relocs_check.pl deleted +0 -66
66 lines not on this page · raw message
arch/powerpc/relocs_check.sh new file +59 -0
59 lines not on this page · raw message
Signature · 5 lines
2.1.4 -- Cheers, Stephen Rothwell [email protected]
Hi all,
Quoted 5 lines · On Wed, 18 Mar 2015 16:46:16 +1100 Stephen Rothwell <[email protected]>…
This runs a bit faster and removes another use of perl from the kernel build.
Signed-off-by Stephen Rothwell <[email protected]>
I forgot to add in the
Acked-by Tony Breeds <[email protected]>
Signature · 2 lines
Cheers, Stephen Rothwell [email protected]