powerpc: Make CPU selection logic generic in Makefile
authorChristophe Leroy <christophe.leroy@c-s.fr>
Thu, 7 Jun 2018 10:10:18 +0000 (10:10 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 7 Aug 2018 14:32:36 +0000 (00:32 +1000)
commitcc62d20ce4ca4fe73a09d571144b29d43478cb9c
treeff7526650cc80304938188bee01060473c54d9b7
parentbadf436f6fa5dc864d579d73fe75386b743470c0
powerpc: Make CPU selection logic generic in Makefile

At the time being, when adding a new CPU for selection, both
Kconfig.cputype and Makefile have to be modified.

This patch moves into Kconfig.cputype the name of the CPU to me
passed to the -mcpu= argument.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
[mpe: Rename the option to TARGET_CPU to echo the gcc documentation]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/Makefile
arch/powerpc/platforms/Kconfig.cputype