dm: arm: spl: Make driver model linker lists available
authorSimon Glass <sjg@chromium.org>
Tue, 11 Nov 2014 00:16:52 +0000 (17:16 -0700)
committerSimon Glass <sjg@chromium.org>
Fri, 21 Nov 2014 07:14:11 +0000 (08:14 +0100)
The linker lists feature is useful in SPL as it holds the driver model
platform data. So don't throw away the lists.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@ti.com>
arch/arm/cpu/u-boot-spl.lds

index 4beddf08e76722251b9d77182c7fc9bef508c314..a69b0061d21942df2dc04923a0009da55ae970dd 100644 (file)
@@ -34,6 +34,13 @@ SECTIONS
        . = ALIGN(4);
 
        . = .;
+#ifdef CONFIG_SPL_DM
+       .u_boot_list : {
+               KEEP(*(SORT(.u_boot_list_*_driver_*)));
+               KEEP(*(SORT(.u_boot_list_*_uclass_*)));
+       }
+#endif
+       . = ALIGN(4);
 
        __image_copy_end = .;