mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-24 04:34:22 +08:00
generate u-boot.ldr for Blackfin targets
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
b779f7a595
commit
94a91e248b
4
.gitignore
vendored
4
.gitignore
vendored
@ -17,9 +17,13 @@
|
||||
|
||||
/System.map
|
||||
/u-boot
|
||||
/u-boot.hex
|
||||
/u-boot.map
|
||||
/u-boot.bin
|
||||
/u-boot.srec
|
||||
/u-boot.ldr
|
||||
/u-boot.ldr.hex
|
||||
/u-boot.ldr.srec
|
||||
|
||||
#
|
||||
# Generated files
|
||||
|
12
Makefile
12
Makefile
@ -274,6 +274,9 @@ __LIBS := $(subst $(obj),,$(LIBS))
|
||||
#########################################################################
|
||||
|
||||
ALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND)
|
||||
ifeq ($(ARCH),blackfin)
|
||||
ALL += $(obj)u-boot.ldr
|
||||
endif
|
||||
|
||||
all: $(ALL)
|
||||
|
||||
@ -286,6 +289,15 @@ $(obj)u-boot.srec: $(obj)u-boot
|
||||
$(obj)u-boot.bin: $(obj)u-boot
|
||||
$(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
|
||||
|
||||
$(obj)u-boot.ldr: $(obj)u-boot
|
||||
$(LDR) -T $(CONFIG_BFIN_CPU) -f -c $@ $< $(LDR_FLAGS)
|
||||
|
||||
$(obj)u-boot.ldr.hex: $(obj)u-boot.ldr
|
||||
$(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary
|
||||
|
||||
$(obj)u-boot.ldr.srec: $(obj)u-boot.ldr
|
||||
$(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary
|
||||
|
||||
$(obj)u-boot.img: $(obj)u-boot.bin
|
||||
./tools/mkimage -A $(ARCH) -T firmware -C none \
|
||||
-a $(TEXT_BASE) -e 0 \
|
||||
|
@ -25,3 +25,8 @@ PLATFORM_RELFLAGS += -ffixed-P5
|
||||
PLATFORM_CPPFLAGS += -DCONFIG_BLACKFIN
|
||||
|
||||
SYM_PREFIX = _
|
||||
|
||||
LDR_FLAGS += --use-vmas
|
||||
ifeq (,$(findstring s,$(MAKEFLAGS)))
|
||||
LDR_FLAGS += --quiet
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user