summaryrefslogtreecommitdiffstats
path: root/arch/m68k/Kconfig.machine
diff options
context:
space:
mode:
authorGreg Ungerer <gerg@linux-m68k.org>2022-05-13 17:27:39 +1000
committerGreg Ungerer <gerg@linux-m68k.org>2022-05-16 16:34:19 +1000
commita71b9e66fee47c59b3ec34e652b5c23bc6550794 (patch)
treeacd598be796e4e4354d8688783c2740ad7a099a6 /arch/m68k/Kconfig.machine
parent782f4c5c44e7d99d89740e272dc5ff84052c036a (diff)
downloadlinux-a71b9e66fee47c59b3ec34e652b5c23bc6550794.tar.gz
linux-a71b9e66fee47c59b3ec34e652b5c23bc6550794.tar.bz2
linux-a71b9e66fee47c59b3ec34e652b5c23bc6550794.zip
m68knommu: fix undefined reference to `_init_sp'
When configuring a nommu classic m68k system enabling the uboot parameter passing support (CONFIG_UBOOT) will produce the following compile error: m68k-linux-ld: arch/m68k/kernel/uboot.o: in function `process_uboot_commandline': uboot.c:(.init.text+0x32): undefined reference to `_init_sp' The logic to support this option is only used on ColdFire based platforms (in its head.S startup code). So make the selection of this option depend on building for a ColdFire based platform. Reported-by: kernel test robot <lkp@intel.com> Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
Diffstat (limited to 'arch/m68k/Kconfig.machine')
-rw-r--r--arch/m68k/Kconfig.machine1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/m68k/Kconfig.machine b/arch/m68k/Kconfig.machine
index eeab4f3e6c19..946853a08502 100644
--- a/arch/m68k/Kconfig.machine
+++ b/arch/m68k/Kconfig.machine
@@ -335,6 +335,7 @@ comment "Machine Options"
config UBOOT
bool "Support for U-Boot command line parameters"
+ depends on COLDFIRE
help
If you say Y here kernel will try to collect command
line parameters from the initial u-boot stack.