Skip to contentSkip to conversation

mpc83xx: fix out-of-tree mpc8315 nand build

PATCH New Kim Phillips 1 participant 2 messages Mar 1, 2010 – Mar 2, 2010 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mpc83xx: fix out-of-tree mpc8315 nand build

commit 2e95004deb6e33e33bf1b8a92a38cd2115bac4c2 "mpc83xx: Add NAND boot support for MPC8315E-RDB boards" symlinked nand_spl/board/freescale/mpc8315erdb to mpc8313erdb in order to not duplicate code.

Since the main makefile builds nand_spl/board/$(BOARDDIR) (which makes sense), and the board Makefile and linker script are the only two necessary files to enable out-of-tree building, and other boards have duplicated nand makefiles (e.g. 8536ds & 8569mds), it only seems prudent to copy these two files in the name of the 8315 too.

Cc Anton Vorontsov <[email protected]>
Cc Wolfgang Denk <[email protected]>
---
 Makefile                                        |    3 -
 nand_spl/board/freescale/mpc8315erdb/Makefile   |  108 +++++++++++++++++++++++
 nand_spl/board/freescale/mpc8315erdb/u-boot.lds |   52 +++++++++++
 3 files changed, 160 insertions(+), 3 deletions(-)
 create mode 100644 nand_spl/board/freescale/mpc8315erdb/Makefile
 create mode 100644 nand_spl/board/freescale/mpc8315erdb/u-boot.lds
Makefile +0 -3
index 524b9da..16b549c 100644
@@ -2272,9 +2272,6 @@ MPC8313ERDB_NAND_66_config: unconfig
 
 MPC8315ERDB_NAND_config \
 MPC8315ERDB_config: unconfig
-	@if [ "$(findstring _NAND_,$@)" ] ; then \
-		ln -sf mpc8313erdb nand_spl/board/freescale/mpc8315erdb ; \
-	fi ;
 	@$(MKCONFIG) -t $(@:_config=) MPC8315ERDB ppc mpc83xx mpc8315erdb freescale
 
 MPC8323ERDB_config:	unconfig
nand_spl/board/freescale/mpc8315erdb/Makefile new file +108 -0

108 lines not on this page · raw message

nand_spl/board/freescale/mpc8315erdb/u-boot.lds new file +52 -0

52 lines not on this page · raw message

Signature · 1 line
1.7.0
author Applied
#1 lore raw

PATCH 1/1 mpc83xx: fix out-of-tree mpc8315 nand build

Quoted 10 lines · On Mon, 1 Mar 2010 11:10:17 -0600 Kim Phillips <[email protected]>…

commit 2e95004deb6e33e33bf1b8a92a38cd2115bac4c2 "mpc83xx: Add NAND boot support for MPC8315E-RDB boards" symlinked nand_spl/board/freescale/mpc8315erdb to mpc8313erdb in order to not duplicate code.

Since the main makefile builds nand_spl/board/$(BOARDDIR) (which makes sense), and the board Makefile and linker script are the only two necessary files to enable out-of-tree building, and other boards have duplicated nand makefiles (e.g. 8536ds & 8569mds), it only seems prudent to copy these two files in the name of the 8315 too.

Quoted 4 lines
Cc Anton Vorontsov <[email protected]>
Cc Wolfgang Denk <[email protected]>

---

applied.

Kim