projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbfc0f0
)
[ARM] 4854/1: fix the load address of uImage for CONFIG_ZBOOT_ROM=y
author
Uwe Kleine-König
<
[email protected]
>
Thu, 6 Mar 2008 15:22:33 +0000
(16:22 +0100)
committer
Russell King
<
[email protected]
>
Sat, 19 Apr 2008 10:28:07 +0000
(11:28 +0100)
U-Boot puts an image at the load address specified in the uImage
header before jumping to the entry point.
In the CONFIG_ZBOOT_ROM case ZBOOT_ROM_TEXT is the right load
address.
Signed-off-by: Uwe Kleine-König <
[email protected]
>
Signed-off-by: Russell King <
[email protected]
>
arch/arm/boot/Makefile
patch
|
blob
|
history
diff --git
a/arch/arm/boot/Makefile
b/arch/arm/boot/Makefile
index 25f12303b1062d163fcbb846b7e8709e609a640b..da226abce2d0972c2a3cebc8a99276f294e57516 100644
(file)
--- a/
arch/arm/boot/Makefile
+++ b/
arch/arm/boot/Makefile
@@
-61,9
+61,15
@@
endif
quiet_cmd_uimage = UIMAGE $@
cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A arm -O linux -T kernel \
- -C none -a $(
ZRELADDR) -e $(ZREL
ADDR) \
+ -C none -a $(
LOADADDR) -e $(LOAD
ADDR) \
-n 'Linux-$(KERNELRELEASE)' -d $< $@
+ifeq ($(CONFIG_ZBOOT_ROM),y)
+$(obj)/uImage: LOADADDR=$(CONFIG_ZBOOT_ROM_TEXT)
+else
+$(obj)/uImage: LOADADDR=$(ZRELADDR)
+endif
+
$(obj)/uImage: $(obj)/zImage FORCE
$(call if_changed,uimage)
@echo ' Image $@ is ready'