sparc: fix KBUILD_DEFCONFIG for ARCH=sparc32
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 20 Aug 2018 17:08:28 +0000 (02:08 +0900)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Aug 2018 19:41:12 +0000 (12:41 -0700)
commitc84ca616b1260949782f408271336f0eda056c61
tree1bce9a79f3ca0981e0d1b52c14aff0a2bd01a8a9
parentaa59fa7806ef6cd63fdf78d802e960d9cb516f39
sparc: fix KBUILD_DEFCONFIG for ARCH=sparc32

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>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/Makefile