serial: earlycon: Enable earlycon without command line param
[firefly-linux-kernel-4.4.55.git] / include / asm-generic / vmlinux.lds.h
index ac78910d7416c5f7f2a68cfbde0d950d58ab0d9c..87e5b6f8f4fc742b3d753da2d873e5268aa36515 100644 (file)
 #define TRACE_SYSCALLS()
 #endif
 
+#ifdef CONFIG_SERIAL_EARLYCON
+#define EARLYCON_TABLE() . = ALIGN(8);                         \
+                        VMLINUX_SYMBOL(__earlycon_table) = .;  \
+                        *(__earlycon_table)                    \
+                        *(__earlycon_table_end)
+#else
+#define EARLYCON_TABLE()
+#endif
 
 #define ___OF_TABLE(cfg, name) _OF_TABLE_##cfg(name)
 #define __OF_TABLE(cfg, name)  ___OF_TABLE(cfg, name)
        CPU_METHOD_OF_TABLES()                                          \
        KERNEL_DTB()                                                    \
        IRQCHIP_OF_MATCH_TABLE()                                        \
+       EARLYCON_TABLE()                                                \
        EARLYCON_OF_TABLES()
 
 #define INIT_TEXT                                                      \