* [PATCH] sparc: fix KBUILD_DEFCONFIG for ARCH=sparc32
@ 2018-08-20 17:08 Masahiro Yamada
2018-08-21 19:41 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Masahiro Yamada @ 2018-08-20 17:08 UTC (permalink / raw)
To: David S . Miller, sparclinux; +Cc: Randy Dunlap, Masahiro Yamada, linux-kernel
As commit 5ba800962a80 ("kbuild: update ARCH alias info for sparc")
addressed, SPARC accepts ARCH=sparc32 as an alias.
However, arch/sparc/Makefile wrongly sets KBUILD_DEFCONFIG, then
sparc64_defconfig is chosen as the base configuration for ARCH=sparc32.
$ make ARCH=sparc32 defconfig
*** Default configuration is based on 'sparc64_defconfig'
#
# configuration written to .config
#
Fix the logic to choose sparc64_defconfig only when ARCH=sparc64.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---
arch/sparc/Makefile | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/sparc/Makefile b/arch/sparc/Makefile
index 966a13d..e32ef20 100644
--- a/arch/sparc/Makefile
+++ b/arch/sparc/Makefile
@@ -9,10 +9,10 @@
# Copyright (C) 1998 Jakub Jelinek (jj@ultra.linux.cz)
# We are not yet configured - so test on arch
-ifeq ($(ARCH),sparc)
- KBUILD_DEFCONFIG := sparc32_defconfig
-else
+ifeq ($(ARCH),sparc64)
KBUILD_DEFCONFIG := sparc64_defconfig
+else
+ KBUILD_DEFCONFIG := sparc32_defconfig
endif
ifeq ($(CONFIG_SPARC32),y)
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] sparc: fix KBUILD_DEFCONFIG for ARCH=sparc32
2018-08-20 17:08 [PATCH] sparc: fix KBUILD_DEFCONFIG for ARCH=sparc32 Masahiro Yamada
@ 2018-08-21 19:41 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2018-08-21 19:41 UTC (permalink / raw)
To: yamada.masahiro; +Cc: sparclinux, rdunlap, linux-kernel
From: Masahiro Yamada <yamada.masahiro@socionext.com>
Date: Tue, 21 Aug 2018 02:08:28 +0900
> As commit 5ba800962a80 ("kbuild: update ARCH alias info for sparc")
> addressed, SPARC accepts ARCH=sparc32 as an alias.
>
> However, arch/sparc/Makefile wrongly sets KBUILD_DEFCONFIG, then
> sparc64_defconfig is chosen as the base configuration for ARCH=sparc32.
>
> $ make ARCH=sparc32 defconfig
> *** Default configuration is based on 'sparc64_defconfig'
> #
> # configuration written to .config
> #
>
> Fix the logic to choose sparc64_defconfig only when ARCH=sparc64.
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Applied, thank you.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-08-21 19:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-20 17:08 [PATCH] sparc: fix KBUILD_DEFCONFIG for ARCH=sparc32 Masahiro Yamada
2018-08-21 19:41 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).