diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-05-07 17:55:04 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-07-12 02:17:45 -0400 |
commit | fb5166ce35de489c8a96f3696e208eaae6a5a8d8 (patch) | |
tree | 82f4ddc19fc7a05e6689722981a99445581f1b72 /arch/blackfin/cpu/Makefile | |
parent | 08a82a447b2a89d705edba952612d00c84129cb8 (diff) | |
download | u-boot-imx-fb5166ce35de489c8a96f3696e208eaae6a5a8d8.zip u-boot-imx-fb5166ce35de489c8a96f3696e208eaae6a5a8d8.tar.gz u-boot-imx-fb5166ce35de489c8a96f3696e208eaae6a5a8d8.tar.bz2 |
Blackfin: add init.elf helper code
This creates a standalone ELF that executes just the Blackfin initcode.
This is useful for people who want to program the low level aspects of
the CPU (memory/clocks/etc...) and can easily be used with JTAG for
quick booting while developing.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/cpu/Makefile')
-rw-r--r-- | arch/blackfin/cpu/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/blackfin/cpu/Makefile b/arch/blackfin/cpu/Makefile index df10f1b..5deaa9e 100644 --- a/arch/blackfin/cpu/Makefile +++ b/arch/blackfin/cpu/Makefile @@ -13,7 +13,7 @@ include $(TOPDIR)/config.mk LIB = $(obj)lib$(CPU).o -EXTRA := +EXTRA := init.elf CEXTRA := initcode.o SEXTRA := start.o SOBJS := interrupt.o cache.o @@ -61,6 +61,11 @@ ifneq ($(CONFIG_BFIN_BOOT_MODE),BFIN_BOOT_BYPASS) fi endif +$(obj)init.lds: init.lds.S + $(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P $^ -o $@ +$(obj)init.elf: $(obj)init.lds $(obj)init.o $(obj)initcode.o + $(LD) $(LDFLAGS) -T $^ -o $@ + ######################################################################### # defines $(obj).depend target |