diff mbox

[U-Boot,v3,12/14] dm: arm: spl: Make driver model linker lists available

Message ID 1415665015-12651-13-git-send-email-sjg@chromium.org
State Accepted
Delegated to: Simon Glass
Headers show

Commit Message

Simon Glass Nov. 11, 2014, 12:16 a.m. UTC
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>
---

Changes in v3: None
Changes in v2: None

 arch/arm/cpu/u-boot-spl.lds | 7 +++++++
 1 file changed, 7 insertions(+)

Comments

Simon Glass Nov. 23, 2014, 12:59 p.m. UTC | #1
On 11 November 2014 at 01:16, Simon Glass <sjg@chromium.org> wrote:
> 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>
> ---
>
> Changes in v3: None
> Changes in v2: None
>
>  arch/arm/cpu/u-boot-spl.lds | 7 +++++++
>  1 file changed, 7 insertions(+)

Applied to u-boot-dm.
diff mbox

Patch

diff --git a/arch/arm/cpu/u-boot-spl.lds b/arch/arm/cpu/u-boot-spl.lds
index 4beddf0..a69b006 100644
--- a/arch/arm/cpu/u-boot-spl.lds
+++ b/arch/arm/cpu/u-boot-spl.lds
@@ -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 = .;