author: Masahiro Yamada <masahiroy@kernel.org> 2021-06-10 11:03:31 +0900
committer: Helge Deller <deller@gmx.de> 2021-09-01 21:52:02 +0200
commit: 5f6e0fe01b6b33894cf6f61b359ab5a6d2b7674e
parent: 8ef5b28d670b76601e14476b00a505854abc838b
Commit Summary:
Diffstat:
1 file changed, 3 insertions, 3 deletions
diff --git a/arch/parisc/Makefile b/arch/parisc/Makefile
index 6c27940eff03..fcde3ffa0221 100644
--- a/arch/parisc/Makefile
+++ b/arch/parisc/Makefile
@@ -25,18 +25,18 @@ CHECKFLAGS += -D__hppa__=1
ifdef CONFIG_64BIT
UTS_MACHINE := parisc64
CHECKFLAGS += -D__LP64__=1
-CC_ARCHES = hppa64
LD_BFD := elf64-hppa-linux
else # 32-bit
-CC_ARCHES = hppa hppa2.0 hppa1.1
LD_BFD := elf32-hppa-linux
endif
# select defconfig based on actual architecture
-ifeq ($(shell uname -m),parisc64)
+ifeq ($(ARCH),parisc64)
KBUILD_DEFCONFIG := generic-64bit_defconfig
+ CC_ARCHES := hppa64
else
KBUILD_DEFCONFIG := generic-32bit_defconfig
+ CC_ARCHES := hppa hppa2.0 hppa1.1
endif
export LD_BFD