[U-Boot] [PATCH 0/2] Loader script updates for OpenRISC

This set of patches does:
Fix a bug in the openrisc-generic u-boot.lds linker script that would cause an error due to that no memory region was specified for u_boot_lists.
And then move the above mentioned file into arch/openrisc/cpu/ to unify the linker script for all openrisc boards (we only have one board).
Stefan Kristiansson (2): openrisc: specify a memory region for u_boot_lists openrisc: move board linker script(s) to a common in cpu/
arch/openrisc/config.mk | 2 ++ {board/openrisc/openrisc-generic => arch/openrisc/cpu}/u-boot.lds | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) rename {board/openrisc/openrisc-generic => arch/openrisc/cpu}/u-boot.lds (98%)

Since there are two memory areas defined, vectors and ram, the linker will error when neither of them are specified for a section.
Signed-off-by: Stefan Kristiansson stefan.kristiansson@saunalahti.fi --- board/openrisc/openrisc-generic/u-boot.lds | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/board/openrisc/openrisc-generic/u-boot.lds b/board/openrisc/openrisc-generic/u-boot.lds index 9024f30..d9bb7b7 100644 --- a/board/openrisc/openrisc-generic/u-boot.lds +++ b/board/openrisc/openrisc-generic/u-boot.lds @@ -30,7 +30,7 @@ SECTIONS . = ALIGN(4); .u_boot_list : { KEEP(*(SORT(.u_boot_list*))); - } + } > ram
.rodata : { *(.rodata);

Unifies the openrisc boards linker scripts into a common one.
Signed-off-by: Stefan Kristiansson stefan.kristiansson@saunalahti.fi --- arch/openrisc/config.mk | 2 ++ {board/openrisc/openrisc-generic => arch/openrisc/cpu}/u-boot.lds | 0 2 files changed, 2 insertions(+) rename {board/openrisc/openrisc-generic => arch/openrisc/cpu}/u-boot.lds (100%)
diff --git a/arch/openrisc/config.mk b/arch/openrisc/config.mk index 521e73a..01c0f77 100644 --- a/arch/openrisc/config.mk +++ b/arch/openrisc/config.mk @@ -25,3 +25,5 @@ CROSS_COMPILE ?= or32-elf- PLATFORM_CPPFLAGS += -DCONFIG_OPENRISC -D__OR1K__ -ffixed-r10
CONFIG_STANDALONE_LOAD_ADDR ?= 0x40000 + +LDSCRIPT ?= $(SRCTREE)/$(CPUDIR)/u-boot.lds diff --git a/board/openrisc/openrisc-generic/u-boot.lds b/arch/openrisc/cpu/u-boot.lds similarity index 100% rename from board/openrisc/openrisc-generic/u-boot.lds rename to arch/openrisc/cpu/u-boot.lds

On Wed, May 01, 2013 at 10:32:44PM +0300, Stefan Kristiansson wrote:
This set of patches does:
Fix a bug in the openrisc-generic u-boot.lds linker script that would cause an error due to that no memory region was specified for u_boot_lists.
And then move the above mentioned file into arch/openrisc/cpu/ to unify the linker script for all openrisc boards (we only have one board).
Stefan Kristiansson (2): openrisc: specify a memory region for u_boot_lists openrisc: move board linker script(s) to a common in cpu/
Applied to u-boot/master, thanks!
participants (2)
-
Stefan Kristiansson
-
Tom Rini