[U-Boot] [PATCH 3/3] common: Add .u_boot_list into all linker files

Joe Hershberger joe.hershberger at gmail.com
Mon Sep 24 18:34:48 CEST 2012


Hi Marek,

On Sun, Sep 23, 2012 at 8:21 PM, Marek Vasut <marex at denx.de> wrote:
> Add section for the linker-generated lists into all possible linker
> files, so that everyone can easily use these lists. This is mostly
> a mechanical adjustment.
>
> Signed-off-by: Marek Vasut <marex at denx.de>
> Cc: Joe Hershberger <joe.hershberger at gmail.com>
> Cc: Mike Frysinger <vapier at gentoo.org>
> ---
>  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 +++++
>  examples/standalone/mips.lds                     |    4 ++++
>  examples/standalone/nds32.lds                    |    4 ++++
>  examples/standalone/sparc.lds                    |    5 +++++
>  nand_spl/board/freescale/mx31pdk/u-boot.lds      |    5 +++++
>  nand_spl/board/karo/tx25/u-boot.lds              |    5 +++++
>  nand_spl/board/samsung/smdk6400/u-boot.lds       |    5 +++++
>  150 files changed, 720 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/cpu/arm920t/ep93xx/u-boot.lds b/arch/arm/cpu/arm920t/ep93xx/u-boot.lds
> index dc6ba34..6ad9169 100644
> --- a/arch/arm/cpu/arm920t/ep93xx/u-boot.lds
> +++ b/arch/arm/cpu/arm920t/ep93xx/u-boot.lds
> @@ -53,6 +53,11 @@ SECTIONS
>         __u_boot_cmd_end = .;

While you're touching all these files, why not replace the
__u_boot_cmd* implementation with this as well.  There's no need to
leave a special case in there as well is there?

>
>         . = ALIGN(4);
> +       .u_boot_list : {
> +       INCLUDE u-boot.lst;
> +       }
> +
> +       . = ALIGN(4);
>         __bss_start = .;
>         .bss : { *(.bss) }
>         __bss_end__ = .;

-Joe


More information about the U-Boot mailing list