Patchwork [U-Boot,4/4] microblaze: Fix compilation failure because of missing libdts

login
register
mail settings
Submitter Michal Simek
Date Oct. 5, 2012, 12:58 p.m.
Message ID <1349441933-22840-4-git-send-email-monstr@monstr.eu>
Download mbox | patch
Permalink /patch/189474/
State Accepted
Delegated to: Michal Simek
Headers show

Comments

Michal Simek - Oct. 5, 2012, 12:58 p.m.
Protect dts/libdts.o by CONFIG_OF_EMBED.

Signed-off-by: Michal Simek <monstr@monstr.eu>
---
 arch/microblaze/cpu/u-boot.lds |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
Marek Vasut - Oct. 5, 2012, 4:51 p.m.
Dear Michal Simek,

> Protect dts/libdts.o by CONFIG_OF_EMBED.

Better commit message would really help ... esp. if you could explain the 
problem.

> Signed-off-by: Michal Simek <monstr@monstr.eu>
> ---
>  arch/microblaze/cpu/u-boot.lds |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/microblaze/cpu/u-boot.lds
> b/arch/microblaze/cpu/u-boot.lds index d033a28..349d36a 100644
> --- a/arch/microblaze/cpu/u-boot.lds
> +++ b/arch/microblaze/cpu/u-boot.lds
> @@ -45,7 +45,9 @@ SECTIONS
>  	.data ALIGN(0x4):
>  	{
>  		__data_start = .;
> +#ifdef CONFIG_OF_EMBED
>  		dts/libdts.o (.data)
> +#endif
>  		*(.data)
>  		__data_end = .;
>  	}

Best regards,
Marek Vasut

Patch

diff --git a/arch/microblaze/cpu/u-boot.lds b/arch/microblaze/cpu/u-boot.lds
index d033a28..349d36a 100644
--- a/arch/microblaze/cpu/u-boot.lds
+++ b/arch/microblaze/cpu/u-boot.lds
@@ -45,7 +45,9 @@  SECTIONS
 	.data ALIGN(0x4):
 	{
 		__data_start = .;
+#ifdef CONFIG_OF_EMBED
 		dts/libdts.o (.data)
+#endif
 		*(.data)
 		__data_end = .;
 	}