1 --- a/arch/mips/Kconfig
2 +++ b/arch/mips/Kconfig
3 @@ -886,6 +886,10 @@ config SYNC_R4K
7 +config IMAGE_CMDLINE_HACK
8 + bool "OpenWrt specific image command line hack"
14 --- a/arch/mips/kernel/head.S
15 +++ b/arch/mips/kernel/head.S
16 @@ -141,6 +141,12 @@ FEXPORT(__kernel_entry)
20 +#ifdef CONFIG_IMAGE_CMDLINE_HACK
22 +EXPORT(__image_cmdline)
24 +#endif /* CONFIG_IMAGE_CMDLINE_HACK */
28 NESTED(kernel_entry, 16, sp) # kernel entry point