* [U-Boot] [PATCH] ppc/85xx: Fix building NAND_SPL out of tree
@ 2009-10-27 2:25 Kumar Gala
2009-10-27 2:26 ` [U-Boot] [PATCH] ppc/85xx: Fix compiler warning in nand_spl/.../p1_p2_rdb/nand_boot.c Kumar Gala
2009-10-27 2:28 ` [U-Boot] [PATCH] ppc/85xx: Fix building NAND_SPL out of tree Kumar Gala
0 siblings, 2 replies; 4+ messages in thread
From: Kumar Gala @ 2009-10-27 2:25 UTC (permalink / raw)
To: u-boot
We need to source files to exist in the O=<FOO> nand_spl dir when
we build out of tree.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
---
nand_spl/board/freescale/mpc8536ds/Makefile | 6 ++++++
nand_spl/board/freescale/p1_p2_rdb/Makefile | 6 ++++++
2 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/nand_spl/board/freescale/mpc8536ds/Makefile b/nand_spl/board/freescale/mpc8536ds/Makefile
index 1d5e319..7ed9d61 100644
--- a/nand_spl/board/freescale/mpc8536ds/Makefile
+++ b/nand_spl/board/freescale/mpc8536ds/Makefile
@@ -111,6 +111,12 @@ $(obj)tlb_table.c:
@rm -f $(obj)tlb_table.c
ln -sf $(SRCTREE)/board/$(BOARDDIR)/tlb.c $(obj)tlb_table.c
+ifneq ($(OBJTREE), $(SRCTREE))
+$(obj)nand_boot.c:
+ @rm -f $(obj)nand_boot.c
+ ln -s $(SRCTREE)/nand_spl/board/$(BOARDDIR)/nand_boot.c $(obj)nand_boot.c
+endif
+
#########################################################################
$(obj)%.o: $(obj)%.S
diff --git a/nand_spl/board/freescale/p1_p2_rdb/Makefile b/nand_spl/board/freescale/p1_p2_rdb/Makefile
index 1d5e319..7ed9d61 100644
--- a/nand_spl/board/freescale/p1_p2_rdb/Makefile
+++ b/nand_spl/board/freescale/p1_p2_rdb/Makefile
@@ -111,6 +111,12 @@ $(obj)tlb_table.c:
@rm -f $(obj)tlb_table.c
ln -sf $(SRCTREE)/board/$(BOARDDIR)/tlb.c $(obj)tlb_table.c
+ifneq ($(OBJTREE), $(SRCTREE))
+$(obj)nand_boot.c:
+ @rm -f $(obj)nand_boot.c
+ ln -s $(SRCTREE)/nand_spl/board/$(BOARDDIR)/nand_boot.c $(obj)nand_boot.c
+endif
+
#########################################################################
$(obj)%.o: $(obj)%.S
--
1.6.0.6
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH] ppc/85xx: Fix compiler warning in nand_spl/.../p1_p2_rdb/nand_boot.c
2009-10-27 2:25 [U-Boot] [PATCH] ppc/85xx: Fix building NAND_SPL out of tree Kumar Gala
@ 2009-10-27 2:26 ` Kumar Gala
2009-10-27 2:28 ` Kumar Gala
2009-10-27 2:28 ` [U-Boot] [PATCH] ppc/85xx: Fix building NAND_SPL out of tree Kumar Gala
1 sibling, 1 reply; 4+ messages in thread
From: Kumar Gala @ 2009-10-27 2:26 UTC (permalink / raw)
To: u-boot
nand_boot.c: In function 'board_init_f':
nand_boot.c:44: warning: 'sys_clk' may be used uninitialized in this function
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
---
nand_spl/board/freescale/p1_p2_rdb/nand_boot.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/nand_spl/board/freescale/p1_p2_rdb/nand_boot.c b/nand_spl/board/freescale/p1_p2_rdb/nand_boot.c
index bd513b8..af442ea 100644
--- a/nand_spl/board/freescale/p1_p2_rdb/nand_boot.c
+++ b/nand_spl/board/freescale/p1_p2_rdb/nand_boot.c
@@ -41,7 +41,7 @@ DECLARE_GLOBAL_DATA_PTR;
void board_init_f(ulong bootflag)
{
- uint plat_ratio, bus_clk, sys_clk;
+ uint plat_ratio, bus_clk, sys_clk = 0;
volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
volatile ccsr_gpio_t *pgpio = (void *)(CONFIG_SYS_MPC85xx_GPIO_ADDR);
uint val, temp, sysclk_mask;
--
1.6.0.6
^ permalink raw reply related [flat|nested] 4+ messages in thread* [U-Boot] [PATCH] ppc/85xx: Fix building NAND_SPL out of tree
2009-10-27 2:25 [U-Boot] [PATCH] ppc/85xx: Fix building NAND_SPL out of tree Kumar Gala
2009-10-27 2:26 ` [U-Boot] [PATCH] ppc/85xx: Fix compiler warning in nand_spl/.../p1_p2_rdb/nand_boot.c Kumar Gala
@ 2009-10-27 2:28 ` Kumar Gala
1 sibling, 0 replies; 4+ messages in thread
From: Kumar Gala @ 2009-10-27 2:28 UTC (permalink / raw)
To: u-boot
On Oct 26, 2009, at 9:25 PM, Kumar Gala wrote:
> We need to source files to exist in the O=<FOO> nand_spl dir when
> we build out of tree.
>
> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
> ---
> nand_spl/board/freescale/mpc8536ds/Makefile | 6 ++++++
> nand_spl/board/freescale/p1_p2_rdb/Makefile | 6 ++++++
> 2 files changed, 12 insertions(+), 0 deletions(-)
applied to 85xx.
- k
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-10-27 2:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-27 2:25 [U-Boot] [PATCH] ppc/85xx: Fix building NAND_SPL out of tree Kumar Gala
2009-10-27 2:26 ` [U-Boot] [PATCH] ppc/85xx: Fix compiler warning in nand_spl/.../p1_p2_rdb/nand_boot.c Kumar Gala
2009-10-27 2:28 ` Kumar Gala
2009-10-27 2:28 ` [U-Boot] [PATCH] ppc/85xx: Fix building NAND_SPL out of tree Kumar Gala
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.