]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64e: Tie PPC_BOOK3E_64 to PPC_E500MC
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Mon, 19 Sep 2022 17:01:26 +0000 (19:01 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 26 Sep 2022 11:00:41 +0000 (21:00 +1000)
commit6dd12f2352ac7902df6d2b7e268518e65e76a63a
treed8c710d61ee1d9eaefbcf7a3dc9d857cdb249b6d
parente8066dc6c3442afc30b11612b8dac0e9cd0adc1d
powerpc/64e: Tie PPC_BOOK3E_64 to PPC_E500MC

The only 64-bit Book3E CPUs we support require the selection
of CONFIG_PPC_E500MC.

However our Kconfig allows configurating a kernel that has 64-bit
Book3E support, but without CONFIG_PPC_E500MC enabled. Such a kernel
would never boot, it doesn't know about any CPUs.

To fix this, force CONFIG_PPC_E500MC to be selected whenever we are
building a 64-bit Book3E kernel.

And add a test to detect future situations where cpu_specs is empty.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/ae5d8b8b3ccc346e61d2ec729767f92766273f0b.1663606875.git.christophe.leroy@csgroup.eu
arch/powerpc/kernel/cputable.c
arch/powerpc/platforms/Kconfig.cputype