Commit 9ff67e5e4c719556d57f136a6453f8e4798d85c0

Authored by Mike Frysinger
1 parent f52efcae98

Blackfin: unify u-boot linker scripts

All the Blackfin linker scripts were duplicated across the board dirs with
no difference save from the semi-often used ENV_IS_EMBEDDED option.  So
unify all of them in the lib_blackfin/ dir and for the few boards that
need to embedded the environment directly, add a LDS_BOARD_TEXT define for
them to customize via their board config file.  This is much simpler than
forcing them to duplicate the rest of the linker script.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>

Showing 93 changed files with 286 additions and 2919 deletions Side-by-side Diff

... ... @@ -3571,11 +3571,7 @@
3571 3571 $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin} \
3572 3572 $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom \
3573 3573 $(obj)board/armltd/{integratorap,integratorcp}/u-boot.lds \
3574   - $(obj)board/bf5{18f,26,27,33,38f,48,61}-ez{brd,kit}/u-boot.lds \
3575   - $(obj)board/bf5{33,37}-stamp/u-boot.lds \
3576   - $(obj)board/{bf537-{minotaur,pnav,srv1},blackstamp}/u-boot.lds \
3577   - $(obj)board/{,t}cm-bf5{27,33,37e,48,61}/u-boot.lds \
3578   - $(obj)board/ibf-dsp561/u-boot.lds \
  3574 + $(obj)lib_blackfin/u-boot.lds \
3579 3575 $(obj)cpu/blackfin/bootrom-asm-offsets.[chs]
3580 3576 @rm -f $(obj)include/bmp_logo.h
3581 3577 @rm -f $(obj)nand_spl/{u-boot-spl,u-boot-spl.map,System.map}
... ... @@ -56,4 +56,8 @@
56 56 endif
57 57  
58 58 LDR_FLAGS += $(LDR_FLAGS-y)
  59 +
  60 +ifeq ($(wildcard $(TOPDIR)/board/$(BOARD)/u-boot.lds*),)
  61 +LDSCRIPT = $(obj)lib_$(ARCH)/u-boot.lds
  62 +endif
board/bf518f-ezbrd/.gitignore
1   -/u-boot.lds
board/bf518f-ezbrd/Makefile
... ... @@ -35,11 +35,8 @@
35 35 OBJS := $(addprefix $(obj),$(COBJS-y))
36 36 SOBJS := $(addprefix $(obj),$(SOBJS-y))
37 37  
38   -$(LIB): $(obj).depend $(OBJS) $(SOBJS) $(obj)u-boot.lds
  38 +$(LIB): $(obj).depend $(OBJS) $(SOBJS)
39 39 $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
40   -
41   -$(obj)u-boot.lds: u-boot.lds.S
42   - $(CPP) $(CPPFLAGS) -D__ASSEMBLY__ -P $^ > $@
43 40  
44 41 clean:
45 42 rm -f $(SOBJS) $(OBJS)
board/bf518f-ezbrd/config.mk
... ... @@ -26,8 +26,6 @@
26 26 # This is not actually used for Blackfin boards so do not change it
27 27 #TEXT_BASE = do-not-use-me
28 28  
29   -LDSCRIPT = $(obj)board/$(BOARDDIR)/u-boot.lds
30   -
31 29 # Set some default LDR flags based on boot mode.
32 30 LDR_FLAGS += $(LDR_FLAGS-$(CONFIG_BFIN_BOOT_MODE))
board/bf518f-ezbrd/u-boot.lds.S
1   -/*
2   - * U-boot - u-boot.lds.S
3   - *
4   - * Copyright (c) 2005-2008 Analog Device Inc.
5   - *
6   - * (C) Copyright 2000-2004
7   - * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
8   - *
9   - * See file CREDITS for list of people who contributed to this
10   - * project.
11   - *
12   - * This program is free software; you can redistribute it and/or
13   - * modify it under the terms of the GNU General Public License as
14   - * published by the Free Software Foundation; either version 2 of
15   - * the License, or (at your option) any later version.
16   - *
17   - * This program is distributed in the hope that it will be useful,
18   - * but WITHOUT ANY WARRANTY; without even the implied warranty of
19   - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20   - * GNU General Public License for more details.
21   - *
22   - * You should have received a copy of the GNU General Public License
23   - * along with this program; if not, write to the Free Software
24   - * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
25   - * MA 02111-1307 USA
26   - */
27   -
28   -#include <config.h>
29   -#include <asm/blackfin.h>
30   -#undef ALIGN
31   -#undef ENTRY
32   -#undef bfin
33   -
34   -/* If we don't actually load anything into L1 data, this will avoid
35   - * a syntax error. If we do actually load something into L1 data,
36   - * we'll get a linker memory load error (which is what we'd want).
37   - * This is here in the first place so we can quickly test building
38   - * for different CPU's which may lack non-cache L1 data.
39   - */
40   -#ifndef L1_DATA_B_SRAM
41   -# define L1_DATA_B_SRAM CONFIG_SYS_MONITOR_BASE
42   -# define L1_DATA_B_SRAM_SIZE 0
43   -#endif
44   -
45   -OUTPUT_ARCH(bfin)
46   -
47   -MEMORY
48   -{
49   - ram : ORIGIN = CONFIG_SYS_MONITOR_BASE, LENGTH = CONFIG_SYS_MONITOR_LEN
50   - l1_code : ORIGIN = L1_INST_SRAM, LENGTH = L1_INST_SRAM_SIZE
51   - l1_data : ORIGIN = L1_DATA_B_SRAM, LENGTH = L1_DATA_B_SRAM_SIZE
52   -}
53   -
54   -ENTRY(_start)
55   -SECTIONS
56   -{
57   - .text :
58   - {
59   - cpu/blackfin/start.o (.text .text.*)
60   - __initcode_start = .;
61   - cpu/blackfin/initcode.o (.text .text.*)
62   - __initcode_end = .;
63   - *(.text .text.*)
64   - } >ram
65   -
66   - .rodata :
67   - {
68   - . = ALIGN(4);
69   - *(.rodata .rodata.*)
70   - *(.rodata1)
71   - *(.eh_frame)
72   - . = ALIGN(4);
73   - } >ram
74   -
75   - .data :
76   - {
77   - . = ALIGN(256);
78   - *(.data .data.*)
79   - *(.data1)
80   - *(.sdata)
81   - *(.sdata2)
82   - *(.dynamic)
83   - CONSTRUCTORS
84   - } >ram
85   -
86   - .u_boot_cmd :
87   - {
88   - ___u_boot_cmd_start = .;
89   - *(.u_boot_cmd)
90   - ___u_boot_cmd_end = .;
91   - } >ram
92   -
93   - .text_l1 :
94   - {
95   - . = ALIGN(4);
96   - __stext_l1 = .;
97   - *(.l1.text)
98   - . = ALIGN(4);
99   - __etext_l1 = .;
100   - } >l1_code AT>ram
101   - __stext_l1_lma = LOADADDR(.text_l1);
102   -
103   - .data_l1 :
104   - {
105   - . = ALIGN(4);
106   - __sdata_l1 = .;
107   - *(.l1.data)
108   - *(.l1.bss)
109   - . = ALIGN(4);
110   - __edata_l1 = .;
111   - } >l1_data AT>ram
112   - __sdata_l1_lma = LOADADDR(.data_l1);
113   -
114   - .bss :
115   - {
116   - . = ALIGN(4);
117   - __bss_start = .;
118   - *(.sbss) *(.scommon)
119   - *(.dynbss)
120   - *(.bss .bss.*)
121   - *(COMMON)
122   - __bss_end = .;
123   - } >ram
124   -}
board/bf526-ezbrd/.gitignore
1   -/u-boot.lds
board/bf526-ezbrd/Makefile
... ... @@ -36,11 +36,8 @@
36 36 OBJS := $(addprefix $(obj),$(COBJS-y))
37 37 SOBJS := $(addprefix $(obj),$(SOBJS-y))
38 38  
39   -$(LIB): $(obj).depend $(OBJS) $(SOBJS) $(obj)u-boot.lds
  39 +$(LIB): $(obj).depend $(OBJS) $(SOBJS)
40 40 $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
41   -
42   -$(obj)u-boot.lds: u-boot.lds.S
43   - $(CPP) $(CPPFLAGS) -D__ASSEMBLY__ -P $^ > $@
44 41  
45 42 clean:
46 43 rm -f $(SOBJS) $(OBJS)
board/bf526-ezbrd/config.mk
... ... @@ -26,8 +26,6 @@
26 26 # This is not actually used for Blackfin boards so do not change it
27 27 #TEXT_BASE = do-not-use-me
28 28  
29   -LDSCRIPT = $(obj)board/$(BOARDDIR)/u-boot.lds
30   -
31 29 # Set some default LDR flags based on boot mode.
32 30 LDR_FLAGS += $(LDR_FLAGS-$(CONFIG_BFIN_BOOT_MODE))
board/bf526-ezbrd/u-boot.lds.S
1   -/*
2   - * U-boot - u-boot.lds.S
3   - *
4   - * Copyright (c) 2005-2008 Analog Device Inc.
5   - *
6   - * (C) Copyright 2000-2004
7   - * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
8   - *
9   - * See file CREDITS for list of people who contributed to this
10   - * project.
11   - *
12   - * This program is free software; you can redistribute it and/or
13   - * modify it under the terms of the GNU General Public License as
14   - * published by the Free Software Foundation; either version 2 of
15   - * the License, or (at your option) any later version.
16   - *
17   - * This program is distributed in the hope that it will be useful,
18   - * but WITHOUT ANY WARRANTY; without even the implied warranty of
19   - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20   - * GNU General Public License for more details.
21   - *
22   - * You should have received a copy of the GNU General Public License
23   - * along with this program; if not, write to the Free Software
24   - * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
25   - * MA 02111-1307 USA
26   - */
27   -
28   -#include <config.h>
29   -#include <asm/blackfin.h>
30   -#undef ALIGN
31   -#undef ENTRY
32   -#undef bfin
33   -
34   -/* If we don't actually load anything into L1 data, this will avoid
35   - * a syntax error. If we do actually load something into L1 data,
36   - * we'll get a linker memory load error (which is what we'd want).
37   - * This is here in the first place so we can quickly test building
38   - * for different CPU's which may lack non-cache L1 data.
39   - */
40   -#ifndef L1_DATA_B_SRAM
41   -# define L1_DATA_B_SRAM CONFIG_SYS_MONITOR_BASE
42   -# define L1_DATA_B_SRAM_SIZE 0
43   -#endif
44   -
45   -OUTPUT_ARCH(bfin)
46   -
47   -MEMORY
48   -{
49   - ram : ORIGIN = CONFIG_SYS_MONITOR_BASE, LENGTH = CONFIG_SYS_MONITOR_LEN
50   - l1_code : ORIGIN = L1_INST_SRAM, LENGTH = L1_INST_SRAM_SIZE
51   - l1_data : ORIGIN = L1_DATA_B_SRAM, LENGTH = L1_DATA_B_SRAM_SIZE
52   -}
53   -
54   -ENTRY(_start)
55   -SECTIONS
56   -{
57   - .text :
58   - {
59   - cpu/blackfin/start.o (.text .text.*)
60   - __initcode_start = .;
61   - cpu/blackfin/initcode.o (.text .text.*)
62   - __initcode_end = .;
63   - *(.text .text.*)
64   - } >ram
65   -
66   - .rodata :
67   - {
68   - . = ALIGN(4);
69   - *(.rodata .rodata.*)
70   - *(.rodata1)
71   - *(.eh_frame)
72   - . = ALIGN(4);
73   - } >ram
74   -
75   - .data :
76   - {
77   - . = ALIGN(256);
78   - *(.data .data.*)
79   - *(.data1)
80   - *(.sdata)
81   - *(.sdata2)
82   - *(.dynamic)
83   - CONSTRUCTORS
84   - } >ram
85   -
86   - .u_boot_cmd :
87   - {
88   - ___u_boot_cmd_start = .;
89   - *(.u_boot_cmd)
90   - ___u_boot_cmd_end = .;
91   - } >ram
92   -
93   - .text_l1 :
94   - {
95   - . = ALIGN(4);
96   - __stext_l1 = .;
97   - *(.l1.text)
98   - . = ALIGN(4);
99   - __etext_l1 = .;
100   - } >l1_code AT>ram
101   - __stext_l1_lma = LOADADDR(.text_l1);
102   -
103   - .data_l1 :
104   - {
105   - . = ALIGN(4);
106   - __sdata_l1 = .;
107   - *(.l1.data)
108   - *(.l1.bss)
109   - . = ALIGN(4);
110   - __edata_l1 = .;
111   - } >l1_data AT>ram
112   - __sdata_l1_lma = LOADADDR(.data_l1);
113   -
114   - .bss :
115   - {
116   - . = ALIGN(4);
117   - __bss_start = .;
118   - *(.sbss) *(.scommon)
119   - *(.dynbss)
120   - *(.bss .bss.*)
121   - *(COMMON)
122   - __bss_end = .;
123   - } >ram
124   -}
board/bf527-ezkit/.gitignore
1   -/u-boot.lds
board/bf527-ezkit/Makefile
... ... @@ -36,11 +36,8 @@
36 36 OBJS := $(addprefix $(obj),$(COBJS-y))
37 37 SOBJS := $(addprefix $(obj),$(SOBJS-y))
38 38  
39   -$(LIB): $(obj).depend $(OBJS) $(SOBJS) $(obj)u-boot.lds
  39 +$(LIB): $(obj).depend $(OBJS) $(SOBJS)
40 40 $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
41   -
42   -$(obj)u-boot.lds: u-boot.lds.S
43   - $(CPP) $(CPPFLAGS) -D__ASSEMBLY__ -P $^ > $@
44 41  
45 42 clean:
46 43 rm -f $(SOBJS) $(OBJS)
board/bf527-ezkit/config.mk
... ... @@ -26,8 +26,6 @@
26 26 # This is not actually used for Blackfin boards so do not change it
27 27 #TEXT_BASE = do-not-use-me
28 28  
29   -LDSCRIPT = $(obj)board/$(BOARDDIR)/u-boot.lds
30   -
31 29 # Set some default LDR flags based on boot mode.
32 30 LDR_FLAGS += $(LDR_FLAGS-$(CONFIG_BFIN_BOOT_MODE))
board/bf527-ezkit/u-boot.lds.S
1   -/*
2   - * U-boot - u-boot.lds.S
3   - *
4   - * Copyright (c) 2005-2008 Analog Device Inc.
5   - *
6   - * (C) Copyright 2000-2004
7   - * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
8   - *
9   - * See file CREDITS for list of people who contributed to this
10   - * project.
11   - *
12   - * This program is free software; you can redistribute it and/or
13   - * modify it under the terms of the GNU General Public License as
14   - * published by the Free Software Foundation; either version 2 of
15   - * the License, or (at your option) any later version.
16   - *
17   - * This program is distributed in the hope that it will be useful,
18   - * but WITHOUT ANY WARRANTY; without even the implied warranty of
19   - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20   - * GNU General Public License for more details.
21   - *
22   - * You should have received a copy of the GNU General Public License
23   - * along with this program; if not, write to the Free Software
24   - * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
25   - * MA 02111-1307 USA
26   - */
27   -
28   -#include <config.h>
29   -#include <asm/blackfin.h>
30   -#undef ALIGN
31   -#undef ENTRY
32   -#undef bfin
33   -
34   -/* If we don't actually load anything into L1 data, this will avoid
35   - * a syntax error. If we do actually load something into L1 data,
36   - * we'll get a linker memory load error (which is what we'd want).
37   - * This is here in the first place so we can quickly test building
38   - * for different CPU's which may lack non-cache L1 data.
39   - */
40   -#ifndef L1_DATA_B_SRAM
41   -# define L1_DATA_B_SRAM CONFIG_SYS_MONITOR_BASE
42   -# define L1_DATA_B_SRAM_SIZE 0
43   -#endif
44   -
45   -OUTPUT_ARCH(bfin)
46   -
47   -MEMORY
48   -{
49   - ram : ORIGIN = CONFIG_SYS_MONITOR_BASE, LENGTH = CONFIG_SYS_MONITOR_LEN
50   - l1_code : ORIGIN = L1_INST_SRAM, LENGTH = L1_INST_SRAM_SIZE
51   - l1_data : ORIGIN = L1_DATA_B_SRAM, LENGTH = L1_DATA_B_SRAM_SIZE
52   -}
53   -
54   -ENTRY(_start)
55   -SECTIONS
56   -{
57   - .text :
58   - {
59   - cpu/blackfin/start.o (.text .text.*)
60   - __initcode_start = .;
61   - cpu/blackfin/initcode.o (.text .text.*)
62   - __initcode_end = .;
63   - *(.text .text.*)
64   - } >ram
65   -
66   - .rodata :
67   - {
68   - . = ALIGN(4);
69   - *(.rodata .rodata.*)
70   - *(.rodata1)
71   - *(.eh_frame)
72   - . = ALIGN(4);
73   - } >ram
74   -
75   - .data :
76   - {
77   - . = ALIGN(256);
78   - *(.data .data.*)
79   - *(.data1)
80   - *(.sdata)
81   - *(.sdata2)
82   - *(.dynamic)
83   - CONSTRUCTORS
84   - } >ram
85   -
86   - .u_boot_cmd :
87   - {
88   - ___u_boot_cmd_start = .;
89   - *(.u_boot_cmd)
90   - ___u_boot_cmd_end = .;
91   - } >ram
92   -
93   - .text_l1 :
94   - {
95   - . = ALIGN(4);
96   - __stext_l1 = .;
97   - *(.l1.text)
98   - . = ALIGN(4);
99   - __etext_l1 = .;
100   - } >l1_code AT>ram
101   - __stext_l1_lma = LOADADDR(.text_l1);
102   -
103   - .data_l1 :
104   - {
105   - . = ALIGN(4);
106   - __sdata_l1 = .;
107   - *(.l1.data)
108   - *(.l1.bss)
109   - . = ALIGN(4);
110   - __edata_l1 = .;
111   - } >l1_data AT>ram
112   - __sdata_l1_lma = LOADADDR(.data_l1);
113   -
114   - .bss :
115   - {
116   - . = ALIGN(4);
117   - __bss_start = .;
118   - *(.sbss) *(.scommon)
119   - *(.dynbss)
120   - *(.bss .bss.*)
121   - *(COMMON)
122   - __bss_end = .;
123   - } >ram
124   -}
board/bf533-ezkit/.gitignore
1   -/u-boot.lds
board/bf533-ezkit/Makefile
... ... @@ -35,11 +35,8 @@
35 35 OBJS := $(addprefix $(obj),$(COBJS-y))
36 36 SOBJS := $(addprefix $(obj),$(SOBJS-y))
37 37  
38   -$(LIB): $(obj).depend $(OBJS) $(SOBJS) $(obj)u-boot.lds
  38 +$(LIB): $(obj).depend $(OBJS) $(SOBJS)
39 39 $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
40   -
41   -$(obj)u-boot.lds: u-boot.lds.S
42   - $(CPP) $(CPPFLAGS) -D__ASSEMBLY__ -P $^ > $@
43 40  
44 41 clean:
45 42 rm -f $(SOBJS) $(OBJS)
board/bf533-ezkit/config.mk
... ... @@ -26,8 +26,6 @@
26 26 # This is not actually used for Blackfin boards so do not change it
27 27 #TEXT_BASE = do-not-use-me
28 28  
29   -LDSCRIPT = $(obj)board/$(BOARDDIR)/u-boot.lds
30   -
31 29 # Set some default LDR flags based on boot mode.
32 30 LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 8
33 31 LDR_FLAGS += $(LDR_FLAGS-$(CONFIG_BFIN_BOOT_MODE))
board/bf533-ezkit/u-boot.lds.S
1   -/*
2   - * U-boot - u-boot.lds.S
3   - *
4   - * Copyright (c) 2005-2008 Analog Device Inc.
5   - *
6   - * (C) Copyright 2000-2004
7   - * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
8   - *
9   - * See file CREDITS for list of people who contributed to this
10   - * project.
11   - *
12   - * This program is free software; you can redistribute it and/or
13   - * modify it under the terms of the GNU General Public License as
14   - * published by the Free Software Foundation; either version 2 of
15   - * the License, or (at your option) any later version.
16   - *
17   - * This program is distributed in the hope that it will be useful,
18   - * but WITHOUT ANY WARRANTY; without even the implied warranty of
19   - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20   - * GNU General Public License for more details.
21   - *
22   - * You should have received a copy of the GNU General Public License
23   - * along with this program; if not, write to the Free Software
24   - * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
25   - * MA 02111-1307 USA
26   - */
27   -
28   -#include <config.h>
29   -#include <asm/blackfin.h>
30   -#undef ALIGN
31   -#undef ENTRY
32   -#undef bfin
33   -
34   -/* If we don't actually load anything into L1 data, this will avoid
35   - * a syntax error. If we do actually load something into L1 data,
36   - * we'll get a linker memory load error (which is what we'd want).
37   - * This is here in the first place so we can quickly test building
38   - * for different CPU's which may lack non-cache L1 data.
39   - */
40   -#ifndef L1_DATA_B_SRAM
41   -# define L1_DATA_B_SRAM CONFIG_SYS_MONITOR_BASE
42   -# define L1_DATA_B_SRAM_SIZE 0
43   -#endif
44   -
45   -OUTPUT_ARCH(bfin)
46   -
47   -MEMORY
48   -{
49   - ram : ORIGIN = CONFIG_SYS_MONITOR_BASE, LENGTH = CONFIG_SYS_MONITOR_LEN
50   - l1_code : ORIGIN = L1_INST_SRAM, LENGTH = L1_INST_SRAM_SIZE
51   - l1_data : ORIGIN = L1_DATA_B_SRAM, LENGTH = L1_DATA_B_SRAM_SIZE
52   -}
53   -
54   -ENTRY(_start)
55   -SECTIONS
56   -{
57   - .text :
58   - {
59   - cpu/blackfin/start.o (.text .text.*)
60   -
61   -#ifdef ENV_IS_EMBEDDED
62   - /* WARNING - the following is hand-optimized to fit within
63   - * the sector before the environment sector. If it throws
64   - * an error during compilation remove an object here to get
65   - * it linked after the configuration sector.
66   - */
67   -
68   - cpu/blackfin/traps.o (.text .text.*)
69   - cpu/blackfin/interrupt.o (.text .text.*)
70   - cpu/blackfin/serial.o (.text .text.*)
71   - common/dlmalloc.o (.text .text.*)
72   - lib_generic/crc32.o (.text .text.*)
73   - lib_generic/zlib.o (.text .text.*)
74   - board/bf533-ezkit/bf533-ezkit.o (.text .text.*)
75   -
76   - . = DEFINED(env_offset) ? env_offset : .;
77   - common/env_embedded.o (.text .text.*)
78   -#endif
79   -
80   - __initcode_start = .;
81   - cpu/blackfin/initcode.o (.text .text.*)
82   - __initcode_end = .;
83   -
84   - *(.text .text.*)
85   - } >ram
86   -
87   - .rodata :
88   - {
89   - . = ALIGN(4);
90   - *(.rodata .rodata.*)
91   - *(.rodata1)
92   - *(.eh_frame)
93   - . = ALIGN(4);
94   - } >ram
95   -
96   - .data :
97   - {
98   - . = ALIGN(256);
99   - *(.data .data.*)
100   - *(.data1)
101   - *(.sdata)
102   - *(.sdata2)
103   - *(.dynamic)
104   - CONSTRUCTORS
105   - } >ram
106   -
107   - .u_boot_cmd :
108   - {
109   - ___u_boot_cmd_start = .;
110   - *(.u_boot_cmd)
111   - ___u_boot_cmd_end = .;
112   - } >ram
113   -
114   - .text_l1 :
115   - {
116   - . = ALIGN(4);
117   - __stext_l1 = .;
118   - *(.l1.text)
119   - . = ALIGN(4);
120   - __etext_l1 = .;
121   - } >l1_code AT>ram
122   - __stext_l1_lma = LOADADDR(.text_l1);
123   -
124   - .data_l1 :
125   - {
126   - . = ALIGN(4);
127   - __sdata_l1 = .;
128   - *(.l1.data)
129   - *(.l1.bss)
130   - . = ALIGN(4);
131   - __edata_l1 = .;
132   - } >l1_data AT>ram
133   - __sdata_l1_lma = LOADADDR(.data_l1);
134   -
135   - .bss :
136   - {
137   - . = ALIGN(4);
138   - __bss_start = .;
139   - *(.sbss) *(.scommon)
140   - *(.dynbss)
141   - *(.bss .bss.*)
142   - *(COMMON)
143   - __bss_end = .;
144   - } >ram
145   -}
board/bf533-stamp/.gitignore
1   -/u-boot.lds
board/bf533-stamp/Makefile
... ... @@ -36,11 +36,8 @@
36 36 OBJS := $(addprefix $(obj),$(COBJS-y))
37 37 SOBJS := $(addprefix $(obj),$(SOBJS-y))
38 38  
39   -$(LIB): $(obj).depend $(OBJS) $(SOBJS) $(obj)u-boot.lds
  39 +$(LIB): $(obj).depend $(OBJS) $(SOBJS)
40 40 $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
41   -
42   -$(obj)u-boot.lds: u-boot.lds.S
43   - $(CPP) $(CPPFLAGS) -D__ASSEMBLY__ -P $^ > $@
44 41  
45 42 clean:
46 43 rm -f $(SOBJS) $(OBJS)
board/bf533-stamp/config.mk
... ... @@ -26,8 +26,6 @@
26 26 # This is not actually used for Blackfin boards so do not change it
27 27 #TEXT_BASE = do-not-use-me
28 28  
29   -LDSCRIPT = $(obj)board/$(BOARDDIR)/u-boot.lds
30   -
31 29 # Set some default LDR flags based on boot mode.
32 30 LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 8
33 31 LDR_FLAGS += $(LDR_FLAGS-$(CONFIG_BFIN_BOOT_MODE))
board/bf533-stamp/u-boot.lds.S
1   -/*
2   - * U-boot - u-boot.lds.S
3   - *
4   - * Copyright (c) 2005-2008 Analog Device Inc.
5   - *
6   - * (C) Copyright 2000-2004
7   - * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
8   - *
9   - * See file CREDITS for list of people who contributed to this
10   - * project.
11   - *
12   - * This program is free software; you can redistribute it and/or
13   - * modify it under the terms of the GNU General Public License as
14   - * published by the Free Software Foundation; either version 2 of
15   - * the License, or (at your option) any later version.
16   - *
17   - * This program is distributed in the hope that it will be useful,
18   - * but WITHOUT ANY WARRANTY; without even the implied warranty of
19   - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20   - * GNU General Public License for more details.
21   - *
22   - * You should have received a copy of the GNU General Public License
23   - * along with this program; if not, write to the Free Software
24   - * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
25   - * MA 02111-1307 USA
26   - */
27   -
28   -#include <config.h>
29   -#include <asm/blackfin.h>
30   -#undef ALIGN
31   -#undef ENTRY
32   -#undef bfin
33   -
34   -/* If we don't actually load anything into L1 data, this will avoid
35   - * a syntax error. If we do actually load something into L1 data,
36   - * we'll get a linker memory load error (which is what we'd want).
37   - * This is here in the first place so we can quickly test building
38   - * for different CPU's which may lack non-cache L1 data.
39   - */
40   -#ifndef L1_DATA_B_SRAM
41   -# define L1_DATA_B_SRAM CONFIG_SYS_MONITOR_BASE
42   -# define L1_DATA_B_SRAM_SIZE 0
43   -#endif
44   -
45   -OUTPUT_ARCH(bfin)
46   -
47   -MEMORY
48   -{
49   - ram : ORIGIN = CONFIG_SYS_MONITOR_BASE, LENGTH = CONFIG_SYS_MONITOR_LEN
50   - l1_code : ORIGIN = L1_INST_SRAM, LENGTH = L1_INST_SRAM_SIZE
51   - l1_data : ORIGIN = L1_DATA_B_SRAM, LENGTH = L1_DATA_B_SRAM_SIZE
52   -}
53   -
54   -ENTRY(_start)
55   -SECTIONS
56   -{
57   - .text :
58   - {
59   - cpu/blackfin/start.o (.text .text.*)
60   -
61   -#ifdef ENV_IS_EMBEDDED
62   - /* WARNING - the following is hand-optimized to fit within
63   - * the sector before the environment sector. If it throws
64   - * an error during compilation remove an object here to get
65   - * it linked after the configuration sector.
66   - */
67   -
68   - cpu/blackfin/traps.o (.text .text.*)
69   - cpu/blackfin/interrupt.o (.text .text.*)
70   - cpu/blackfin/serial.o (.text .text.*)
71   - common/dlmalloc.o (.text .text.*)
72   - lib_generic/crc32.o (.text .text.*)
73   -
74   - . = DEFINED(env_offset) ? env_offset : .;
75   - common/env_embedded.o (.text .text.*)
76   -#endif
77   -
78   - __initcode_start = .;
79   - cpu/blackfin/initcode.o (.text .text.*)
80   - __initcode_end = .;
81   -
82   - *(.text .text.*)
83   - } >ram
84   -
85   - .rodata :
86   - {
87   - . = ALIGN(4);
88   - *(.rodata .rodata.*)
89   - *(.rodata1)
90   - *(.eh_frame)
91   - . = ALIGN(4);
92   - } >ram
93   -
94   - .data :
95   - {
96   - . = ALIGN(256);
97   - *(.data .data.*)
98   - *(.data1)
99   - *(.sdata)
100   - *(.sdata2)
101   - *(.dynamic)
102   - CONSTRUCTORS
103   - } >ram
104   -
105   - .u_boot_cmd :
106   - {
107   - ___u_boot_cmd_start = .;
108   - *(.u_boot_cmd)
109   - ___u_boot_cmd_end = .;
110   - } >ram
111   -
112   - .text_l1 :
113   - {
114   - . = ALIGN(4);
115   - __stext_l1 = .;
116   - *(.l1.text)
117   - . = ALIGN(4);
118   - __etext_l1 = .;
119   - } >l1_code AT>ram
120   - __stext_l1_lma = LOADADDR(.text_l1);
121   -
122   - .data_l1 :
123   - {
124   - . = ALIGN(4);
125   - __sdata_l1 = .;
126   - *(.l1.data)
127   - *(.l1.bss)
128   - . = ALIGN(4);
129   - __edata_l1 = .;
130   - } >l1_data AT>ram
131   - __sdata_l1_lma = LOADADDR(.data_l1);
132   -
133   - .bss :
134   - {
135   - . = ALIGN(4);
136   - __bss_start = .;
137   - *(.sbss) *(.scommon)
138   - *(.dynbss)
139   - *(.bss .bss.*)
140   - *(COMMON)
141   - __bss_end = .;
142   - } >ram
143   -}
board/bf537-minotaur/.gitignore
1   -/u-boot.lds
board/bf537-minotaur/Makefile
... ... @@ -35,11 +35,8 @@
35 35 OBJS := $(addprefix $(obj),$(COBJS-y))
36 36 SOBJS := $(addprefix $(obj),$(SOBJS-y))
37 37  
38   -$(LIB): $(obj).depend $(OBJS) $(SOBJS) $(obj)u-boot.lds
  38 +$(LIB): $(obj).depend $(OBJS) $(SOBJS)
39 39 $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
40   -
41   -$(obj)u-boot.lds: u-boot.lds.S
42   - $(CPP) $(CPPFLAGS) -D__ASSEMBLY__ -P $^ > $@
43 40  
44 41 clean:
45 42 rm -f $(SOBJS) $(OBJS)
board/bf537-minotaur/config.mk
... ... @@ -26,8 +26,6 @@
26 26 # This is not actually used for Blackfin boards so do not change it
27 27 #TEXT_BASE = do-not-use-me
28 28  
29   -LDSCRIPT = $(obj)board/$(BOARDDIR)/u-boot.lds
30   -
31 29 # Set some default LDR flags based on boot mode.
32 30 LDR_FLAGS-BFIN_BOOT_UART := --port g --gpio 6
33 31 LDR_FLAGS += $(LDR_FLAGS-$(CONFIG_BFIN_BOOT_MODE))
board/bf537-minotaur/u-boot.lds.S
1   -/*
2   - * U-boot - u-boot.lds.S
3   - *
4   - * Copyright (c) 2005-2008 Analog Device Inc.
5   - *
6   - * (C) Copyright 2000-2004
7   - * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
8   - *
9   - * See file CREDITS for list of people who contributed to this
10   - * project.
11   - *
12   - * This program is free software; you can redistribute it and/or
13   - * modify it under the terms of the GNU General Public License as
14   - * published by the Free Software Foundation; either version 2 of
15   - * the License, or (at your option) any later version.
16   - *
17   - * This program is distributed in the hope that it will be useful,
18   - * but WITHOUT ANY WARRANTY; without even the implied warranty of
19   - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20   - * GNU General Public License for more details.
21   - *
22   - * You should have received a copy of the GNU General Public License
23   - * along with this program; if not, write to the Free Software
24   - * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
25   - * MA 02111-1307 USA
26   - */
27   -
28   -#include <config.h>
29   -#include <asm/blackfin.h>
30   -#undef ALIGN
31   -#undef ENTRY
32   -#undef bfin
33   -
34   -/* If we don't actually load anything into L1 data, this will avoid
35   - * a syntax error. If we do actually load something into L1 data,
36   - * we'll get a linker memory load error (which is what we'd want).
37   - * This is here in the first place so we can quickly test building
38   - * for different CPU's which may lack non-cache L1 data.
39   - */
40   -#ifndef L1_DATA_B_SRAM
41   -# define L1_DATA_B_SRAM CONFIG_SYS_MONITOR_BASE
42   -# define L1_DATA_B_SRAM_SIZE 0
43   -#endif
44   -
45   -OUTPUT_ARCH(bfin)
46   -
47   -MEMORY
48   -{
49   - ram : ORIGIN = CONFIG_SYS_MONITOR_BASE, LENGTH = CONFIG_SYS_MONITOR_LEN
50   - l1_code : ORIGIN = L1_INST_SRAM, LENGTH = L1_INST_SRAM_SIZE
51   - l1_data : ORIGIN = L1_DATA_B_SRAM, LENGTH = L1_DATA_B_SRAM_SIZE
52   -}
53   -
54   -ENTRY(_start)
55   -SECTIONS
56   -{
57   - .text :
58   - {
59   - cpu/blackfin/start.o (.text .text.*)
60   -
61   -#ifdef ENV_IS_EMBEDDED
62   - /* WARNING - the following is hand-optimized to fit within
63   - * the sector before the environment sector. If it throws
64   - * an error during compilation remove an object here to get
65   - * it linked after the configuration sector.
66   - */
67   -
68   - cpu/blackfin/traps.o (.text .text.*)
69   - cpu/blackfin/interrupt.o (.text .text.*)
70   - cpu/blackfin/serial.o (.text .text.*)
71   - common/dlmalloc.o (.text .text.*)
72   - lib_generic/crc32.o (.text .text.*)
73   -
74   - . = DEFINED(env_offset) ? env_offset : .;
75   - common/env_embedded.o (.text .text.*)
76   -#endif
77   -
78   - __initcode_start = .;
79   - cpu/blackfin/initcode.o (.text .text.*)
80   - __initcode_end = .;
81   -
82   - *(.text .text.*)
83   - } >ram
84   -
85   - .rodata :
86   - {
87   - . = ALIGN(4);
88   - *(.rodata .rodata.*)
89   - *(.rodata1)
90   - *(.eh_frame)
91   - . = ALIGN(4);
92   - } >ram
93   -
94   - .data :
95   - {
96   - . = ALIGN(256);
97   - *(.data .data.*)
98   - *(.data1)
99   - *(.sdata)
100   - *(.sdata2)
101   - *(.dynamic)
102   - CONSTRUCTORS
103   - } >ram
104   -
105   - .u_boot_cmd :
106   - {
107   - ___u_boot_cmd_start = .;
108   - *(.u_boot_cmd)
109   - ___u_boot_cmd_end = .;
110   - } >ram
111   -
112   - .text_l1 :
113   - {
114   - . = ALIGN(4);
115   - __stext_l1 = .;
116   - *(.l1.text)
117   - . = ALIGN(4);
118   - __etext_l1 = .;
119   - } >l1_code AT>ram
120   - __stext_l1_lma = LOADADDR(.text_l1);
121   -
122   - .data_l1 :
123   - {
124   - . = ALIGN(4);
125   - __sdata_l1 = .;
126   - *(.l1.data)
127   - *(.l1.bss)
128   - . = ALIGN(4);
129   - __edata_l1 = .;
130   - } >l1_data AT>ram
131   - __sdata_l1_lma = LOADADDR(.data_l1);
132   -
133   - .bss :
134   - {
135   - . = ALIGN(4);
136   - __bss_start = .;
137   - *(.sbss) *(.scommon)
138   - *(.dynbss)
139   - *(.bss .bss.*)
140   - *(COMMON)
141   - __bss_end = .;
142   - } >ram
143   -}
board/bf537-pnav/.gitignore
1   -/u-boot.lds
board/bf537-pnav/Makefile
... ... @@ -35,11 +35,8 @@
35 35 OBJS := $(addprefix $(obj),$(COBJS-y))
36 36 SOBJS := $(addprefix $(obj),$(SOBJS-y))
37 37  
38   -$(LIB): $(obj).depend $(OBJS) $(SOBJS) $(obj)u-boot.lds
  38 +$(LIB): $(obj).depend $(OBJS) $(SOBJS)
39 39 $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
40   -
41   -$(obj)u-boot.lds: u-boot.lds.S
42   - $(CPP) $(CPPFLAGS) -D__ASSEMBLY__ -P $^ > $@
43 40  
44 41 clean:
45 42 rm -f $(SOBJS) $(OBJS)
board/bf537-pnav/config.mk
... ... @@ -26,8 +26,6 @@
26 26 # This is not actually used for Blackfin boards so do not change it
27 27 #TEXT_BASE = do-not-use-me
28 28  
29   -LDSCRIPT = $(obj)board/$(BOARDDIR)/u-boot.lds
30   -
31 29 # Set some default LDR flags based on boot mode.
32 30 LDR_FLAGS += $(LDR_FLAGS-$(CONFIG_BFIN_BOOT_MODE))
board/bf537-pnav/u-boot.lds.S
1   -/*
2   - * U-boot - u-boot.lds.S
3   - *
4   - * Copyright (c) 2005-2008 Analog Device Inc.
5   - *
6   - * (C) Copyright 2000-2004
7   - * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
8   - *
9   - * See file CREDITS for list of people who contributed to this
10   - * project.
11   - *
12   - * This program is free software; you can redistribute it and/or
13   - * modify it under the terms of the GNU General Public License as
14   - * published by the Free Software Foundation; either version 2 of
15   - * the License, or (at your option) any later version.
16   - *
17   - * This program is distributed in the hope that it will be useful,
18   - * but WITHOUT ANY WARRANTY; without even the implied warranty of
19   - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20   - * GNU General Public License for more details.
21   - *
22   - * You should have received a copy of the GNU General Public License
23   - * along with this program; if not, write to the Free Software
24   - * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
25   - * MA 02111-1307 USA
26   - */
27   -
28   -#include <config.h>
29   -#include <asm/blackfin.h>
30   -#undef ALIGN
31   -#undef ENTRY
32   -#undef bfin
33   -
34   -/* If we don't actually load anything into L1 data, this will avoid
35   - * a syntax error. If we do actually load something into L1 data,
36   - * we'll get a linker memory load error (which is what we'd want).
37   - * This is here in the first place so we can quickly test building
38   - * for different CPU's which may lack non-cache L1 data.
39   - */
40   -#ifndef L1_DATA_B_SRAM
41   -# define L1_DATA_B_SRAM CONFIG_SYS_MONITOR_BASE
42   -# define L1_DATA_B_SRAM_SIZE 0
43   -#endif
44   -
45   -OUTPUT_ARCH(bfin)
46   -
47   -MEMORY
48   -{
49   - ram : ORIGIN = CONFIG_SYS_MONITOR_BASE, LENGTH = CONFIG_SYS_MONITOR_LEN
50   - l1_code : ORIGIN = L1_INST_SRAM, LENGTH = L1_INST_SRAM_SIZE
51   - l1_data : ORIGIN = L1_DATA_B_SRAM, LENGTH = L1_DATA_B_SRAM_SIZE
52   -}
53   -
54   -ENTRY(_start)
55   -SECTIONS
56   -{
57   - .text :
58   - {
59   - cpu/blackfin/start.o (.text .text.*)
60   -
61   -#ifdef ENV_IS_EMBEDDED
62   - /* WARNING - the following is hand-optimized to fit within
63   - * the sector before the environment sector. If it throws
64   - * an error during compilation remove an object here to get
65   - * it linked after the configuration sector.
66   - */
67   -
68   - cpu/blackfin/traps.o (.text .text.*)
69   - cpu/blackfin/interrupt.o (.text .text.*)
70   - cpu/blackfin/serial.o (.text .text.*)
71   - common/dlmalloc.o (.text .text.*)
72   - lib_generic/crc32.o (.text .text.*)
73   -
74   - . = DEFINED(env_offset) ? env_offset : .;
75   - common/env_embedded.o (.text .text.*)
76   -#endif
77   -
78   - __initcode_start = .;
79   - cpu/blackfin/initcode.o (.text .text.*)
80   - __initcode_end = .;
81   -
82   - *(.text .text.*)
83   - } >ram
84   -
85   - .rodata :
86   - {
87   - . = ALIGN(4);
88   - *(.rodata .rodata.*)
89   - *(.rodata1)
90   - *(.eh_frame)
91   - . = ALIGN(4);
92   - } >ram
93   -
94   - .data :
95   - {
96   - . = ALIGN(256);
97   - *(.data .data.*)
98   - *(.data1)
99   - *(.sdata)
100   - *(.sdata2)
101   - *(.dynamic)
102   - CONSTRUCTORS
103   - } >ram
104   -
105   - .u_boot_cmd :
106   - {
107   - ___u_boot_cmd_start = .;
108   - *(.u_boot_cmd)
109   - ___u_boot_cmd_end = .;
110   - } >ram
111   -
112   - .text_l1 :
113   - {
114   - . = ALIGN(4);
115   - __stext_l1 = .;
116   - *(.l1.text)
117   - . = ALIGN(4);
118   - __etext_l1 = .;
119   - } >l1_code AT>ram
120   - __stext_l1_lma = LOADADDR(.text_l1);
121   -
122   - .data_l1 :
123   - {
124   - . = ALIGN(4);
125   - __sdata_l1 = .;
126   - *(.l1.data)
127   - *(.l1.bss)
128   - . = ALIGN(4);
129   - __edata_l1 = .;
130   - } >l1_data AT>ram
131   - __sdata_l1_lma = LOADADDR(.data_l1);
132   -
133   - .bss :
134   - {
135   - . = ALIGN(4);
136   - __bss_start = .;
137   - *(.sbss) *(.scommon)
138   - *(.dynbss)
139   - *(.bss .bss.*)
140   - *(COMMON)
141   - __bss_end = .;
142   - } >ram
143   -}
board/bf537-srv1/.gitignore
1   -/u-boot.lds
board/bf537-srv1/Makefile
... ... @@ -35,11 +35,8 @@
35 35 OBJS := $(addprefix $(obj),$(COBJS-y))
36 36 SOBJS := $(addprefix $(obj),$(SOBJS-y))
37 37  
38   -$(LIB): $(obj).depend $(OBJS) $(SOBJS) $(obj)u-boot.lds
  38 +$(LIB): $(obj).depend $(OBJS) $(SOBJS)
39 39 $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
40   -
41   -$(obj)u-boot.lds: u-boot.lds.S
42   - $(CPP) $(CPPFLAGS) -D__ASSEMBLY__ -P $^ > $@
43 40  
44 41 clean:
45 42 rm -f $(SOBJS) $(OBJS)
board/bf537-srv1/config.mk
... ... @@ -26,8 +26,6 @@
26 26 # This is not actually used for Blackfin boards so do not change it
27 27 #TEXT_BASE = do-not-use-me
28 28  
29   -LDSCRIPT = $(obj)board/$(BOARDDIR)/u-boot.lds
30   -
31 29 # Set some default LDR flags based on boot mode.
32 30 LDR_FLAGS-BFIN_BOOT_UART := --port g --gpio 6
33 31 LDR_FLAGS += $(LDR_FLAGS-$(CONFIG_BFIN_BOOT_MODE))
board/bf537-srv1/u-boot.lds.S
1   -/*
2   - * U-boot - u-boot.lds.S
3   - *
4   - * Copyright (c) 2005-2008 Analog Device Inc.
5   - *
6   - * (C) Copyright 2000-2004
7   - * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
8   - *
9   - * See file CREDITS for list of people who contributed to this
10   - * project.
11   - *
12   - * This program is free software; you can redistribute it and/or
13   - * modify it under the terms of the GNU General Public License as
14   - * published by the Free Software Foundation; either version 2 of
15   - * the License, or (at your option) any later version.
16   - *
17   - * This program is distributed in the hope that it will be useful,
18   - * but WITHOUT ANY WARRANTY; without even the implied warranty of
19   - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20   - * GNU General Public License for more details.
21   - *
22   - * You should have received a copy of the GNU General Public License
23   - * along with this program; if not, write to the Free Software
24   - * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
25   - * MA 02111-1307 USA
26   - */
27   -
28   -#include <config.h>
29   -#include <asm/blackfin.h>
30   -#undef ALIGN
31   -#undef ENTRY
32   -#undef bfin
33   -
34   -/* If we don't actually load anything into L1 data, this will avoid
35   - * a syntax error. If we do actually load something into L1 data,
36   - * we'll get a linker memory load error (which is what we'd want).
37   - * This is here in the first place so we can quickly test building
38   - * for different CPU's which may lack non-cache L1 data.
39   - */
40   -#ifndef L1_DATA_B_SRAM
41   -# define L1_DATA_B_SRAM CONFIG_SYS_MONITOR_BASE
42   -# define L1_DATA_B_SRAM_SIZE 0
43   -#endif
44   -
45   -OUTPUT_ARCH(bfin)
46   -
47   -MEMORY
48   -{
49   - ram : ORIGIN = CONFIG_SYS_MONITOR_BASE, LENGTH = CONFIG_SYS_MONITOR_LEN
50   - l1_code : ORIGIN = L1_INST_SRAM, LENGTH = L1_INST_SRAM_SIZE
51   - l1_data : ORIGIN = L1_DATA_B_SRAM, LENGTH = L1_DATA_B_SRAM_SIZE
52   -}
53   -
54   -ENTRY(_start)
55   -SECTIONS
56   -{
57   - .text :
58   - {
59   - cpu/blackfin/start.o (.text .text.*)
60   -
61   -#ifdef ENV_IS_EMBEDDED
62   - /* WARNING - the following is hand-optimized to fit within
63   - * the sector before the environment sector. If it throws
64   - * an error during compilation remove an object here to get
65   - * it linked after the configuration sector.
66   - */
67   -
68   - cpu/blackfin/traps.o (.text .text.*)
69   - cpu/blackfin/interrupt.o (.text .text.*)
70   - cpu/blackfin/serial.o (.text .text.*)
71   - common/dlmalloc.o (.text .text.*)
72   - lib_generic/crc32.o (.text .text.*)
73   -
74   - . = DEFINED(env_offset) ? env_offset : .;
75   - common/env_embedded.o (.text .text.*)
76   -#endif
77   -
78   - __initcode_start = .;
79   - cpu/blackfin/initcode.o (.text .text.*)
80   - __initcode_end = .;
81   -
82   - *(.text .text.*)
83   - } >ram
84   -
85   - .rodata :
86   - {
87   - . = ALIGN(4);
88   - *(.rodata .rodata.*)
89   - *(.rodata1)
90   - *(.eh_frame)
91   - . = ALIGN(4);
92   - } >ram
93   -
94   - .data :
95   - {
96   - . = ALIGN(256);
97   - *(.data .data.*)
98   - *(.data1)
99   - *(.sdata)
100   - *(.sdata2)
101   - *(.dynamic)
102   - CONSTRUCTORS
103   - } >ram
104   -
105   - .u_boot_cmd :
106   - {
107   - ___u_boot_cmd_start = .;
108   - *(.u_boot_cmd)
109   - ___u_boot_cmd_end = .;
110   - } >ram
111   -
112   - .text_l1 :
113   - {
114   - . = ALIGN(4);
115   - __stext_l1 = .;
116   - *(.l1.text)
117   - . = ALIGN(4);
118   - __etext_l1 = .;
119   - } >l1_code AT>ram
120   - __stext_l1_lma = LOADADDR(.text_l1);
121   -
122   - .data_l1 :
123   - {
124   - . = ALIGN(4);
125   - __sdata_l1 = .;
126   - *(.l1.data)
127   - *(.l1.bss)
128   - . = ALIGN(4);
129   - __edata_l1 = .;
130   - } >l1_data AT>ram
131   - __sdata_l1_lma = LOADADDR(.data_l1);
132   -
133   - .bss :
134   - {
135   - . = ALIGN(4);
136   - __bss_start = .;
137   - *(.sbss) *(.scommon)
138   - *(.dynbss)
139   - *(.bss .bss.*)
140   - *(COMMON)
141   - __bss_end = .;
142   - } >ram
143   -}
board/bf537-stamp/.gitignore
1   -/u-boot.lds
board/bf537-stamp/Makefile
... ... @@ -39,11 +39,8 @@
39 39 OBJS := $(addprefix $(obj),$(COBJS-y))
40 40 SOBJS := $(addprefix $(obj),$(SOBJS-y))
41 41  
42   -$(LIB): $(obj).depend $(OBJS) $(SOBJS) $(obj)u-boot.lds
  42 +$(LIB): $(obj).depend $(OBJS) $(SOBJS)
43 43 $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
44   -
45   -$(obj)u-boot.lds: u-boot.lds.S
46   - $(CPP) $(CPPFLAGS) -D__ASSEMBLY__ -P $^ > $@
47 44  
48 45 clean:
49 46 rm -f $(SOBJS) $(OBJS)
board/bf537-stamp/config.mk
... ... @@ -26,8 +26,6 @@
26 26 # This is not actually used for Blackfin boards so do not change it
27 27 #TEXT_BASE = do-not-use-me
28 28  
29   -LDSCRIPT = $(obj)board/$(BOARDDIR)/u-boot.lds
30   -
31 29 # Set some default LDR flags based on boot mode.
32 30 LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 8
33 31 LDR_FLAGS-BFIN_BOOT_UART := --port g --gpio 6
board/bf537-stamp/u-boot.lds.S
1   -/*
2   - * U-boot - u-boot.lds.S
3   - *
4   - * Copyright (c) 2005-2008 Analog Device Inc.
5   - *
6   - * (C) Copyright 2000-2004
7   - * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
8   - *
9   - * See file CREDITS for list of people who contributed to this
10   - * project.
11   - *
12   - * This program is free software; you can redistribute it and/or
13   - * modify it under the terms of the GNU General Public License as
14   - * published by the Free Software Foundation; either version 2 of
15   - * the License, or (at your option) any later version.
16   - *
17   - * This program is distributed in the hope that it will be useful,
18   - * but WITHOUT ANY WARRANTY; without even the implied warranty of
19   - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20   - * GNU General Public License for more details.
21   - *
22   - * You should have received a copy of the GNU General Public License
23   - * along with this program; if not, write to the Free Software
24   - * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
25   - * MA 02111-1307 USA
26   - */
27   -
28   -#include <config.h>
29   -#include <asm/blackfin.h>
30   -#undef ALIGN
31   -#undef ENTRY
32   -#undef bfin
33   -
34   -/* If we don't actually load anything into L1 data, this will avoid
35   - * a syntax error. If we do actually load something into L1 data,
36   - * we'll get a linker memory load error (which is what we'd want).
37   - * This is here in the first place so we can quickly test building
38   - * for different CPU's which may lack non-cache L1 data.
39   - */
40   -#ifndef L1_DATA_B_SRAM
41   -# define L1_DATA_B_SRAM CONFIG_SYS_MONITOR_BASE
42   -# define L1_DATA_B_SRAM_SIZE 0
43   -#endif
44   -
45   -OUTPUT_ARCH(bfin)
46   -
47   -MEMORY
48   -{
49   - ram : ORIGIN = CONFIG_SYS_MONITOR_BASE, LENGTH = CONFIG_SYS_MONITOR_LEN
50   - l1_code : ORIGIN = L1_INST_SRAM, LENGTH = L1_INST_SRAM_SIZE
51   - l1_data : ORIGIN = L1_DATA_B_SRAM, LENGTH = L1_DATA_B_SRAM_SIZE
52   -}
53   -
54   -ENTRY(_start)
55   -SECTIONS
56   -{
57   - .text :
58   - {
59   - cpu/blackfin/start.o (.text .text.*)
60   -
61   -#ifdef ENV_IS_EMBEDDED
62   - /* WARNING - the following is hand-optimized to fit within
63   - * the sector before the environment sector. If it throws
64   - * an error during compilation remove an object here to get
65   - * it linked after the configuration sector.
66   - */
67   -
68   - cpu/blackfin/traps.o (.text .text.*)
69   - cpu/blackfin/interrupt.o (.text .text.*)
70   - cpu/blackfin/serial.o (.text .text.*)
71   - common/dlmalloc.o (.text .text.*)
72   - lib_generic/crc32.o (.text .text.*)
73   -
74   - . = DEFINED(env_offset) ? env_offset : .;
75   - common/env_embedded.o (.text .text.*)
76   -#endif
77   -
78   - __initcode_start = .;
79   - cpu/blackfin/initcode.o (.text .text.*)
80   - __initcode_end = .;
81   -
82   - *(.text .text.*)
83   - } >ram
84   -
85   - .rodata :
86   - {
87   - . = ALIGN(4);
88   - *(.rodata .rodata.*)
89   - *(.rodata1)
90   - *(.eh_frame)
91   - . = ALIGN(4);
92   - } >ram
93   -
94   - .data :
95   - {
96   - . = ALIGN(256);
97   - *(.data .data.*)
98   - *(.data1)
99   - *(.sdata)
100   - *(.sdata2)
101   - *(.dynamic)
102   - CONSTRUCTORS
103   - } >ram
104   -
105   - .u_boot_cmd :
106   - {
107   - ___u_boot_cmd_start = .;
108   - *(.u_boot_cmd)
109   - ___u_boot_cmd_end = .;
110   - } >ram
111   -
112   - .text_l1 :
113   - {
114   - . = ALIGN(4);
115   - __stext_l1 = .;
116   - *(.l1.text)
117   - . = ALIGN(4);
118   - __etext_l1 = .;
119   - } >l1_code AT>ram
120   - __stext_l1_lma = LOADADDR(.text_l1);
121   -
122   - .data_l1 :
123   - {
124   - . = ALIGN(4);
125   - __sdata_l1 = .;
126   - *(.l1.data)
127   - *(.l1.bss)
128   - . = ALIGN(4);
129   - __edata_l1 = .;
130   - } >l1_data AT>ram
131   - __sdata_l1_lma = LOADADDR(.data_l1);
132   -
133   - .bss :
134   - {
135   - . = ALIGN(4);
136   - __bss_start = .;
137   - *(.sbss) *(.scommon)
138   - *(.dynbss)
139   - *(.bss .bss.*)
140   - *(COMMON)
141   - __bss_end = .;
142   - } >ram
143   -}
board/bf538f-ezkit/.gitignore
1   -/u-boot.lds
board/bf538f-ezkit/Makefile
... ... @@ -35,11 +35,8 @@
35 35 OBJS := $(addprefix $(obj),$(COBJS-y))
36 36 SOBJS := $(addprefix $(obj),$(SOBJS-y))
37 37  
38   -$(LIB): $(obj).depend $(OBJS) $(SOBJS) $(obj)u-boot.lds
  38 +$(LIB): $(obj).depend $(OBJS) $(SOBJS)
39 39 $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
40   -
41   -$(obj)u-boot.lds: u-boot.lds.S
42   - $(CPP) $(CPPFLAGS) -D__ASSEMBLY__ -P $^ > $@
43 40  
44 41 clean:
45 42 rm -f $(SOBJS) $(OBJS)
board/bf538f-ezkit/config.mk
... ... @@ -26,8 +26,6 @@
26 26 # This is not actually used for Blackfin boards so do not change it
27 27 #TEXT_BASE = do-not-use-me
28 28  
29   -LDSCRIPT = $(obj)board/$(BOARDDIR)/u-boot.lds
30   -
31 29 # Set some default LDR flags based on boot mode.
32 30 LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 8
33 31 LDR_FLAGS += $(LDR_FLAGS-$(CONFIG_BFIN_BOOT_MODE))
board/bf538f-ezkit/u-boot.lds.S
1   -/*
2   - * U-boot - u-boot.lds.S
3   - *
4   - * Copyright (c) 2005-2008 Analog Device Inc.
5   - *
6   - * (C) Copyright 2000-2004
7   - * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
8   - *
9   - * See file CREDITS for list of people who contributed to this
10   - * project.
11   - *
12   - * This program is free software; you can redistribute it and/or
13   - * modify it under the terms of the GNU General Public License as
14   - * published by the Free Software Foundation; either version 2 of
15   - * the License, or (at your option) any later version.
16   - *
17   - * This program is distributed in the hope that it will be useful,
18   - * but WITHOUT ANY WARRANTY; without even the implied warranty of
19   - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20   - * GNU General Public License for more details.
21   - *
22   - * You should have received a copy of the GNU General Public License
23   - * along with this program; if not, write to the Free Software
24   - * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
25   - * MA 02111-1307 USA
26   - */
27   -
28   -#include <config.h>
29   -#include <asm/blackfin.h>
30   -#undef ALIGN
31   -#undef ENTRY
32   -#undef bfin
33   -
34   -/* If we don't actually load anything into L1 data, this will avoid
35   - * a syntax error. If we do actually load something into L1 data,
36   - * we'll get a linker memory load error (which is what we'd want).
37   - * This is here in the first place so we can quickly test building
38   - * for different CPU's which may lack non-cache L1 data.
39   - */
40   -#ifndef L1_DATA_B_SRAM
41   -# define L1_DATA_B_SRAM CONFIG_SYS_MONITOR_BASE
42   -# define L1_DATA_B_SRAM_SIZE 0
43   -#endif
44   -
45   -OUTPUT_ARCH(bfin)
46   -
47   -MEMORY
48   -{
49   - ram : ORIGIN = CONFIG_SYS_MONITOR_BASE, LENGTH = CONFIG_SYS_MONITOR_LEN
50   - l1_code : ORIGIN = L1_INST_SRAM, LENGTH = L1_INST_SRAM_SIZE
51   - l1_data : ORIGIN = L1_DATA_B_SRAM, LENGTH = L1_DATA_B_SRAM_SIZE
52   -}
53   -
54   -ENTRY(_start)
55   -SECTIONS
56   -{
57   - .text :
58   - {
59   - cpu/blackfin/start.o (.text .text.*)
60   -
61   -#ifdef ENV_IS_EMBEDDED
62   - /* WARNING - the following is hand-optimized to fit within
63   - * the sector before the environment sector. If it throws
64   - * an error during compilation remove an object here to get
65   - * it linked after the configuration sector.
66   - */
67   -
68   - cpu/blackfin/traps.o (.text .text.*)
69   - cpu/blackfin/interrupt.o (.text .text.*)
70   - cpu/blackfin/serial.o (.text .text.*)
71   - common/dlmalloc.o (.text .text.*)
72   - lib_generic/crc32.o (.text .text.*)
73   -
74   - . = DEFINED(env_offset) ? env_offset : .;
75   - common/env_embedded.o (.text .text.*)
76   -#endif
77   -
78   - __initcode_start = .;
79   - cpu/blackfin/initcode.o (.text .text.*)
80   - __initcode_end = .;
81   -
82   - *(.text .text.*)
83   - } >ram
84   -
85   - .rodata :
86   - {
87   - . = ALIGN(4);
88   - *(.rodata .rodata.*)
89   - *(.rodata1)
90   - *(.eh_frame)
91   - . = ALIGN(4);
92   - } >ram
93   -
94   - .data :
95   - {
96   - . = ALIGN(256);
97   - *(.data .data.*)
98   - *(.data1)
99   - *(.sdata)
100   - *(.sdata2)
101   - *(.dynamic)
102   - CONSTRUCTORS
103   - } >ram
104   -
105   - .u_boot_cmd :
106   - {
107   - ___u_boot_cmd_start = .;
108   - *(.u_boot_cmd)
109   - ___u_boot_cmd_end = .;
110   - } >ram
111   -
112   - .text_l1 :
113   - {
114   - . = ALIGN(4);
115   - __stext_l1 = .;
116   - *(.l1.text)
117   - . = ALIGN(4);
118   - __etext_l1 = .;
119   - } >l1_code AT>ram
120   - __stext_l1_lma = LOADADDR(.text_l1);
121   -
122   - .data_l1 :
123   - {
124   - . = ALIGN(4);
125   - __sdata_l1 = .;
126   - *(.l1.data)
127   - *(.l1.bss)
128   - . = ALIGN(4);
129   - __edata_l1 = .;
130   - } >l1_data AT>ram
131   - __sdata_l1_lma = LOADADDR(.data_l1);
132   -
133   - .bss :
134   - {
135   - . = ALIGN(4);
136   - __bss_start = .;
137   - *(.sbss) *(.scommon)
138   - *(.dynbss)
139   - *(.bss .bss.*)
140   - *(COMMON)
141   - __bss_end = .;
142   - } >ram
143   -}
board/bf548-ezkit/.gitignore
1   -/u-boot.lds
board/bf548-ezkit/Makefile
... ... @@ -36,11 +36,8 @@
36 36 OBJS := $(addprefix $(obj),$(COBJS-y))
37 37 SOBJS := $(addprefix $(obj),$(SOBJS-y))
38 38  
39   -$(LIB): $(obj).depend $(OBJS) $(SOBJS) $(obj)u-boot.lds
  39 +$(LIB): $(obj).depend $(OBJS) $(SOBJS)
40 40 $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
41   -
42   -$(obj)u-boot.lds: u-boot.lds.S
43   - $(CPP) $(CPPFLAGS) -D__ASSEMBLY__ -P $^ > $@
44 41  
45 42 clean:
46 43 rm -f $(SOBJS) $(OBJS)
board/bf548-ezkit/config.mk
... ... @@ -26,8 +26,6 @@
26 26 # This is not actually used for Blackfin boards so do not change it
27 27 #TEXT_BASE = do-not-use-me
28 28  
29   -LDSCRIPT = $(obj)board/$(BOARDDIR)/u-boot.lds
30   -
31 29 # Set some default LDR flags based on boot mode.
32 30 LDR_FLAGS-BFIN_BOOT_PARA := --dma 6
33 31 LDR_FLAGS-BFIN_BOOT_FIFO := --dma 1
board/bf548-ezkit/u-boot.lds.S
1   -/*
2   - * U-boot - u-boot.lds.S
3   - *
4   - * Copyright (c) 2005-2008 Analog Device Inc.
5   - *
6   - * (C) Copyright 2000-2004
7   - * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
8   - *
9   - * See file CREDITS for list of people who contributed to this
10   - * project.
11   - *
12   - * This program is free software; you can redistribute it and/or
13   - * modify it under the terms of the GNU General Public License as
14   - * published by the Free Software Foundation; either version 2 of
15   - * the License, or (at your option) any later version.
16   - *
17   - * This program is distributed in the hope that it will be useful,
18   - * but WITHOUT ANY WARRANTY; without even the implied warranty of
19   - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20   - * GNU General Public License for more details.
21   - *
22   - * You should have received a copy of the GNU General Public License
23   - * along with this program; if not, write to the Free Software
24   - * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
25   - * MA 02111-1307 USA
26   - */
27   -
28   -#include <config.h>
29   -#include <asm/blackfin.h>
30   -#undef ALIGN
31   -#undef ENTRY
32   -#undef bfin
33   -
34   -/* If we don't actually load anything into L1 data, this will avoid
35   - * a syntax error. If we do actually load something into L1 data,
36   - * we'll get a linker memory load error (which is what we'd want).
37   - * This is here in the first place so we can quickly test building
38   - * for different CPU's which may lack non-cache L1 data.
39   - */
40   -#ifndef L1_DATA_B_SRAM
41   -# define L1_DATA_B_SRAM CONFIG_SYS_MONITOR_BASE
42   -# define L1_DATA_B_SRAM_SIZE 0
43   -#endif
44   -
45   -OUTPUT_ARCH(bfin)
46   -
47   -MEMORY
48   -{
49   - ram : ORIGIN = CONFIG_SYS_MONITOR_BASE, LENGTH = CONFIG_SYS_MONITOR_LEN
50   - l1_code : ORIGIN = L1_INST_SRAM, LENGTH = L1_INST_SRAM_SIZE
51   - l1_data : ORIGIN = L1_DATA_B_SRAM, LENGTH = L1_DATA_B_SRAM_SIZE
52   -}
53   -
54   -ENTRY(_start)
55   -SECTIONS
56   -{
57   - .text :
58   - {
59   - cpu/blackfin/start.o (.text .text.*)
60   - __initcode_start = .;
61   - cpu/blackfin/initcode.o (.text .text.*)
62   - __initcode_end = .;
63   - *(.text .text.*)
64   - } >ram
65   -
66   - .rodata :
67   - {
68   - . = ALIGN(4);
69   - *(.rodata .rodata.*)
70   - *(.rodata1)
71   - *(.eh_frame)
72   - . = ALIGN(4);
73   - } >ram
74   -
75   - .data :
76   - {
77   - . = ALIGN(256);
78   - *(.data .data.*)
79   - *(.data1)
80   - *(.sdata)
81   - *(.sdata2)
82   - *(.dynamic)
83   - CONSTRUCTORS
84   - } >ram
85   -
86   - .u_boot_cmd :
87   - {
88   - ___u_boot_cmd_start = .;
89   - *(.u_boot_cmd)
90   - ___u_boot_cmd_end = .;
91   - } >ram
92   -
93   - .text_l1 :
94   - {
95   - . = ALIGN(4);
96   - __stext_l1 = .;
97   - *(.l1.text)
98   - . = ALIGN(4);
99   - __etext_l1 = .;
100   - } >l1_code AT>ram
101   - __stext_l1_lma = LOADADDR(.text_l1);
102   -
103   - .data_l1 :
104   - {
105   - . = ALIGN(4);
106   - __sdata_l1 = .;
107   - *(.l1.data)
108   - *(.l1.bss)
109   - . = ALIGN(4);
110   - __edata_l1 = .;
111   - } >l1_data AT>ram
112   - __sdata_l1_lma = LOADADDR(.data_l1);
113   -
114   - .bss :
115   - {
116   - . = ALIGN(4);
117   - __bss_start = .;
118   - *(.sbss) *(.scommon)
119   - *(.dynbss)
120   - *(.bss .bss.*)
121   - *(COMMON)
122   - __bss_end = .;
123   - } >ram
124   -}
board/bf561-ezkit/.gitignore
1   -/u-boot.lds
board/bf561-ezkit/Makefile
... ... @@ -35,11 +35,8 @@
35 35 OBJS := $(addprefix $(obj),$(COBJS-y))
36 36 SOBJS := $(addprefix $(obj),$(SOBJS-y))
37 37  
38   -$(LIB): $(obj).depend $(OBJS) $(SOBJS) $(obj)u-boot.lds
  38 +$(LIB): $(obj).depend $(OBJS) $(SOBJS)
39 39 $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
40   -
41   -$(obj)u-boot.lds: u-boot.lds.S
42   - $(CPP) $(CPPFLAGS) -D__ASSEMBLY__ -P $^ > $@
43 40  
44 41 clean:
45 42 rm -f $(SOBJS) $(OBJS)
board/bf561-ezkit/config.mk
... ... @@ -26,8 +26,6 @@
26 26 # This is not actually used for Blackfin boards so do not change it
27 27 #TEXT_BASE = do-not-use-me
28 28  
29   -LDSCRIPT = $(obj)board/$(BOARDDIR)/u-boot.lds
30   -
31 29 # Set some default LDR flags based on boot mode.
32 30 LDR_FLAGS-BFIN_BOOT_PARA := --bits 16
33 31 LDR_FLAGS += $(LDR_FLAGS-$(CONFIG_BFIN_BOOT_MODE))
board/bf561-ezkit/u-boot.lds.S
1   -/*
2   - * U-boot - u-boot.lds.S
3   - *
4   - * Copyright (c) 2005-2008 Analog Device Inc.
5   - *
6   - * (C) Copyright 2000-2004
7   - * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
8   - *
9   - * See file CREDITS for list of people who contributed to this
10   - * project.
11   - *
12   - * This program is free software; you can redistribute it and/or
13   - * modify it under the terms of the GNU General Public License as
14   - * published by the Free Software Foundation; either version 2 of
15   - * the License, or (at your option) any later version.
16   - *
17   - * This program is distributed in the hope that it will be useful,
18   - * but WITHOUT ANY WARRANTY; without even the implied warranty of
19   - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20   - * GNU General Public License for more details.
21   - *
22   - * You should have received a copy of the GNU General Public License
23   - * along with this program; if not, write to the Free Software
24   - * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
25   - * MA 02111-1307 USA
26   - */
27   -
28   -#include <config.h>
29   -#include <asm/blackfin.h>
30   -#undef ALIGN
31   -#undef ENTRY
32   -#undef bfin
33   -
34   -/* If we don't actually load anything into L1 data, this will avoid
35   - * a syntax error. If we do actually load something into L1 data,
36   - * we'll get a linker memory load error (which is what we'd want).
37   - * This is here in the first place so we can quickly test building
38   - * for different CPU's which may lack non-cache L1 data.
39   - */
40   -#ifndef L1_DATA_B_SRAM
41   -# define L1_DATA_B_SRAM CONFIG_SYS_MONITOR_BASE
42   -# define L1_DATA_B_SRAM_SIZE 0
43   -#endif
44   -
45   -/* The 0xC offset is so we don't clobber the tiny LDR jump block. */
46   -#ifdef CONFIG_BFIN_BOOTROM_USES_EVT1
47   -# define L1_CODE_ORIGIN L1_INST_SRAM
48   -#else
49   -# define L1_CODE_ORIGIN L1_INST_SRAM + 0xC
50   -#endif
51   -
52   -OUTPUT_ARCH(bfin)
53   -
54   -MEMORY
55   -{
56   - ram : ORIGIN = CONFIG_SYS_MONITOR_BASE, LENGTH = CONFIG_SYS_MONITOR_LEN
57   - l1_code : ORIGIN = L1_CODE_ORIGIN, LENGTH = L1_INST_SRAM_SIZE
58   - l1_data : ORIGIN = L1_DATA_B_SRAM, LENGTH = L1_DATA_B_SRAM_SIZE
59   -}
60   -
61   -ENTRY(_start)
62   -SECTIONS
63   -{
64   - .text :
65   - {
66   - cpu/blackfin/start.o (.text .text.*)
67   -
68   -#ifdef ENV_IS_EMBEDDED
69   - /* WARNING - the following is hand-optimized to fit within
70   - * the sector before the environment sector. If it throws
71   - * an error during compilation remove an object here to get
72   - * it linked after the configuration sector.
73   - */
74   -
75   - cpu/blackfin/traps.o (.text .text.*)
76   - cpu/blackfin/interrupt.o (.text .text.*)
77   - cpu/blackfin/serial.o (.text .text.*)
78   - common/dlmalloc.o (.text .text.*)
79   - lib_generic/crc32.o (.text .text.*)
80   - lib_generic/zlib.o (.text .text.*)
81   - board/bf561-ezkit/bf561-ezkit.o (.text .text.*)
82   -
83   - . = DEFINED(env_offset) ? env_offset : .;
84   - common/env_embedded.o (.text .text.*)
85   -#endif
86   -
87   - __initcode_start = .;
88   - cpu/blackfin/initcode.o (.text .text.*)
89   - __initcode_end = .;
90   -
91   - *(.text .text.*)
92   - } >ram
93   -
94   - .rodata :
95   - {
96   - . = ALIGN(4);
97   - *(.rodata .rodata.*)
98   - *(.rodata1)
99   - *(.eh_frame)
100   - . = ALIGN(4);
101   - } >ram
102   -
103   - .data :
104   - {
105   - . = ALIGN(256);
106   - *(.data .data.*)
107   - *(.data1)
108   - *(.sdata)
109   - *(.sdata2)
110   - *(.dynamic)
111   - CONSTRUCTORS
112   - } >ram
113   -
114   - .u_boot_cmd :
115   - {
116   - ___u_boot_cmd_start = .;
117   - *(.u_boot_cmd)
118   - ___u_boot_cmd_end = .;
119   - } >ram
120   -
121   - .text_l1 :
122   - {
123   - . = ALIGN(4);
124   - __stext_l1 = .;
125   - *(.l1.text)
126   - . = ALIGN(4);
127   - __etext_l1 = .;
128   - } >l1_code AT>ram
129   - __stext_l1_lma = LOADADDR(.text_l1);
130   -
131   - .data_l1 :
132   - {
133   - . = ALIGN(4);
134   - __sdata_l1 = .;
135   - *(.l1.data)
136   - *(.l1.bss)
137   - . = ALIGN(4);
138   - __edata_l1 = .;
139   - } >l1_data AT>ram
140   - __sdata_l1_lma = LOADADDR(.data_l1);
141   -
142   - .bss :
143   - {
144   - . = ALIGN(4);
145   - __bss_start = .;
146   - *(.sbss) *(.scommon)
147   - *(.dynbss)
148   - *(.bss .bss.*)
149   - *(COMMON)
150   - __bss_end = .;
151   - } >ram
152   -}
board/blackstamp/.gitignore
1   -/u-boot.lds
board/blackstamp/Makefile
... ... @@ -35,11 +35,8 @@
35 35 OBJS := $(addprefix $(obj),$(COBJS-y))
36 36 SOBJS := $(addprefix $(obj),$(SOBJS-y))
37 37  
38   -$(LIB): $(obj).depend $(OBJS) $(SOBJS) $(obj)u-boot.lds
  38 +$(LIB): $(obj).depend $(OBJS) $(SOBJS)
39 39 $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
40   -
41   -$(obj)u-boot.lds: u-boot.lds.S
42   - $(CPP) $(CPPFLAGS) -D__ASSEMBLY__ -P $^ > $@
43 40  
44 41 clean:
45 42 rm -f $(SOBJS) $(OBJS)
board/blackstamp/config.mk
... ... @@ -26,8 +26,6 @@
26 26 # This is not actually used for Blackfin boards so do not change it
27 27 #TEXT_BASE = do-not-use-me
28 28  
29   -LDSCRIPT = $(obj)board/$(BOARDDIR)/u-boot.lds
30   -
31 29 # Set some default LDR flags based on boot mode.
32 30 LDR_FLAGS += $(LDR_FLAGS-$(CONFIG_BFIN_BOOT_MODE))
board/blackstamp/u-boot.lds.S
1   -/*
2   - * U-boot - u-boot.lds.S
3   - *
4   - * Copyright (c) 2005-2008 Analog Device Inc.
5   - *
6   - * (C) Copyright 2000-2004
7   - * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
8   - *
9   - * See file CREDITS for list of people who contributed to this
10   - * project.
11   - *
12   - * This program is free software; you can redistribute it and/or
13   - * modify it under the terms of the GNU General Public License as
14   - * published by the Free Software Foundation; either version 2 of
15   - * the License, or (at your option) any later version.
16   - *
17   - * This program is distributed in the hope that it will be useful,
18   - * but WITHOUT ANY WARRANTY; without even the implied warranty of
19   - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20   - * GNU General Public License for more details.
21   - *
22   - * You should have received a copy of the GNU General Public License
23   - * along with this program; if not, write to the Free Software
24   - * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
25   - * MA 02111-1307 USA
26   - */
27   -
28   -#include <config.h>
29   -#include <asm/blackfin.h>
30   -#undef ALIGN
31   -#undef ENTRY
32   -#undef bfin
33   -
34   -/* If we don't actually load anything into L1 data, this will avoid
35   - * a syntax error. If we do actually load something into L1 data,
36   - * we'll get a linker memory load error (which is what we'd want).
37   - * This is here in the first place so we can quickly test building
38   - * for different CPU's which may lack non-cache L1 data.
39   - */
40   -#ifndef L1_DATA_B_SRAM
41   -# define L1_DATA_B_SRAM CONFIG_SYS_MONITOR_BASE
42   -# define L1_DATA_B_SRAM_SIZE 0
43   -#endif
44   -
45   -OUTPUT_ARCH(bfin)
46   -
47   -MEMORY
48   -{
49   - ram : ORIGIN = CONFIG_SYS_MONITOR_BASE, LENGTH = CONFIG_SYS_MONITOR_LEN
50   - l1_code : ORIGIN = L1_INST_SRAM, LENGTH = L1_INST_SRAM_SIZE
51   - l1_data : ORIGIN = L1_DATA_B_SRAM, LENGTH = L1_DATA_B_SRAM_SIZE
52   -}
53   -
54   -ENTRY(_start)
55   -SECTIONS
56   -{
57   - .text :
58   - {
59   - cpu/blackfin/start.o (.text .text.*)
60   -
61   -#ifdef ENV_IS_EMBEDDED
62   - /* WARNING - the following is hand-optimized to fit within
63   - * the sector before the environment sector. If it throws
64   - * an error during compilation remove an object here to get
65   - * it linked after the configuration sector.
66   - */
67   -
68   - cpu/blackfin/traps.o (.text .text.*)
69   - cpu/blackfin/interrupt.o (.text .text.*)
70   - cpu/blackfin/serial.o (.text .text.*)
71   - common/dlmalloc.o (.text .text.*)
72   - lib_generic/crc32.o (.text .text.*)
73   -
74   - . = DEFINED(env_offset) ? env_offset : .;
75   - common/env_embedded.o (.text .text.*)
76   -#endif
77   -
78   - __initcode_start = .;
79   - cpu/blackfin/initcode.o (.text .text.*)
80   - __initcode_end = .;
81   -
82   - *(.text .text.*)
83   - } >ram
84   -
85   - .rodata :
86   - {
87   - . = ALIGN(4);
88   - *(.rodata .rodata.*)
89   - *(.rodata1)
90   - *(.eh_frame)
91   - . = ALIGN(4);
92   - } >ram
93   -
94   - .data :
95   - {
96   - . = ALIGN(256);
97   - *(.data .data.*)
98   - *(.data1)
99   - *(.sdata)
100   - *(.sdata2)
101   - *(.dynamic)
102   - CONSTRUCTORS
103   - } >ram
104   -
105   - .u_boot_cmd :
106   - {
107   - ___u_boot_cmd_start = .;
108   - *(.u_boot_cmd)
109   - ___u_boot_cmd_end = .;
110   - } >ram
111   -
112   - .text_l1 :
113   - {
114   - . = ALIGN(4);
115   - __stext_l1 = .;
116   - *(.l1.text)
117   - . = ALIGN(4);
118   - __etext_l1 = .;
119   - } >l1_code AT>ram
120   - __stext_l1_lma = LOADADDR(.text_l1);
121   -
122   - .data_l1 :
123   - {
124   - . = ALIGN(4);
125   - __sdata_l1 = .;
126   - *(.l1.data)
127   - *(.l1.bss)
128   - . = ALIGN(4);
129   - __edata_l1 = .;
130   - } >l1_data AT>ram
131   - __sdata_l1_lma = LOADADDR(.data_l1);
132   -
133   - .bss :
134   - {
135   - . = ALIGN(4);
136   - __bss_start = .;
137   - *(.sbss) *(.scommon)
138   - *(.dynbss)
139   - *(.bss .bss.*)
140   - *(COMMON)
141   - __bss_end = .;
142   - } >ram
143   -}
board/cm-bf527/.gitignore
1   -/u-boot.lds
board/cm-bf527/Makefile
... ... @@ -35,11 +35,8 @@
35 35 OBJS := $(addprefix $(obj),$(COBJS-y))
36 36 SOBJS := $(addprefix $(obj),$(SOBJS-y))
37 37  
38   -$(LIB): $(obj).depend $(OBJS) $(SOBJS) $(obj)u-boot.lds
  38 +$(LIB): $(obj).depend $(OBJS) $(SOBJS)
39 39 $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
40   -
41   -$(obj)u-boot.lds: u-boot.lds.S
42   - $(CPP) $(CPPFLAGS) -D__ASSEMBLY__ -P $^ > $@
43 40  
44 41 clean:
45 42 rm -f $(SOBJS) $(OBJS)
board/cm-bf527/config.mk
... ... @@ -26,8 +26,6 @@
26 26 # This is not actually used for Blackfin boards so do not change it
27 27 #TEXT_BASE = do-not-use-me
28 28  
29   -LDSCRIPT = $(obj)board/$(BOARDDIR)/u-boot.lds
30   -
31 29 # Set some default LDR flags based on boot mode.
32 30 LDR_FLAGS += $(LDR_FLAGS-$(CONFIG_BFIN_BOOT_MODE))
board/cm-bf527/u-boot.lds.S
1   -/*
2   - * U-boot - u-boot.lds.S
3   - *
4   - * Copyright (c) 2005-2008 Analog Device Inc.
5   - *
6   - * (C) Copyright 2000-2004
7   - * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
8   - *
9   - * See file CREDITS for list of people who contributed to this
10   - * project.
11   - *
12   - * This program is free software; you can redistribute it and/or
13   - * modify it under the terms of the GNU General Public License as
14   - * published by the Free Software Foundation; either version 2 of
15   - * the License, or (at your option) any later version.
16   - *
17   - * This program is distributed in the hope that it will be useful,
18   - * but WITHOUT ANY WARRANTY; without even the implied warranty of
19   - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20   - * GNU General Public License for more details.
21   - *
22   - * You should have received a copy of the GNU General Public License
23   - * along with this program; if not, write to the Free Software
24   - * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
25   - * MA 02111-1307 USA
26   - */
27   -
28   -#include <config.h>
29   -#include <asm/blackfin.h>
30   -#undef ALIGN
31   -#undef ENTRY
32   -#undef bfin
33   -
34   -/* If we don't actually load anything into L1 data, this will avoid
35   - * a syntax error. If we do actually load something into L1 data,
36   - * we'll get a linker memory load error (which is what we'd want).
37   - * This is here in the first place so we can quickly test building
38   - * for different CPU's which may lack non-cache L1 data.
39   - */
40   -#ifndef L1_DATA_B_SRAM
41   -# define L1_DATA_B_SRAM CONFIG_SYS_MONITOR_BASE
42   -# define L1_DATA_B_SRAM_SIZE 0
43   -#endif
44   -
45   -OUTPUT_ARCH(bfin)
46   -
47   -MEMORY
48   -{
49   - ram : ORIGIN = CONFIG_SYS_MONITOR_BASE, LENGTH = CONFIG_SYS_MONITOR_LEN
50   - l1_code : ORIGIN = L1_INST_SRAM, LENGTH = L1_INST_SRAM_SIZE
51   - l1_data : ORIGIN = L1_DATA_B_SRAM, LENGTH = L1_DATA_B_SRAM_SIZE
52   -}
53   -
54   -ENTRY(_start)
55   -SECTIONS
56   -{
57   - .text :
58   - {
59   - cpu/blackfin/start.o (.text .text.*)
60   - __initcode_start = .;
61   - cpu/blackfin/initcode.o (.text .text.*)
62   - __initcode_end = .;
63   - *(.text .text.*)
64   - } >ram
65   -
66   - .rodata :
67   - {
68   - . = ALIGN(4);
69   - *(.rodata .rodata.*)
70   - *(.rodata1)
71   - *(.eh_frame)
72   - . = ALIGN(4);
73   - } >ram
74   -
75   - .data :
76   - {
77   - . = ALIGN(256);
78   - *(.data .data.*)
79   - *(.data1)
80   - *(.sdata)
81   - *(.sdata2)
82   - *(.dynamic)
83   - CONSTRUCTORS
84   - } >ram
85   -
86   - .u_boot_cmd :
87   - {
88   - ___u_boot_cmd_start = .;
89   - *(.u_boot_cmd)
90   - ___u_boot_cmd_end = .;
91   - } >ram
92   -
93   - .text_l1 :
94   - {
95   - . = ALIGN(4);
96   - __stext_l1 = .;
97   - *(.l1.text)
98   - . = ALIGN(4);
99   - __etext_l1 = .;
100   - } >l1_code AT>ram
101   - __stext_l1_lma = LOADADDR(.text_l1);
102   -
103   - .data_l1 :
104   - {
105   - . = ALIGN(4);
106   - __sdata_l1 = .;
107   - *(.l1.data)
108   - *(.l1.bss)
109   - . = ALIGN(4);
110   - __edata_l1 = .;
111   - } >l1_data AT>ram
112   - __sdata_l1_lma = LOADADDR(.data_l1);
113   -
114   - .bss :
115   - {
116   - . = ALIGN(4);
117   - __bss_start = .;
118   - *(.sbss) *(.scommon)
119   - *(.dynbss)
120   - *(.bss .bss.*)
121   - *(COMMON)
122   - __bss_end = .;
123   - } >ram
124   -}
board/cm-bf533/.gitignore
1   -/u-boot.lds
board/cm-bf533/Makefile
... ... @@ -35,11 +35,8 @@
35 35 OBJS := $(addprefix $(obj),$(COBJS-y))
36 36 SOBJS := $(addprefix $(obj),$(SOBJS-y))
37 37  
38   -$(LIB): $(obj).depend $(OBJS) $(SOBJS) $(obj)u-boot.lds
  38 +$(LIB): $(obj).depend $(OBJS) $(SOBJS)
39 39 $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
40   -
41   -$(obj)u-boot.lds: u-boot.lds.S
42   - $(CPP) $(CPPFLAGS) -D__ASSEMBLY__ -P $^ > $@
43 40  
44 41 clean:
45 42 rm -f $(SOBJS) $(OBJS)
board/cm-bf533/config.mk
... ... @@ -26,8 +26,6 @@
26 26 # This is not actually used for Blackfin boards so do not change it
27 27 #TEXT_BASE = do-not-use-me
28 28  
29   -LDSCRIPT = $(obj)board/$(BOARDDIR)/u-boot.lds
30   -
31 29 # Set some default LDR flags based on boot mode.
32 30 LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 8
33 31 LDR_FLAGS += $(LDR_FLAGS-$(CONFIG_BFIN_BOOT_MODE))
board/cm-bf533/u-boot.lds.S
1   -/*
2   - * U-boot - u-boot.lds.S
3   - *
4   - * Copyright (c) 2005-2008 Analog Device Inc.
5   - *
6   - * (C) Copyright 2000-2004
7   - * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
8   - *
9   - * See file CREDITS for list of people who contributed to this
10   - * project.
11   - *
12   - * This program is free software; you can redistribute it and/or
13   - * modify it under the terms of the GNU General Public License as
14   - * published by the Free Software Foundation; either version 2 of
15   - * the License, or (at your option) any later version.
16   - *
17   - * This program is distributed in the hope that it will be useful,
18   - * but WITHOUT ANY WARRANTY; without even the implied warranty of
19   - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20   - * GNU General Public License for more details.
21   - *
22   - * You should have received a copy of the GNU General Public License
23   - * along with this program; if not, write to the Free Software
24   - * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
25   - * MA 02111-1307 USA
26   - */
27   -
28   -#include <config.h>
29   -#include <asm/blackfin.h>
30   -#undef ALIGN
31   -#undef ENTRY
32   -#undef bfin
33   -
34   -/* If we don't actually load anything into L1 data, this will avoid
35   - * a syntax error. If we do actually load something into L1 data,
36   - * we'll get a linker memory load error (which is what we'd want).
37   - * This is here in the first place so we can quickly test building
38   - * for different CPU's which may lack non-cache L1 data.
39   - */
40   -#ifndef L1_DATA_B_SRAM
41   -# define L1_DATA_B_SRAM CONFIG_SYS_MONITOR_BASE
42   -# define L1_DATA_B_SRAM_SIZE 0
43   -#endif
44   -
45   -OUTPUT_ARCH(bfin)
46   -
47   -MEMORY
48   -{
49   - ram : ORIGIN = CONFIG_SYS_MONITOR_BASE, LENGTH = CONFIG_SYS_MONITOR_LEN
50   - l1_code : ORIGIN = L1_INST_SRAM, LENGTH = L1_INST_SRAM_SIZE
51   - l1_data : ORIGIN = L1_DATA_B_SRAM, LENGTH = L1_DATA_B_SRAM_SIZE
52   -}
53   -
54   -ENTRY(_start)
55   -SECTIONS
56   -{
57   - .text :
58   - {
59   - cpu/blackfin/start.o (.text .text.*)
60   -
61   -#ifdef ENV_IS_EMBEDDED
62   - /* WARNING - the following is hand-optimized to fit within
63   - * the sector before the environment sector. If it throws
64   - * an error during compilation remove an object here to get
65   - * it linked after the configuration sector.
66   - */
67   -
68   - cpu/blackfin/traps.o (.text .text.*)
69   - cpu/blackfin/interrupt.o (.text .text.*)
70   - cpu/blackfin/serial.o (.text .text.*)
71   - common/dlmalloc.o (.text .text.*)
72   - lib_generic/crc32.o (.text .text.*)
73   -
74   - . = DEFINED(env_offset) ? env_offset : .;
75   - common/env_embedded.o (.text .text.*)
76   -#endif
77   -
78   - __initcode_start = .;
79   - cpu/blackfin/initcode.o (.text .text.*)
80   - __initcode_end = .;
81   -
82   - *(.text .text.*)
83   - } >ram
84   -
85   - .rodata :
86   - {
87   - . = ALIGN(4);
88   - *(.rodata .rodata.*)
89   - *(.rodata1)
90   - *(.eh_frame)
91   - . = ALIGN(4);
92   - } >ram
93   -
94   - .data :
95   - {
96   - . = ALIGN(256);
97   - *(.data .data.*)
98   - *(.data1)
99   - *(.sdata)
100   - *(.sdata2)
101   - *(.dynamic)
102   - CONSTRUCTORS
103   - } >ram
104   -
105   - .u_boot_cmd :
106   - {
107   - ___u_boot_cmd_start = .;
108   - *(.u_boot_cmd)
109   - ___u_boot_cmd_end = .;
110   - } >ram
111   -
112   - .text_l1 :
113   - {
114   - . = ALIGN(4);
115   - __stext_l1 = .;
116   - *(.l1.text)
117   - . = ALIGN(4);
118   - __etext_l1 = .;
119   - } >l1_code AT>ram
120   - __stext_l1_lma = LOADADDR(.text_l1);
121   -
122   - .data_l1 :
123   - {
124   - . = ALIGN(4);
125   - __sdata_l1 = .;
126   - *(.l1.data)
127   - *(.l1.bss)
128   - . = ALIGN(4);
129   - __edata_l1 = .;
130   - } >l1_data AT>ram
131   - __sdata_l1_lma = LOADADDR(.data_l1);
132   -
133   - .bss :
134   - {
135   - . = ALIGN(4);
136   - __bss_start = .;
137   - *(.sbss) *(.scommon)
138   - *(.dynbss)
139   - *(.bss .bss.*)
140   - *(COMMON)
141   - __bss_end = .;
142   - } >ram
143   -}
board/cm-bf537e/.gitignore
1   -/u-boot.lds
board/cm-bf537e/Makefile
... ... @@ -35,11 +35,8 @@
35 35 OBJS := $(addprefix $(obj),$(COBJS-y))
36 36 SOBJS := $(addprefix $(obj),$(SOBJS-y))
37 37  
38   -$(LIB): $(obj).depend $(OBJS) $(SOBJS) $(obj)u-boot.lds
  38 +$(LIB): $(obj).depend $(OBJS) $(SOBJS)
39 39 $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
40   -
41   -$(obj)u-boot.lds: u-boot.lds.S
42   - $(CPP) $(CPPFLAGS) -D__ASSEMBLY__ -P $^ > $@
43 40  
44 41 clean:
45 42 rm -f $(SOBJS) $(OBJS)
board/cm-bf537e/config.mk
... ... @@ -26,8 +26,6 @@
26 26 # This is not actually used for Blackfin boards so do not change it
27 27 #TEXT_BASE = do-not-use-me
28 28  
29   -LDSCRIPT = $(obj)board/$(BOARDDIR)/u-boot.lds
30   -
31 29 # Set some default LDR flags based on boot mode.
32 30 LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 8
33 31 LDR_FLAGS += $(LDR_FLAGS-$(CONFIG_BFIN_BOOT_MODE))
board/cm-bf537e/u-boot.lds.S
1   -/*
2   - * U-boot - u-boot.lds.S
3   - *
4   - * Copyright (c) 2005-2008 Analog Device Inc.
5   - *
6   - * (C) Copyright 2000-2004
7   - * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
8   - *
9   - * See file CREDITS for list of people who contributed to this
10   - * project.
11   - *
12   - * This program is free software; you can redistribute it and/or
13   - * modify it under the terms of the GNU General Public License as
14   - * published by the Free Software Foundation; either version 2 of
15   - * the License, or (at your option) any later version.
16   - *
17   - * This program is distributed in the hope that it will be useful,
18   - * but WITHOUT ANY WARRANTY; without even the implied warranty of
19   - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20   - * GNU General Public License for more details.
21   - *
22   - * You should have received a copy of the GNU General Public License
23   - * along with this program; if not, write to the Free Software
24   - * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
25   - * MA 02111-1307 USA
26   - */
27   -
28   -#include <config.h>
29   -#include <asm/blackfin.h>
30   -#undef ALIGN
31   -#undef ENTRY
32   -#undef bfin
33   -
34   -/* If we don't actually load anything into L1 data, this will avoid
35   - * a syntax error. If we do actually load something into L1 data,
36   - * we'll get a linker memory load error (which is what we'd want).
37   - * This is here in the first place so we can quickly test building
38   - * for different CPU's which may lack non-cache L1 data.
39   - */
40   -#ifndef L1_DATA_B_SRAM
41   -# define L1_DATA_B_SRAM CONFIG_SYS_MONITOR_BASE
42   -# define L1_DATA_B_SRAM_SIZE 0
43   -#endif
44   -
45   -OUTPUT_ARCH(bfin)
46   -
47   -MEMORY
48   -{
49   - ram : ORIGIN = CONFIG_SYS_MONITOR_BASE, LENGTH = CONFIG_SYS_MONITOR_LEN
50   - l1_code : ORIGIN = L1_INST_SRAM, LENGTH = L1_INST_SRAM_SIZE
51   - l1_data : ORIGIN = L1_DATA_B_SRAM, LENGTH = L1_DATA_B_SRAM_SIZE
52   -}
53   -
54   -ENTRY(_start)
55   -SECTIONS
56   -{
57   - .text :
58   - {
59   - cpu/blackfin/start.o (.text .text.*)
60   -
61   -#ifdef ENV_IS_EMBEDDED
62   - /* WARNING - the following is hand-optimized to fit within
63   - * the sector before the environment sector. If it throws
64   - * an error during compilation remove an object here to get
65   - * it linked after the configuration sector.
66   - */
67   -
68   - cpu/blackfin/traps.o (.text .text.*)
69   - cpu/blackfin/interrupt.o (.text .text.*)
70   - cpu/blackfin/serial.o (.text .text.*)
71   - common/dlmalloc.o (.text .text.*)
72   - lib_generic/crc32.o (.text .text.*)
73   -
74   - . = DEFINED(env_offset) ? env_offset : .;
75   - common/env_embedded.o (.text .text.*)
76   -#endif
77   -
78   - __initcode_start = .;
79   - cpu/blackfin/initcode.o (.text .text.*)
80   - __initcode_end = .;
81   -
82   - *(.text .text.*)
83   - } >ram
84   -
85   - .rodata :
86   - {
87   - . = ALIGN(4);
88   - *(.rodata .rodata.*)
89   - *(.rodata1)
90   - *(.eh_frame)
91   - . = ALIGN(4);
92   - } >ram
93   -
94   - .data :
95   - {
96   - . = ALIGN(256);
97   - *(.data .data.*)
98   - *(.data1)
99   - *(.sdata)
100   - *(.sdata2)
101   - *(.dynamic)
102   - CONSTRUCTORS
103   - } >ram
104   -
105   - .u_boot_cmd :
106   - {
107   - ___u_boot_cmd_start = .;
108   - *(.u_boot_cmd)
109   - ___u_boot_cmd_end = .;
110   - } >ram
111   -
112   - .text_l1 :
113   - {
114   - . = ALIGN(4);
115   - __stext_l1 = .;
116   - *(.l1.text)
117   - . = ALIGN(4);
118   - __etext_l1 = .;
119   - } >l1_code AT>ram
120   - __stext_l1_lma = LOADADDR(.text_l1);
121   -
122   - .data_l1 :
123   - {
124   - . = ALIGN(4);
125   - __sdata_l1 = .;
126   - *(.l1.data)
127   - *(.l1.bss)
128   - . = ALIGN(4);
129   - __edata_l1 = .;
130   - } >l1_data AT>ram
131   - __sdata_l1_lma = LOADADDR(.data_l1);
132   -
133   - .bss :
134   - {
135   - . = ALIGN(4);
136   - __bss_start = .;
137   - *(.sbss) *(.scommon)
138   - *(.dynbss)
139   - *(.bss .bss.*)
140   - *(COMMON)
141   - __bss_end = .;
142   - } >ram
143   -}
board/cm-bf548/.gitignore
1   -/u-boot.lds
board/cm-bf548/Makefile
... ... @@ -36,11 +36,8 @@
36 36 OBJS := $(addprefix $(obj),$(COBJS-y))
37 37 SOBJS := $(addprefix $(obj),$(SOBJS-y))
38 38  
39   -$(LIB): $(obj).depend $(OBJS) $(SOBJS) $(obj)u-boot.lds
  39 +$(LIB): $(obj).depend $(OBJS) $(SOBJS)
40 40 $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
41   -
42   -$(obj)u-boot.lds: u-boot.lds.S
43   - $(CPP) $(CPPFLAGS) -D__ASSEMBLY__ -P $^ > $@
44 41  
45 42 clean:
46 43 rm -f $(SOBJS) $(OBJS)
board/cm-bf548/config.mk
... ... @@ -26,8 +26,6 @@
26 26 # This is not actually used for Blackfin boards so do not change it
27 27 #TEXT_BASE = do-not-use-me
28 28  
29   -LDSCRIPT = $(obj)board/$(BOARDDIR)/u-boot.lds
30   -
31 29 # Set some default LDR flags based on boot mode.
32 30 LDR_FLAGS-BFIN_BOOT_PARA := --dma 6
33 31 LDR_FLAGS-BFIN_BOOT_FIFO := --dma 1
board/cm-bf548/u-boot.lds.S
1   -/*
2   - * U-boot - u-boot.lds.S
3   - *
4   - * Copyright (c) 2005-2008 Analog Device Inc.
5   - *
6   - * (C) Copyright 2000-2004
7   - * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
8   - *
9   - * See file CREDITS for list of people who contributed to this
10   - * project.
11   - *
12   - * This program is free software; you can redistribute it and/or
13   - * modify it under the terms of the GNU General Public License as
14   - * published by the Free Software Foundation; either version 2 of
15   - * the License, or (at your option) any later version.
16   - *
17   - * This program is distributed in the hope that it will be useful,
18   - * but WITHOUT ANY WARRANTY; without even the implied warranty of
19   - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20   - * GNU General Public License for more details.
21   - *
22   - * You should have received a copy of the GNU General Public License
23   - * along with this program; if not, write to the Free Software
24   - * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
25   - * MA 02111-1307 USA
26   - */
27   -
28   -#include <config.h>
29   -#include <asm/blackfin.h>
30   -#undef ALIGN
31   -#undef ENTRY
32   -#undef bfin
33   -
34   -/* If we don't actually load anything into L1 data, this will avoid
35   - * a syntax error. If we do actually load something into L1 data,
36   - * we'll get a linker memory load error (which is what we'd want).
37   - * This is here in the first place so we can quickly test building
38   - * for different CPU's which may lack non-cache L1 data.
39   - */
40   -#ifndef L1_DATA_B_SRAM
41   -# define L1_DATA_B_SRAM CONFIG_SYS_MONITOR_BASE
42   -# define L1_DATA_B_SRAM_SIZE 0
43   -#endif
44   -
45   -OUTPUT_ARCH(bfin)
46   -
47   -MEMORY
48   -{
49   - ram : ORIGIN = CONFIG_SYS_MONITOR_BASE, LENGTH = CONFIG_SYS_MONITOR_LEN
50   - l1_code : ORIGIN = L1_INST_SRAM, LENGTH = L1_INST_SRAM_SIZE
51   - l1_data : ORIGIN = L1_DATA_B_SRAM, LENGTH = L1_DATA_B_SRAM_SIZE
52   -}
53   -
54   -ENTRY(_start)
55   -SECTIONS
56   -{
57   - .text :
58   - {
59   - cpu/blackfin/start.o (.text .text.*)
60   - __initcode_start = .;
61   - cpu/blackfin/initcode.o (.text .text.*)
62   - __initcode_end = .;
63   - *(.text .text.*)
64   - } >ram
65   -
66   - .rodata :
67   - {
68   - . = ALIGN(4);
69   - *(.rodata .rodata.*)
70   - *(.rodata1)
71   - *(.eh_frame)
72   - . = ALIGN(4);
73   - } >ram
74   -
75   - .data :
76   - {
77   - . = ALIGN(256);
78   - *(.data .data.*)
79   - *(.data1)
80   - *(.sdata)
81   - *(.sdata2)
82   - *(.dynamic)
83   - CONSTRUCTORS
84   - } >ram
85   -
86   - .u_boot_cmd :
87   - {
88   - ___u_boot_cmd_start = .;
89   - *(.u_boot_cmd)
90   - ___u_boot_cmd_end = .;
91   - } >ram
92   -
93   - .text_l1 :
94   - {
95   - . = ALIGN(4);
96   - __stext_l1 = .;
97   - *(.l1.text)
98   - . = ALIGN(4);
99   - __etext_l1 = .;
100   - } >l1_code AT>ram
101   - __stext_l1_lma = LOADADDR(.text_l1);
102   -
103   - .data_l1 :
104   - {
105   - . = ALIGN(4);
106   - __sdata_l1 = .;
107   - *(.l1.data)
108   - *(.l1.bss)
109   - . = ALIGN(4);
110   - __edata_l1 = .;
111   - } >l1_data AT>ram
112   - __sdata_l1_lma = LOADADDR(.data_l1);
113   -
114   - .bss :
115   - {
116   - . = ALIGN(4);
117   - __bss_start = .;
118   - *(.sbss) *(.scommon)
119   - *(.dynbss)
120   - *(.bss .bss.*)
121   - *(COMMON)
122   - __bss_end = .;
123   - } >ram
124   -}
board/cm-bf561/.gitignore
1   -/u-boot.lds
board/cm-bf561/Makefile
... ... @@ -35,11 +35,8 @@
35 35 OBJS := $(addprefix $(obj),$(COBJS-y))
36 36 SOBJS := $(addprefix $(obj),$(SOBJS-y))
37 37  
38   -$(LIB): $(obj).depend $(OBJS) $(SOBJS) $(obj)u-boot.lds
  38 +$(LIB): $(obj).depend $(OBJS) $(SOBJS)
39 39 $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
40   -
41   -$(obj)u-boot.lds: u-boot.lds.S
42   - $(CPP) $(CPPFLAGS) -D__ASSEMBLY__ -P $^ > $@
43 40  
44 41 clean:
45 42 rm -f $(SOBJS) $(OBJS)
board/cm-bf561/config.mk
... ... @@ -26,8 +26,6 @@
26 26 # This is not actually used for Blackfin boards so do not change it
27 27 #TEXT_BASE = do-not-use-me
28 28  
29   -LDSCRIPT = $(obj)board/$(BOARDDIR)/u-boot.lds
30   -
31 29 # Set some default LDR flags based on boot mode.
32 30 LDR_FLAGS-BFIN_BOOT_PARA := --bits 16
33 31 LDR_FLAGS += $(LDR_FLAGS-$(CONFIG_BFIN_BOOT_MODE))
board/cm-bf561/u-boot.lds.S
1   -/*
2   - * U-boot - u-boot.lds.S
3   - *
4   - * Copyright (c) 2005-2008 Analog Device Inc.
5   - *
6   - * (C) Copyright 2000-2004
7   - * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
8   - *
9   - * See file CREDITS for list of people who contributed to this
10   - * project.
11   - *
12   - * This program is free software; you can redistribute it and/or
13   - * modify it under the terms of the GNU General Public License as
14   - * published by the Free Software Foundation; either version 2 of
15   - * the License, or (at your option) any later version.
16   - *
17   - * This program is distributed in the hope that it will be useful,
18   - * but WITHOUT ANY WARRANTY; without even the implied warranty of
19   - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20   - * GNU General Public License for more details.
21   - *
22   - * You should have received a copy of the GNU General Public License
23   - * along with this program; if not, write to the Free Software
24   - * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
25   - * MA 02111-1307 USA
26   - */
27   -
28   -#include <config.h>
29   -#include <asm/blackfin.h>
30   -#undef ALIGN
31   -#undef ENTRY
32   -#undef bfin
33   -
34   -/* If we don't actually load anything into L1 data, this will avoid
35   - * a syntax error. If we do actually load something into L1 data,
36   - * we'll get a linker memory load error (which is what we'd want).
37   - * This is here in the first place so we can quickly test building
38   - * for different CPU's which may lack non-cache L1 data.
39   - */
40   -#ifndef L1_DATA_B_SRAM
41   -# define L1_DATA_B_SRAM CONFIG_SYS_MONITOR_BASE
42   -# define L1_DATA_B_SRAM_SIZE 0
43   -#endif
44   -
45   -/* The 0xC offset is so we don't clobber the tiny LDR jump block. */
46   -#ifdef CONFIG_BFIN_BOOTROM_USES_EVT1
47   -# define L1_CODE_ORIGIN L1_INST_SRAM
48   -#else
49   -# define L1_CODE_ORIGIN L1_INST_SRAM + 0xC
50   -#endif
51   -
52   -OUTPUT_ARCH(bfin)
53   -
54   -MEMORY
55   -{
56   - ram : ORIGIN = CONFIG_SYS_MONITOR_BASE, LENGTH = CONFIG_SYS_MONITOR_LEN
57   - l1_code : ORIGIN = L1_CODE_ORIGIN, LENGTH = L1_INST_SRAM_SIZE
58   - l1_data : ORIGIN = L1_DATA_B_SRAM, LENGTH = L1_DATA_B_SRAM_SIZE
59   -}
60   -
61   -ENTRY(_start)
62   -SECTIONS
63   -{
64   - .text :
65   - {
66   - cpu/blackfin/start.o (.text .text.*)
67   -
68   -#ifdef ENV_IS_EMBEDDED
69   - /* WARNING - the following is hand-optimized to fit within
70   - * the sector before the environment sector. If it throws
71   - * an error during compilation remove an object here to get
72   - * it linked after the configuration sector.
73   - */
74   -
75   - cpu/blackfin/traps.o (.text .text.*)
76   - cpu/blackfin/interrupt.o (.text .text.*)
77   - cpu/blackfin/serial.o (.text .text.*)
78   - common/dlmalloc.o (.text .text.*)
79   - lib_generic/crc32.o (.text .text.*)
80   -
81   - . = DEFINED(env_offset) ? env_offset : .;
82   - common/env_embedded.o (.text .text.*)
83   -#endif
84   -
85   - __initcode_start = .;
86   - cpu/blackfin/initcode.o (.text .text.*)
87   - __initcode_end = .;
88   -
89   - *(.text .text.*)
90   - } >ram
91   -
92   - .rodata :
93   - {
94   - . = ALIGN(4);
95   - *(.rodata .rodata.*)
96   - *(.rodata1)
97   - *(.eh_frame)
98   - . = ALIGN(4);
99   - } >ram
100   -
101   - .data :
102   - {
103   - . = ALIGN(256);
104   - *(.data .data.*)
105   - *(.data1)
106   - *(.sdata)
107   - *(.sdata2)
108   - *(.dynamic)
109   - CONSTRUCTORS
110   - } >ram
111   -
112   - .u_boot_cmd :
113   - {
114   - ___u_boot_cmd_start = .;
115   - *(.u_boot_cmd)
116   - ___u_boot_cmd_end = .;
117   - } >ram
118   -
119   - .text_l1 :
120   - {
121   - . = ALIGN(4);
122   - __stext_l1 = .;
123   - *(.l1.text)
124   - . = ALIGN(4);
125   - __etext_l1 = .;
126   - } >l1_code AT>ram
127   - __stext_l1_lma = LOADADDR(.text_l1);
128   -
129   - .data_l1 :
130   - {
131   - . = ALIGN(4);
132   - __sdata_l1 = .;
133   - *(.l1.data)
134   - *(.l1.bss)
135   - . = ALIGN(4);
136   - __edata_l1 = .;
137   - } >l1_data AT>ram
138   - __sdata_l1_lma = LOADADDR(.data_l1);
139   -
140   - .bss :
141   - {
142   - . = ALIGN(4);
143   - __bss_start = .;
144   - *(.sbss) *(.scommon)
145   - *(.dynbss)
146   - *(.bss .bss.*)
147   - *(COMMON)
148   - __bss_end = .;
149   - } >ram
150   -}
board/ibf-dsp561/.gitignore
1   -/u-boot.lds
board/ibf-dsp561/Makefile
... ... @@ -35,11 +35,8 @@
35 35 OBJS := $(addprefix $(obj),$(COBJS-y))
36 36 SOBJS := $(addprefix $(obj),$(SOBJS-y))
37 37  
38   -$(LIB): $(obj).depend $(OBJS) $(SOBJS) $(obj)u-boot.lds
  38 +$(LIB): $(obj).depend $(OBJS) $(SOBJS)
39 39 $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
40   -
41   -$(obj)u-boot.lds: u-boot.lds.S
42   - $(CPP) $(CPPFLAGS) -D__ASSEMBLY__ -P $^ > $@
43 40  
44 41 clean:
45 42 rm -f $(SOBJS) $(OBJS)
board/ibf-dsp561/config.mk
... ... @@ -26,8 +26,6 @@
26 26 # This is not actually used for Blackfin boards so do not change it
27 27 #TEXT_BASE = do-not-use-me
28 28  
29   -LDSCRIPT = $(obj)board/$(BOARDDIR)/u-boot.lds
30   -
31 29 # Set some default LDR flags based on boot mode.
32 30 LDR_FLAGS-BFIN_BOOT_PARA := --bits 16
33 31 LDR_FLAGS += $(LDR_FLAGS-$(CONFIG_BFIN_BOOT_MODE))
board/ibf-dsp561/u-boot.lds.S
1   -/*
2   - * U-boot - u-boot.lds.S
3   - *
4   - * Copyright (c) 2005-2008 Analog Device Inc.
5   - *
6   - * (C) Copyright 2000-2004
7   - * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
8   - *
9   - * See file CREDITS for list of people who contributed to this
10   - * project.
11   - *
12   - * This program is free software; you can redistribute it and/or
13   - * modify it under the terms of the GNU General Public License as
14   - * published by the Free Software Foundation; either version 2 of
15   - * the License, or (at your option) any later version.
16   - *
17   - * This program is distributed in the hope that it will be useful,
18   - * but WITHOUT ANY WARRANTY; without even the implied warranty of
19   - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20   - * GNU General Public License for more details.
21   - *
22   - * You should have received a copy of the GNU General Public License
23   - * along with this program; if not, write to the Free Software
24   - * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
25   - * MA 02111-1307 USA
26   - */
27   -
28   -#include <config.h>
29   -#include <asm/blackfin.h>
30   -#undef ALIGN
31   -#undef ENTRY
32   -#undef bfin
33   -
34   -/* If we don't actually load anything into L1 data, this will avoid
35   - * a syntax error. If we do actually load something into L1 data,
36   - * we'll get a linker memory load error (which is what we'd want).
37   - * This is here in the first place so we can quickly test building
38   - * for different CPU's which may lack non-cache L1 data.
39   - */
40   -#ifndef L1_DATA_B_SRAM
41   -# define L1_DATA_B_SRAM CONFIG_SYS_MONITOR_BASE
42   -# define L1_DATA_B_SRAM_SIZE 0
43   -#endif
44   -
45   -/* The 0xC offset is so we don't clobber the tiny LDR jump block. */
46   -#ifdef CONFIG_BFIN_BOOTROM_USES_EVT1
47   -# define L1_CODE_ORIGIN L1_INST_SRAM
48   -#else
49   -# define L1_CODE_ORIGIN L1_INST_SRAM + 0xC
50   -#endif
51   -
52   -OUTPUT_ARCH(bfin)
53   -
54   -MEMORY
55   -{
56   - ram : ORIGIN = CONFIG_SYS_MONITOR_BASE, LENGTH = CONFIG_SYS_MONITOR_LEN
57   - l1_code : ORIGIN = L1_CODE_ORIGIN, LENGTH = L1_INST_SRAM_SIZE
58   - l1_data : ORIGIN = L1_DATA_B_SRAM, LENGTH = L1_DATA_B_SRAM_SIZE
59   -}
60   -
61   -ENTRY(_start)
62   -SECTIONS
63   -{
64   - .text :
65   - {
66   - cpu/blackfin/start.o (.text .text.*)
67   -
68   -#ifdef ENV_IS_EMBEDDED
69   - /* WARNING - the following is hand-optimized to fit within
70   - * the sector before the environment sector. If it throws
71   - * an error during compilation remove an object here to get
72   - * it linked after the configuration sector.
73   - */
74   -
75   - cpu/blackfin/traps.o (.text .text.*)
76   - cpu/blackfin/interrupt.o (.text .text.*)
77   - cpu/blackfin/serial.o (.text .text.*)
78   - common/dlmalloc.o (.text .text.*)
79   - lib_generic/crc32.o (.text .text.*)
80   - lib_generic/zlib.o (.text .text.*)
81   - board/ibf-dsp561/ibf-dsp561.o (.text .text.*)
82   -
83   - . = DEFINED(env_offset) ? env_offset : .;
84   - common/env_embedded.o (.text .text.*)
85   -#endif
86   -
87   - __initcode_start = .;
88   - cpu/blackfin/initcode.o (.text .text.*)
89   - __initcode_end = .;
90   -
91   - *(.text .text.*)
92   - } >ram
93   -
94   - .rodata :
95   - {
96   - . = ALIGN(4);
97   - *(.rodata .rodata.*)
98   - *(.rodata1)
99   - *(.eh_frame)
100   - . = ALIGN(4);
101   - } >ram
102   -
103   - .data :
104   - {
105   - . = ALIGN(256);
106   - *(.data .data.*)
107   - *(.data1)
108   - *(.sdata)
109   - *(.sdata2)
110   - *(.dynamic)
111   - CONSTRUCTORS
112   - } >ram
113   -
114   - .u_boot_cmd :
115   - {
116   - ___u_boot_cmd_start = .;
117   - *(.u_boot_cmd)
118   - ___u_boot_cmd_end = .;
119   - } >ram
120   -
121   - .text_l1 :
122   - {
123   - . = ALIGN(4);
124   - __stext_l1 = .;
125   - *(.l1.text)
126   - . = ALIGN(4);
127   - __etext_l1 = .;
128   - } >l1_code AT>ram
129   - __stext_l1_lma = LOADADDR(.text_l1);
130   -
131   - .data_l1 :
132   - {
133   - . = ALIGN(4);
134   - __sdata_l1 = .;
135   - *(.l1.data)
136   - *(.l1.bss)
137   - . = ALIGN(4);
138   - __edata_l1 = .;
139   - } >l1_data AT>ram
140   - __sdata_l1_lma = LOADADDR(.data_l1);
141   -
142   - .bss :
143   - {
144   - . = ALIGN(4);
145   - __bss_start = .;
146   - *(.sbss) *(.scommon)
147   - *(.dynbss)
148   - *(.bss .bss.*)
149   - *(COMMON)
150   - __bss_end = .;
151   - } >ram
152   -}
board/tcm-bf537/.gitignore
1   -/u-boot.lds
board/tcm-bf537/Makefile
... ... @@ -35,11 +35,8 @@
35 35 OBJS := $(addprefix $(obj),$(COBJS-y))
36 36 SOBJS := $(addprefix $(obj),$(SOBJS-y))
37 37  
38   -$(LIB): $(obj).depend $(OBJS) $(SOBJS) $(obj)u-boot.lds
  38 +$(LIB): $(obj).depend $(OBJS) $(SOBJS)
39 39 $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
40   -
41   -$(obj)u-boot.lds: u-boot.lds.S
42   - $(CPP) $(CPPFLAGS) -D__ASSEMBLY__ -P $^ > $@
43 40  
44 41 clean:
45 42 rm -f $(SOBJS) $(OBJS)
board/tcm-bf537/config.mk
... ... @@ -26,8 +26,6 @@
26 26 # This is not actually used for Blackfin boards so do not change it
27 27 #TEXT_BASE = do-not-use-me
28 28  
29   -LDSCRIPT = $(obj)board/$(BOARDDIR)/u-boot.lds
30   -
31 29 # Set some default LDR flags based on boot mode.
32 30 LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 8
33 31 LDR_FLAGS += $(LDR_FLAGS-$(CONFIG_BFIN_BOOT_MODE))
board/tcm-bf537/u-boot.lds.S
1   -/*
2   - * U-boot - u-boot.lds.S
3   - *
4   - * Copyright (c) 2005-2008 Analog Device Inc.
5   - *
6   - * (C) Copyright 2000-2004
7   - * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
8   - *
9   - * See file CREDITS for list of people who contributed to this
10   - * project.
11   - *
12   - * This program is free software; you can redistribute it and/or
13   - * modify it under the terms of the GNU General Public License as
14   - * published by the Free Software Foundation; either version 2 of
15   - * the License, or (at your option) any later version.
16   - *
17   - * This program is distributed in the hope that it will be useful,
18   - * but WITHOUT ANY WARRANTY; without even the implied warranty of
19   - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20   - * GNU General Public License for more details.
21   - *
22   - * You should have received a copy of the GNU General Public License
23   - * along with this program; if not, write to the Free Software
24   - * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
25   - * MA 02111-1307 USA
26   - */
27   -
28   -#include <config.h>
29   -#include <asm/blackfin.h>
30   -#undef ALIGN
31   -#undef ENTRY
32   -#undef bfin
33   -
34   -/* If we don't actually load anything into L1 data, this will avoid
35   - * a syntax error. If we do actually load something into L1 data,
36   - * we'll get a linker memory load error (which is what we'd want).
37   - * This is here in the first place so we can quickly test building
38   - * for different CPU's which may lack non-cache L1 data.
39   - */
40   -#ifndef L1_DATA_B_SRAM
41   -# define L1_DATA_B_SRAM CONFIG_SYS_MONITOR_BASE
42   -# define L1_DATA_B_SRAM_SIZE 0
43   -#endif
44   -
45   -OUTPUT_ARCH(bfin)
46   -
47   -MEMORY
48   -{
49   - ram : ORIGIN = CONFIG_SYS_MONITOR_BASE, LENGTH = CONFIG_SYS_MONITOR_LEN
50   - l1_code : ORIGIN = L1_INST_SRAM, LENGTH = L1_INST_SRAM_SIZE
51   - l1_data : ORIGIN = L1_DATA_B_SRAM, LENGTH = L1_DATA_B_SRAM_SIZE
52   -}
53   -
54   -ENTRY(_start)
55   -SECTIONS
56   -{
57   - .text :
58   - {
59   - cpu/blackfin/start.o (.text .text.*)
60   -
61   -#ifdef ENV_IS_EMBEDDED
62   - /* WARNING - the following is hand-optimized to fit within
63   - * the sector before the environment sector. If it throws
64   - * an error during compilation remove an object here to get
65   - * it linked after the configuration sector.
66   - */
67   -
68   - cpu/blackfin/traps.o (.text .text.*)
69   - cpu/blackfin/interrupt.o (.text .text.*)
70   - cpu/blackfin/serial.o (.text .text.*)
71   - common/dlmalloc.o (.text .text.*)
72   - lib_generic/crc32.o (.text .text.*)
73   -
74   - . = DEFINED(env_offset) ? env_offset : .;
75   - common/env_embedded.o (.text .text.*)
76   -#endif
77   -
78   - __initcode_start = .;
79   - cpu/blackfin/initcode.o (.text .text.*)
80   - __initcode_end = .;
81   -
82   - *(.text .text.*)
83   - } >ram
84   -
85   - .rodata :
86   - {
87   - . = ALIGN(4);
88   - *(.rodata .rodata.*)
89   - *(.rodata1)
90   - *(.eh_frame)
91   - . = ALIGN(4);
92   - } >ram
93   -
94   - .data :
95   - {
96   - . = ALIGN(256);
97   - *(.data .data.*)
98   - *(.data1)
99   - *(.sdata)
100   - *(.sdata2)
101   - *(.dynamic)
102   - CONSTRUCTORS
103   - } >ram
104   -
105   - .u_boot_cmd :
106   - {
107   - ___u_boot_cmd_start = .;
108   - *(.u_boot_cmd)
109   - ___u_boot_cmd_end = .;
110   - } >ram
111   -
112   - .text_l1 :
113   - {
114   - . = ALIGN(4);
115   - __stext_l1 = .;
116   - *(.l1.text)
117   - . = ALIGN(4);
118   - __etext_l1 = .;
119   - } >l1_code AT>ram
120   - __stext_l1_lma = LOADADDR(.text_l1);
121   -
122   - .data_l1 :
123   - {
124   - . = ALIGN(4);
125   - __sdata_l1 = .;
126   - *(.l1.data)
127   - *(.l1.bss)
128   - . = ALIGN(4);
129   - __edata_l1 = .;
130   - } >l1_data AT>ram
131   - __sdata_l1_lma = LOADADDR(.data_l1);
132   -
133   - .bss :
134   - {
135   - . = ALIGN(4);
136   - __bss_start = .;
137   - *(.sbss) *(.scommon)
138   - *(.dynbss)
139   - *(.bss .bss.*)
140   - *(COMMON)
141   - __bss_end = .;
142   - } >ram
143   -}
include/configs/bf533-stamp.h
... ... @@ -117,6 +117,21 @@
117 117 #else
118 118 #define ENV_IS_EMBEDDED_CUSTOM
119 119 #endif
  120 +#ifdef ENV_IS_EMBEDDED
  121 +/* WARNING - the following is hand-optimized to fit within
  122 + * the sector before the environment sector. If it throws
  123 + * an error during compilation remove an object here to get
  124 + * it linked after the configuration sector.
  125 + */
  126 +# define LDS_BOARD_TEXT \
  127 + cpu/blackfin/traps.o (.text .text.*); \
  128 + cpu/blackfin/interrupt.o (.text .text.*); \
  129 + cpu/blackfin/serial.o (.text .text.*); \
  130 + common/dlmalloc.o (.text .text.*); \
  131 + lib_generic/crc32.o (.text .text.*); \
  132 + . = DEFINED(env_offset) ? env_offset : .; \
  133 + common/env_embedded.o (.text .text.*);
  134 +#endif
120 135  
121 136  
122 137 /*
include/configs/bf537-pnav.h
... ... @@ -105,6 +105,21 @@
105 105 #endif
106 106 #define CONFIG_ENV_SIZE 0x1000
107 107 #define CONFIG_ENV_SECT_SIZE 0x2000
  108 +#ifdef ENV_IS_EMBEDDED
  109 +/* WARNING - the following is hand-optimized to fit within
  110 + * the sector before the environment sector. If it throws
  111 + * an error during compilation remove an object here to get
  112 + * it linked after the configuration sector.
  113 + */
  114 +# define LDS_BOARD_TEXT \
  115 + cpu/blackfin/traps.o (.text .text.*); \
  116 + cpu/blackfin/interrupt.o (.text .text.*); \
  117 + cpu/blackfin/serial.o (.text .text.*); \
  118 + common/dlmalloc.o (.text .text.*); \
  119 + lib_generic/crc32.o (.text .text.*); \
  120 + . = DEFINED(env_offset) ? env_offset : .; \
  121 + common/env_embedded.o (.text .text.*);
  122 +#endif
108 123  
109 124  
110 125 /*
include/configs/bf537-stamp.h
... ... @@ -115,6 +115,21 @@
115 115 #else
116 116 #define ENV_IS_EMBEDDED_CUSTOM
117 117 #endif
  118 +#ifdef ENV_IS_EMBEDDED
  119 +/* WARNING - the following is hand-optimized to fit within
  120 + * the sector before the environment sector. If it throws
  121 + * an error during compilation remove an object here to get
  122 + * it linked after the configuration sector.
  123 + */
  124 +# define LDS_BOARD_TEXT \
  125 + cpu/blackfin/traps.o (.text .text.*); \
  126 + cpu/blackfin/interrupt.o (.text .text.*); \
  127 + cpu/blackfin/serial.o (.text .text.*); \
  128 + common/dlmalloc.o (.text .text.*); \
  129 + lib_generic/crc32.o (.text .text.*); \
  130 + . = DEFINED(env_offset) ? env_offset : .; \
  131 + common/env_embedded.o (.text .text.*);
  132 +#endif
118 133  
119 134  
120 135 /*
include/configs/bf538f-ezkit.h
... ... @@ -111,6 +111,21 @@
111 111 #else
112 112 #define ENV_IS_EMBEDDED_CUSTOM
113 113 #endif
  114 +#ifdef ENV_IS_EMBEDDED
  115 +/* WARNING - the following is hand-optimized to fit within
  116 + * the sector before the environment sector. If it throws
  117 + * an error during compilation remove an object here to get
  118 + * it linked after the configuration sector.
  119 + */
  120 +# define LDS_BOARD_TEXT \
  121 + cpu/blackfin/traps.o (.text .text.*); \
  122 + cpu/blackfin/interrupt.o (.text .text.*); \
  123 + cpu/blackfin/serial.o (.text .text.*); \
  124 + common/dlmalloc.o (.text .text.*); \
  125 + lib_generic/crc32.o (.text .text.*); \
  126 + . = DEFINED(env_offset) ? env_offset : .; \
  127 + common/env_embedded.o (.text .text.*);
  128 +#endif
114 129  
115 130  
116 131 /*
include/configs/bf561-ezkit.h
... ... @@ -88,6 +88,23 @@
88 88 #else
89 89 #define ENV_IS_EMBEDDED_CUSTOM
90 90 #endif
  91 +#ifdef ENV_IS_EMBEDDED
  92 +/* WARNING - the following is hand-optimized to fit within
  93 + * the sector before the environment sector. If it throws
  94 + * an error during compilation remove an object here to get
  95 + * it linked after the configuration sector.
  96 + */
  97 +# define LDS_BOARD_TEXT \
  98 + cpu/blackfin/traps.o (.text .text.*); \
  99 + cpu/blackfin/interrupt.o (.text .text.*); \
  100 + cpu/blackfin/serial.o (.text .text.*); \
  101 + common/dlmalloc.o (.text .text.*); \
  102 + lib_generic/crc32.o (.text .text.*); \
  103 + lib_generic/zlib.o (.text .text.*); \
  104 + board/bf561-ezkit/bf561-ezkit.o (.text .text.*); \
  105 + . = DEFINED(env_offset) ? env_offset : .; \
  106 + common/env_embedded.o (.text .text.*);
  107 +#endif
91 108  
92 109  
93 110 /*
include/configs/cm-bf537e.h
... ... @@ -94,6 +94,21 @@
94 94 #else
95 95 #define ENV_IS_EMBEDDED_CUSTOM
96 96 #endif
  97 +#ifdef ENV_IS_EMBEDDED
  98 +/* WARNING - the following is hand-optimized to fit within
  99 + * the sector before the environment sector. If it throws
  100 + * an error during compilation remove an object here to get
  101 + * it linked after the configuration sector.
  102 + */
  103 +# define LDS_BOARD_TEXT \
  104 + cpu/blackfin/traps.o (.text .text.*); \
  105 + cpu/blackfin/interrupt.o (.text .text.*); \
  106 + cpu/blackfin/serial.o (.text .text.*); \
  107 + common/dlmalloc.o (.text .text.*); \
  108 + lib_generic/crc32.o (.text .text.*); \
  109 + . = DEFINED(env_offset) ? env_offset : .; \
  110 + common/env_embedded.o (.text .text.*);
  111 +#endif
97 112  
98 113  
99 114 /*
include/configs/ibf-dsp561.h
... ... @@ -77,6 +77,23 @@
77 77 #else
78 78 #define ENV_IS_EMBEDDED_CUSTOM
79 79 #endif
  80 +#ifdef ENV_IS_EMBEDDED
  81 +/* WARNING - the following is hand-optimized to fit within
  82 + * the sector before the environment sector. If it throws
  83 + * an error during compilation remove an object here to get
  84 + * it linked after the configuration sector.
  85 + */
  86 +# define LDS_BOARD_TEXT \
  87 + cpu/blackfin/traps.o (.text .text.*); \
  88 + cpu/blackfin/interrupt.o (.text .text.*); \
  89 + cpu/blackfin/serial.o (.text .text.*); \
  90 + common/dlmalloc.o (.text .text.*); \
  91 + lib_generic/crc32.o (.text .text.*); \
  92 + lib_generic/zlib.o (.text .text.*); \
  93 + board/ibf-dsp561/ibf-dsp561.o (.text .text.*); \
  94 + . = DEFINED(env_offset) ? env_offset : .; \
  95 + common/env_embedded.o (.text .text.*);
  96 +#endif
80 97  
81 98  
82 99 /*
include/configs/tcm-bf537.h
... ... @@ -95,6 +95,21 @@
95 95 #else
96 96 #define ENV_IS_EMBEDDED_CUSTOM
97 97 #endif
  98 +#ifdef ENV_IS_EMBEDDED
  99 +/* WARNING - the following is hand-optimized to fit within
  100 + * the sector before the environment sector. If it throws
  101 + * an error during compilation remove an object here to get
  102 + * it linked after the configuration sector.
  103 + */
  104 +# define LDS_BOARD_TEXT \
  105 + cpu/blackfin/traps.o (.text .text.*); \
  106 + cpu/blackfin/interrupt.o (.text .text.*); \
  107 + cpu/blackfin/serial.o (.text .text.*); \
  108 + common/dlmalloc.o (.text .text.*); \
  109 + lib_generic/crc32.o (.text .text.*); \
  110 + . = DEFINED(env_offset) ? env_offset : .; \
  111 + common/env_embedded.o (.text .text.*);
  112 +#endif
98 113  
99 114  
100 115 /*
lib_blackfin/.gitignore
  1 +u-boot.lds
lib_blackfin/Makefile
... ... @@ -47,8 +47,11 @@
47 47 SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
48 48 OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
49 49  
50   -$(LIB): $(obj).depend $(OBJS)
  50 +$(LIB): $(obj).depend $(OBJS) $(obj)u-boot.lds
51 51 $(AR) $(ARFLAGS) $@ $(OBJS)
  52 +
  53 +$(obj)u-boot.lds: u-boot.lds.S
  54 + $(CPP) $(CPPFLAGS) -D__ASSEMBLY__ -P $^ > $@
52 55  
53 56 #########################################################################
54 57  
lib_blackfin/u-boot.lds.S
  1 +/*
  2 + * U-boot - u-boot.lds.S
  3 + *
  4 + * Copyright (c) 2005-2008 Analog Device Inc.
  5 + *
  6 + * (C) Copyright 2000-2004
  7 + * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  8 + *
  9 + * See file CREDITS for list of people who contributed to this
  10 + * project.
  11 + *
  12 + * This program is free software; you can redistribute it and/or
  13 + * modify it under the terms of the GNU General Public License as
  14 + * published by the Free Software Foundation; either version 2 of
  15 + * the License, or (at your option) any later version.
  16 + *
  17 + * This program is distributed in the hope that it will be useful,
  18 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  19 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20 + * GNU General Public License for more details.
  21 + *
  22 + * You should have received a copy of the GNU General Public License
  23 + * along with this program; if not, write to the Free Software
  24 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  25 + * MA 02111-1307 USA
  26 + */
  27 +
  28 +#include <config.h>
  29 +#include <asm/blackfin.h>
  30 +#undef ALIGN
  31 +#undef ENTRY
  32 +#undef bfin
  33 +
  34 +#ifndef LDS_BOARD_TEXT
  35 +# define LDS_BOARD_TEXT
  36 +#endif
  37 +
  38 +/* If we don't actually load anything into L1 data, this will avoid
  39 + * a syntax error. If we do actually load something into L1 data,
  40 + * we'll get a linker memory load error (which is what we'd want).
  41 + * This is here in the first place so we can quickly test building
  42 + * for different CPU's which may lack non-cache L1 data.
  43 + */
  44 +#ifndef L1_DATA_B_SRAM
  45 +# define L1_DATA_B_SRAM CONFIG_SYS_MONITOR_BASE
  46 +# define L1_DATA_B_SRAM_SIZE 0
  47 +#endif
  48 +
  49 +OUTPUT_ARCH(bfin)
  50 +
  51 +MEMORY
  52 +{
  53 + ram : ORIGIN = CONFIG_SYS_MONITOR_BASE, LENGTH = CONFIG_SYS_MONITOR_LEN
  54 + l1_code : ORIGIN = L1_INST_SRAM, LENGTH = L1_INST_SRAM_SIZE
  55 + l1_data : ORIGIN = L1_DATA_B_SRAM, LENGTH = L1_DATA_B_SRAM_SIZE
  56 +}
  57 +
  58 +ENTRY(_start)
  59 +SECTIONS
  60 +{
  61 + .text :
  62 + {
  63 + cpu/blackfin/start.o (.text .text.*)
  64 +
  65 + LDS_BOARD_TEXT
  66 +
  67 + __initcode_start = .;
  68 + cpu/blackfin/initcode.o (.text .text.*)
  69 + __initcode_end = .;
  70 +
  71 + *(.text .text.*)
  72 + } >ram
  73 +
  74 + .rodata :
  75 + {
  76 + . = ALIGN(4);
  77 + *(.rodata .rodata.*)
  78 + *(.rodata1)
  79 + *(.eh_frame)
  80 + . = ALIGN(4);
  81 + } >ram
  82 +
  83 + .data :
  84 + {
  85 + . = ALIGN(256);
  86 + *(.data .data.*)
  87 + *(.data1)
  88 + *(.sdata)
  89 + *(.sdata2)
  90 + *(.dynamic)
  91 + CONSTRUCTORS
  92 + } >ram
  93 +
  94 + .u_boot_cmd :
  95 + {
  96 + ___u_boot_cmd_start = .;
  97 + *(.u_boot_cmd)
  98 + ___u_boot_cmd_end = .;
  99 + } >ram
  100 +
  101 + .text_l1 :
  102 + {
  103 + . = ALIGN(4);
  104 + __stext_l1 = .;
  105 + *(.l1.text)
  106 + . = ALIGN(4);
  107 + __etext_l1 = .;
  108 + } >l1_code AT>ram
  109 + __stext_l1_lma = LOADADDR(.text_l1);
  110 +
  111 + .data_l1 :
  112 + {
  113 + . = ALIGN(4);
  114 + __sdata_l1 = .;
  115 + *(.l1.data)
  116 + *(.l1.bss)
  117 + . = ALIGN(4);
  118 + __edata_l1 = .;
  119 + } >l1_data AT>ram
  120 + __sdata_l1_lma = LOADADDR(.data_l1);
  121 +
  122 + .bss :
  123 + {
  124 + . = ALIGN(4);
  125 + __bss_start = .;
  126 + *(.sbss) *(.scommon)
  127 + *(.dynbss)
  128 + *(.bss .bss.*)
  129 + *(COMMON)
  130 + __bss_end = .;
  131 + } >ram
  132 +}