Skip to contentSkip to conversation

powerpc: comvert relocs_check to a shell script using grep

PATCH In review Stephen Rothwell 1 participant 2 messages Mar 18, 2015 PowerPC

lore
Share & tools
lore
#0 lore raw

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.

---
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
index 132d9c681d6a..1e868023b2c3 100644
@@ -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]