summaryrefslogtreecommitdiff
path: root/arch/blackfin/boot
diff options
context:
space:
mode:
authorMike Frysinger <michael.frysinger@analog.com>2007-07-12 14:26:26 +0800
committerBryan Wu <bryan.wu@analog.com>2007-07-12 14:26:26 +0800
commit5cf77a5fd03c65b9dd33c283ce308a3abc4cb375 (patch)
tree3e303b1e828457ebbf228cfdf90c714be9b5ac9c /arch/blackfin/boot
parentc04d66bbbdbbc7b5d55c42795f29e494190f8fb3 (diff)
Blackfin arch: extract the entry point from the linked kernel
extract the entry point from the linked kernel rather than assuming entry point == load address Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Diffstat (limited to 'arch/blackfin/boot')
-rw-r--r--arch/blackfin/boot/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/blackfin/boot/Makefile b/arch/blackfin/boot/Makefile
index 49e8098d4c21..8cd33560e817 100644
--- a/arch/blackfin/boot/Makefile
+++ b/arch/blackfin/boot/Makefile
@@ -13,7 +13,8 @@ extra-y += vmlinux.bin vmlinux.gz
quiet_cmd_uimage = UIMAGE $@
cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A $(ARCH) -O linux -T kernel \
- -C gzip -a $(CONFIG_BOOT_LOAD) -e $(CONFIG_BOOT_LOAD) -n 'Linux-$(KERNELRELEASE)' \
+ -C gzip -n 'Linux-$(KERNELRELEASE)' -a $(CONFIG_BOOT_LOAD) \
+ -e $(shell $(NM) vmlinux | awk '$$NF == "__start" {print $$1}') \
-d $< $@
$(obj)/vmlinux.bin: vmlinux FORCE