Skip to contentSkip to conversation

Loader script updates for OpenRISC

PATCH New Stefan Kristiansson 2 participants 4 messages May 1, 2013 – May 10, 2013 Openrisc architecture

lore
Share & tools
lore

Stefan Kristiansson

author maintainer
#0 lore raw

cover 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%)
Signature · 1 line
1.8.1.2
author maintainer
#1 lore raw

PATCH 1/2 openrisc: specify a memory region for u_boot_lists

Since there are two memory areas defined, vectors and ram, the linker will error when neither of them are specified for a section.

---
 board/openrisc/openrisc-generic/u-boot.lds | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
board/openrisc/openrisc-generic/u-boot.lds +1 -1
index 9024f30..d9bb7b7 100644
@@ -30,7 +30,7 @@ SECTIONS
 	 . = ALIGN(4);
 	 .u_boot_list : {
 		KEEP(*(SORT(.u_boot_list*)));
-	 }
+	 } > ram
 
 	.rodata : {
 		*(.rodata);
Signature · 1 line
1.8.1.2
author maintainer
#2 lore raw

PATCH 2/2 openrisc: move board linker script(s) to a common in cpu/

In reply to Stefan Kristiansson

Unifies the openrisc boards linker scripts into a common one.

---
 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%)
arch/openrisc/config.mk +2 -0
index 521e73a..01c0f77 100644
@@ -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
arch/openrisc/cpu/u-boot.lds renamed from board/openrisc/openrisc-generic/u-boot.lds +0 -0
similarity index 100%
rename from board/openrisc/openrisc-generic/u-boot.lds
rename to arch/openrisc/cpu/u-boot.lds
Signature · 1 line
1.8.1.2
#3 lore raw

cover Loader script updates for OpenRISC

In reply to Stefan Kristiansson
Quoted 6 lines · Stefan Kristiansson

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.

Quoted 7 lines

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!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130510/7f105ba7/attachment.pgp>