m68knommu: fix undefined reference to `_init_sp'
PATCH 1/1 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.
--- arch/m68k/Kconfig.machine | 1 + 1 file changed, 1 insertion(+)
arch/m68k/Kconfig.machine +1 -0
@@ -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.
Signature · 1 line
2.25.1
Quoted 4 lines · Greg Ungerer
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':
Quoted 8 lines
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.Sstartup code). So make the selection of this option depend on building for a ColdFire based platform.Reported-by kernel test robot <[email protected]>Signed-off-by Greg Ungerer <[email protected]>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Quoted 11 lines · Geert Uytterhoeven
Quoted 10 lines · Greg Ungerer
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.Sstartup code). So make the selection of this option depend on building for a ColdFire based platform.
Quoted 5 lines
Quoted 2 lines
Reported-by kernel test robot <[email protected]>Signed-off-by Greg Ungerer <[email protected]>Reviewed-by Geert Uytterhoeven <[email protected]>
Thanks Geert.
Applied, and now pushed to the public m68knommu git tree, for-next branch.
Regards
Greg
Quoted 10 lines
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds