u-boot/board/freescale
Scott Wood 83b7e2a7f2 Handle most LDSCRIPT setting centrally
Currently, some linker scripts are found by common code in config.mk.
Some are found using CONFIG_SYS_LDSCRIPT, but the code for that is
sometimes in arch config.mk and sometimes in board config.mk.  Some
are found using an arch-specific rule for looking in CPUDIR, etc.

Further, the powerpc config.mk rule relied on CONFIG_NAND_SPL
when it really wanted CONFIG_NAND_U_BOOT -- which covered up the fact
that not all NAND_U_BOOT builds actually wanted CPUDIR/u-boot-nand.lds.

Replace all of this -- except for a handful of boards that are actually
selecting a linker script in a unique way -- with centralized ldscript
finding.

If board code specifies LDSCRIPT, that will be used.
Otherwise, if CONFIG_SYS_LDSCRIPT is specified, that will be used.

If neither of these are specified, then the central config.mk will
check for the existence of the following, in order:

$(TOPDIR)/board/$(BOARDDIR)/u-boot-nand.lds (only if CONFIG_NAND_U_BOOT)
$(TOPDIR)/$(CPUDIR)/u-boot-nand.lds (only if CONFIG_NAND_U_BOOT)
$(TOPDIR)/board/$(BOARDDIR)/u-boot.lds
$(TOPDIR)/$(CPUDIR)/u-boot.lds

Some boards (sc3, cm5200, munices) provided their own u-boot.lds that
were dead code, because they were overridden by a CPUDIR u-boot.lds under
the old powerpc rules.  These boards' own u-boot.lds have bitrotted and
no longer work -- these lds files have been removed.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Tested-by: Graeme Russ <graeme.russ@gmail.com>
2011-04-30 00:59:47 +02:00
..
common powerpc/85xx: Enable eSDHC boot support on P2020 DS 2011-04-04 22:26:32 -05:00
corenet_ds powerpc/85xx: Add PBL boot from SPI flash support on P4080DS 2011-04-10 11:17:55 -05:00
m547xevb rename _end to __bss_end__ 2011-03-27 19:18:37 +02:00
m548xevb rename _end to __bss_end__ 2011-03-27 19:18:37 +02:00
m5208evbe rename _end to __bss_end__ 2011-03-27 19:18:37 +02:00
m5235evb rename _end to __bss_end__ 2011-03-27 19:18:37 +02:00
m5249evb rename _end to __bss_end__ 2011-03-27 19:18:37 +02:00
m5253demo rename _end to __bss_end__ 2011-03-27 19:18:37 +02:00
m5253evbe rename _end to __bss_end__ 2011-03-27 19:18:37 +02:00
m5271evb rename _end to __bss_end__ 2011-03-27 19:18:37 +02:00
m5272c3 rename _end to __bss_end__ 2011-03-27 19:18:37 +02:00
m5275evb rename _end to __bss_end__ 2011-03-27 19:18:37 +02:00
m5282evb rename _end to __bss_end__ 2011-03-27 19:18:37 +02:00
m5329evb rename _end to __bss_end__ 2011-03-27 19:18:37 +02:00
m5373evb rename _end to __bss_end__ 2011-03-27 19:18:37 +02:00
m52277evb rename _end to __bss_end__ 2011-03-27 19:18:37 +02:00
m53017evb rename _end to __bss_end__ 2011-03-27 19:18:37 +02:00
m54451evb rename _end to __bss_end__ 2011-03-27 19:18:37 +02:00
m54455evb rename _end to __bss_end__ 2011-03-27 19:18:37 +02:00
mpc832xemds Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
mpc837xemds fsl: Change fsl_phy_enet_if to phy_interface_t 2011-04-20 15:09:35 -05:00
mpc837xerdb Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
mpc5121ads Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
mpc7448hpc2 74xx_7xx: Cleanup for partial linking and --gc-sections 2010-11-27 23:35:12 +01:00
mpc8260ads miiphy: convert to linux/mii.h 2011-01-09 18:06:50 +01:00
mpc8266ads Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
mpc8308rdb Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
mpc8313erdb Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
mpc8315erdb Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
mpc8323erdb Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
mpc8349emds Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
mpc8349itx Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
mpc8360emds fsl: Change fsl_phy_enet_if to phy_interface_t 2011-04-20 15:09:35 -05:00
mpc8360erdk Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
mpc8536ds tsec: Convert tsec to use PHY Lib 2011-04-20 15:09:34 -05:00
mpc8540ads powerpc/8xxx: Refactor fsl_ddr_get_spd into common code from board 2011-04-04 09:24:41 -05:00
mpc8541cds powerpc/8xxx: Refactor fsl_ddr_get_spd into common code from board 2011-04-04 09:24:41 -05:00
mpc8544ds tsec: Convert tsec to use PHY Lib 2011-04-20 15:09:34 -05:00
mpc8548cds powerpc/8xxx: Refactor fsl_ddr_get_spd into common code from board 2011-04-04 09:24:41 -05:00
mpc8555cds powerpc/8xxx: Refactor fsl_ddr_get_spd into common code from board 2011-04-04 09:24:41 -05:00
mpc8560ads powerpc/8xxx: Refactor fsl_ddr_get_spd into common code from board 2011-04-04 09:24:41 -05:00
mpc8568mds powerpc/8xxx: Refactor fsl_ddr_get_spd into common code from board 2011-04-04 09:24:41 -05:00
mpc8569mds fsl: Change fsl_phy_enet_if to phy_interface_t 2011-04-20 15:09:35 -05:00
mpc8572ds tsec: Convert tsec to use PHY Lib 2011-04-20 15:09:34 -05:00
mpc8610hpcd powerpc: use 'video-mode' environment variable to configure DIU 2011-04-28 21:31:16 +02:00
mpc8641hpcn powerpc/8xxx: Refactor fsl_ddr_get_spd into common code from board 2011-04-04 09:24:41 -05:00
mx31ads Handle most LDSCRIPT setting centrally 2011-04-30 00:59:47 +02:00
mx31pdk MX31: mx31pdk: Make the board name simpler. 2011-04-27 19:38:05 +02:00
mx35pdk Add support for Freescale's mx35pdk board. 2011-02-02 00:54:43 +01:00
mx51evk MX51: drop config.mk from mx51evk 2011-04-27 19:38:04 +02:00
mx53evk MX53: drop config.mk from mx53evk 2011-04-27 19:38:05 +02:00
p1_p2_rdb tsec: Convert tsec to use PHY Lib 2011-04-20 15:09:34 -05:00
p1022ds powerpc: use 'video-mode' environment variable to configure DIU 2011-04-28 21:31:16 +02:00
p2020ds tsec: Convert tsec to use PHY Lib 2011-04-20 15:09:34 -05:00