Skip to content

Commit 5cf77a5

Browse files
Mike FrysingerBryan Wu
authored andcommitted
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>
1 parent c04d66b commit 5cf77a5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎arch/blackfin/boot/Makefile‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ extra-y += vmlinux.bin vmlinux.gz
1313

1414
quiet_cmd_uimage = UIMAGE $@
1515
cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A $(ARCH) -O linux -T kernel \
16-
-C gzip -a $(CONFIG_BOOT_LOAD) -e $(CONFIG_BOOT_LOAD) -n 'Linux-$(KERNELRELEASE)' \
16+
-C gzip -n 'Linux-$(KERNELRELEASE)' -a $(CONFIG_BOOT_LOAD) \
17+
-e $(shell $(NM) vmlinux | awk '$$NF == "__start" {print $$1}') \
1718
-d $< $@
1819

1920
$(obj)/vmlinux.bin: vmlinux FORCE

0 commit comments

Comments
 (0)