powerpc/64s: Move CPU -mtune options into Kconfig
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 29 Mar 2023 23:43:08 +0000 (10:43 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 24 Aug 2023 22:39:29 +0000 (08:39 +1000)
commit50832720ec54c39ab189cd5e057aec1c514978ce
tree09ed4bccc3f2af53b7eab91d4f8a37ffdf885280
parent1eafbd8764b10798934344bd40395b27cec63145
powerpc/64s: Move CPU -mtune options into Kconfig

Currently the -mtune options are set in the Makefile, depending on what
the compiler supports.

One downside of doing it that way is that the chosen -mtune option is
not recorded in the .config.

Another downside is that if there's ever a need to do more complicated
logic to calculate the correct option, that gets messy in the Makefile.

So move the determination of which -mtune option to use into Kconfig
logic.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230329234308.2215833-1-mpe@ellerman.id.au
arch/powerpc/Makefile
arch/powerpc/platforms/Kconfig.cputype