public inbox for linux-kbuild@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC][PATCH] Makefile: Fix checkstack.pl arm64 wrong or unknown architecture
@ 2019-05-31 15:26 George G. Davis
  2019-05-31 16:02 ` Masahiro Yamada
  0 siblings, 1 reply; 7+ messages in thread
From: George G. Davis @ 2019-05-31 15:26 UTC (permalink / raw)
  To: Andy Whitcroft, Joe Perches, Catalin Marinas, Will Deacon,
	linux-arm-kernel, Masahiro Yamada, Michal Marek, linux-kbuild,
	open list
  Cc: George G. Davis

The following error occurs for the `make ARCH=arm64 checkstack` case:

aarch64-linux-gnu-objdump -d vmlinux $(find . -name '*.ko') | \
perl ./scripts/checkstack.pl arm64
wrong or unknown architecture "arm64"

Fix the above error by setting `CHECKSTACK_ARCH := aarch64` for the
ARCH=arm64 case.

Signed-off-by: George G. Davis <george_davis@mentor.com>
---
 Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 11358153d8f2..3e615e8553c0 100644
--- a/Makefile
+++ b/Makefile
@@ -1695,7 +1695,11 @@ PHONY += checkstack kernelrelease kernelversion image_name
 ifeq ($(ARCH), um)
 CHECKSTACK_ARCH := $(SUBARCH)
 else
-CHECKSTACK_ARCH := $(ARCH)
+	ifeq ($(ARCH), arm64)
+		CHECKSTACK_ARCH := aarch64
+	else
+		CHECKSTACK_ARCH := $(ARCH)
+	endif
 endif
 checkstack:
 	$(OBJDUMP) -d vmlinux $$(find . -name '*.ko') | \
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-06-03 14:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-31 15:26 [RFC][PATCH] Makefile: Fix checkstack.pl arm64 wrong or unknown architecture George G. Davis
2019-05-31 16:02 ` Masahiro Yamada
2019-05-31 16:39   ` George G. Davis
2019-05-31 17:22     ` Masahiro Yamada
2019-05-31 17:45       ` George G. Davis
2019-06-01  2:09         ` Masahiro Yamada
2019-06-03 14:34           ` George G. Davis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox