[U-Boot] [RFC] [PATCH 0/3 v2] Linker-generated arrays

Marek Vasut marex at denx.de
Tue Sep 25 18:11:57 CEST 2012


This is a first stab at the linker-generated array. Basically, this
concept is a generic abstraction of how u_boot_cmd works today. The
patch 2/3 contains a huge pile of documentation which should clarify
most of the questions.

Marek Vasut (3):
  common: Add symbol handling for generic lists into Makefile
  common: Implement support for linker-generated arrays
  common: Add .u_boot_list into all linker files

 Makefile                                         |   10 +-
 arch/arm/cpu/arm920t/ep93xx/u-boot.lds           |    5 +
 arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds        |    4 +
 arch/arm/cpu/arm926ejs/spear/u-boot-spl.lds      |    4 +
 arch/arm/cpu/armv7/omap-common/u-boot-spl.lds    |    5 +
 arch/arm/cpu/ixp/u-boot.lds                      |    5 +
 arch/arm/cpu/u-boot.lds                          |    5 +
 arch/avr32/cpu/u-boot.lds                        |    5 +
 arch/blackfin/cpu/u-boot.lds                     |    4 +
 arch/microblaze/cpu/u-boot.lds                   |    5 +
 arch/nds32/cpu/n1213/u-boot.lds                  |    5 +
 arch/nios2/cpu/u-boot.lds                        |    5 +
 arch/powerpc/cpu/74xx_7xx/u-boot.lds             |    5 +
 arch/powerpc/cpu/mpc512x/u-boot.lds              |    5 +
 arch/powerpc/cpu/mpc5xx/u-boot.lds               |    5 +
 arch/powerpc/cpu/mpc5xxx/u-boot-customlayout.lds |    3 +
 arch/powerpc/cpu/mpc5xxx/u-boot.lds              |    5 +
 arch/powerpc/cpu/mpc8220/u-boot.lds              |    5 +
 arch/powerpc/cpu/mpc824x/u-boot.lds              |    5 +
 arch/powerpc/cpu/mpc8260/u-boot.lds              |    5 +
 arch/powerpc/cpu/mpc83xx/u-boot.lds              |    5 +
 arch/powerpc/cpu/mpc85xx/u-boot-nand.lds         |    4 +
 arch/powerpc/cpu/mpc85xx/u-boot-nand_spl.lds     |    4 +
 arch/powerpc/cpu/mpc85xx/u-boot.lds              |    5 +
 arch/powerpc/cpu/mpc86xx/u-boot.lds              |    5 +
 arch/powerpc/cpu/ppc4xx/u-boot.lds               |    5 +
 arch/sandbox/cpu/u-boot.lds                      |    5 +
 arch/sh/cpu/sh2/u-boot.lds                       |    4 +
 arch/sh/cpu/sh3/u-boot.lds                       |    4 +
 arch/sh/cpu/sh4/u-boot.lds                       |    4 +
 arch/x86/cpu/u-boot.lds                          |    5 +
 board/BuS/eb_cpu5282/u-boot.lds                  |    5 +
 board/LEOX/elpt860/u-boot.lds                    |    5 +
 board/RPXClassic/u-boot.lds                      |    5 +
 board/RPXlite/u-boot.lds                         |    5 +
 board/RPXlite_dw/u-boot.lds                      |    5 +
 board/RRvision/u-boot.lds                        |    5 +
 board/actux1/u-boot.lds                          |    5 +
 board/actux2/u-boot.lds                          |    5 +
 board/actux3/u-boot.lds                          |    5 +
 board/adder/u-boot.lds                           |    5 +
 board/ait/cam_enc_4xx/u-boot-spl.lds             |    4 +
 board/altera/nios2-generic/u-boot.lds            |    5 +
 board/amcc/acadia/u-boot-nand.lds                |    3 +
 board/amcc/bamboo/u-boot-nand.lds                |    3 +
 board/amcc/canyonlands/u-boot-nand.lds           |    3 +
 board/amcc/kilauea/u-boot-nand.lds               |    3 +
 board/amcc/sequoia/u-boot-nand.lds               |    3 +
 board/amcc/sequoia/u-boot-ram.lds                |    3 +
 board/amirix/ap1000/u-boot.lds                   |    5 +
 board/astro/mcf5373l/u-boot.lds                  |    5 +
 board/c2mon/u-boot.lds                           |    5 +
 board/cobra5272/u-boot.lds                       |    5 +
 board/cogent/u-boot.lds                          |    5 +
 board/dave/PPChameleonEVB/u-boot.lds             |    5 +
 board/davinci/da8xxevm/u-boot-spl-da850evm.lds   |    6 ++
 board/davinci/da8xxevm/u-boot-spl-hawk.lds       |    5 +
 board/dbau1x00/u-boot.lds                        |    5 +
 board/dvlhost/u-boot.lds                         |    5 +
 board/eltec/mhpc/u-boot.lds                      |    5 +
 board/emk/top860/u-boot.lds                      |    5 +
 board/ep88x/u-boot.lds                           |    5 +
 board/esd/dasa_sim/u-boot.lds                    |    5 +
 board/esd/pmc440/u-boot-nand.lds                 |    3 +
 board/esd/tasreg/u-boot.lds                      |    5 +
 board/esteem192e/u-boot.lds                      |    5 +
 board/etx094/u-boot.lds                          |    5 +
 board/evb64260/u-boot.lds                        |    5 +
 board/fads/u-boot.lds                            |    5 +
 board/flagadm/u-boot.lds                         |    5 +
 board/freescale/m5208evbe/u-boot.lds             |    5 +
 board/freescale/m52277evb/u-boot.lds             |    5 +
 board/freescale/m5235evb/u-boot.lds              |    5 +
 board/freescale/m5249evb/u-boot.lds              |    5 +
 board/freescale/m5253demo/u-boot.lds             |    5 +
 board/freescale/m5253evbe/u-boot.lds             |    5 +
 board/freescale/m5271evb/u-boot.lds              |    5 +
 board/freescale/m5272c3/u-boot.lds               |    5 +
 board/freescale/m5275evb/u-boot.lds              |    5 +
 board/freescale/m5282evb/u-boot.lds              |    5 +
 board/freescale/m53017evb/u-boot.lds             |    5 +
 board/freescale/m5329evb/u-boot.lds              |    5 +
 board/freescale/m5373evb/u-boot.lds              |    5 +
 board/freescale/m54451evb/u-boot.lds             |    5 +
 board/freescale/m54455evb/u-boot.lds             |    5 +
 board/freescale/m547xevb/u-boot.lds              |    5 +
 board/freescale/m548xevb/u-boot.lds              |    5 +
 board/freescale/mx31ads/u-boot.lds               |    5 +
 board/gaisler/gr_cpci_ax2000/u-boot.lds          |    5 +
 board/gaisler/gr_ep2s60/u-boot.lds               |    5 +
 board/gaisler/gr_xc3s_1500/u-boot.lds            |    5 +
 board/gaisler/grsim/u-boot.lds                   |    5 +
 board/gaisler/grsim_leon2/u-boot.lds             |    5 +
 board/gen860t/u-boot-flashenv.lds                |    4 +
 board/gen860t/u-boot.lds                         |    5 +
 board/genietv/u-boot.lds                         |    5 +
 board/gth2/u-boot.lds                            |    5 +
 board/hermes/u-boot.lds                          |    5 +
 board/hymod/u-boot.lds                           |    5 +
 board/icu862/u-boot.lds                          |    5 +
 board/idmr/u-boot.lds                            |    5 +
 board/incaip/u-boot.lds                          |    5 +
 board/ip860/u-boot.lds                           |    5 +
 board/ivm/u-boot.lds                             |    5 +
 board/korat/u-boot-F7FC.lds                      |    3 +
 board/kup/kup4k/u-boot.lds                       |    5 +
 board/kup/kup4x/u-boot.lds                       |    5 +
 board/lantec/u-boot.lds                          |    5 +
 board/lwmon/u-boot.lds                           |    5 +
 board/manroland/uc100/u-boot.lds                 |    5 +
 board/matrix_vision/mvsmr/u-boot.lds             |    5 +
 board/mbx8xx/u-boot.lds                          |    5 +
 board/micronas/vct/u-boot.lds                    |    5 +
 board/ml2/u-boot.lds                             |    5 +
 board/mousse/u-boot.lds                          |    5 +
 board/mvblue/u-boot.lds                          |    5 +
 board/netphone/u-boot.lds                        |    5 +
 board/netta/u-boot.lds                           |    5 +
 board/netta2/u-boot.lds                          |    5 +
 board/netvia/u-boot.lds                          |    5 +
 board/nx823/u-boot.lds                           |    5 +
 board/openrisc/openrisc-generic/u-boot.lds       |    5 +
 board/pb1x00/u-boot.lds                          |    5 +
 board/qemu-mips/u-boot.lds                       |    5 +
 board/qi/qi_lb60/u-boot.lds                      |    5 +
 board/quantum/u-boot.lds                         |    5 +
 board/r360mpi/u-boot.lds                         |    5 +
 board/rbc823/u-boot.lds                          |    5 +
 board/renesas/sh7757lcr/u-boot.lds               |    4 +
 board/rsdproto/u-boot.lds                        |    5 +
 board/samsung/smdk5250/smdk5250-uboot-spl.lds    |    5 +
 board/samsung/smdk6400/u-boot-nand.lds           |    7 +-
 board/sandpoint/u-boot.lds                       |    5 +
 board/siemens/IAD210/u-boot.lds                  |    5 +
 board/sixnet/u-boot.lds                          |    5 +
 board/snmc/qs850/u-boot.lds                      |    5 +
 board/snmc/qs860t/u-boot.lds                     |    5 +
 board/spc1920/u-boot.lds                         |    5 +
 board/spd8xx/u-boot.lds                          |    5 +
 board/stx/stxxtc/u-boot.lds                      |    5 +
 board/svm_sc8xx/u-boot.lds                       |    5 +
 board/tqc/tqm8xx/u-boot.lds                      |    5 +
 board/v37/u-boot.lds                             |    5 +
 board/vpac270/u-boot-spl.lds                     |    4 +
 board/westel/amx860/u-boot.lds                   |    5 +
 config.mk                                        |    2 +
 examples/standalone/mips.lds                     |    4 +
 examples/standalone/nds32.lds                    |    4 +
 examples/standalone/sparc.lds                    |    5 +
 helper.mk                                        |   62 +++++++++++
 include/linker_lists.h                           |  124 ++++++++++++++++++++++
 nand_spl/board/freescale/mpc8536ds/Makefile      |    6 +-
 nand_spl/board/freescale/mpc8569mds/Makefile     |    6 +-
 nand_spl/board/freescale/mpc8572ds/Makefile      |    6 +-
 nand_spl/board/freescale/mx31pdk/Makefile        |    6 +-
 nand_spl/board/freescale/mx31pdk/u-boot.lds      |    5 +
 nand_spl/board/freescale/p1010rdb/Makefile       |    6 +-
 nand_spl/board/freescale/p1023rds/Makefile       |    6 +-
 nand_spl/board/freescale/p1_p2_rdb/Makefile      |    6 +-
 nand_spl/board/freescale/p1_p2_rdb_pc/Makefile   |    6 +-
 nand_spl/board/karo/tx25/Makefile                |    6 +-
 nand_spl/board/karo/tx25/u-boot.lds              |    5 +
 nand_spl/board/samsung/smdk6400/u-boot.lds       |    5 +
 spl/Makefile                                     |    3 +-
 164 files changed, 953 insertions(+), 23 deletions(-)
 create mode 100644 helper.mk
 create mode 100644 include/linker_lists.h

Cc: Joe Hershberger <joe.hershberger at gmail.com>
Cc: Mike Frysinger <vapier at gentoo.org>

-- 
1.7.10.4



More information about the U-Boot mailing list