m68knommu: fix 68000 CPU link with no platform selected
authorGreg Ungerer <gerg@linux-m68k.org>
Wed, 18 May 2022 06:14:05 +0000 (16:14 +1000)
committerGreg Ungerer <gerg@linux-m68k.org>
Tue, 24 May 2022 14:04:11 +0000 (00:04 +1000)
commit6b8be804ff376f6657ccdf6b29974e7c793d88c4
tree820582961f0cc8804df5cb3a717ea917794565bc
parent348cce32cc324507a9db265b9ff454d141a57add
m68knommu: fix 68000 CPU link with no platform selected

If building for a nommu m68k classic CPU and no platform (board) is
selected then the final link fails with:

     LD      vmlinux.o
   m68k-linux-ld: cannot find arch/m68k/kernel/head.o: No such file or directory
   make: *** [Makefile:1158: vmlinux] Error 1

Not selecting a platform is ok, that is a generic 68000 system build.
All of the platform selections are for 68328 variants.

The underlying problem is that the CPU config option (CONFIG_M68000)
ends up not being set, it is currently only selected by one of the
platform choices.

Change CONFIG_M68000 so that it is always enabled for the nommu m68k
classic configuration.

Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
arch/m68k/Kconfig.cpu