forked from len0rd/rockbox
hwstub: produce sb1 image too (for STMP3600)
Change-Id: Ib7f38fba1e524ed7438cdc395441d801c5eabcaa
This commit is contained in:
parent
2778e7613a
commit
1085d15a3e
1 changed files with 11 additions and 4 deletions
|
@ -5,16 +5,23 @@ CC=arm-elf-eabi-gcc
|
||||||
LD=arm-elf-eabi-gcc
|
LD=arm-elf-eabi-gcc
|
||||||
AS=arm-elf-eabi-gcc
|
AS=arm-elf-eabi-gcc
|
||||||
OC=arm-elf-eabi-objcopy
|
OC=arm-elf-eabi-objcopy
|
||||||
SBTOELF=$(CURDIR)/../../../imxtools/sbtools/elftosb
|
SBTOOLS=$(CURDIR)/../../../imxtools/sbtools
|
||||||
|
ELFTOSB=$(SBTOOLS)/elftosb
|
||||||
|
ELFTOSB1=$(SBTOOLS)/elftosb1
|
||||||
DEFINES=
|
DEFINES=
|
||||||
INCLUDES=-I$(CURDIR)
|
INCLUDES=-I$(CURDIR)
|
||||||
GCCOPTS=-mcpu=arm926ej-s
|
GCCOPTS=-mcpu=arm926ej-s
|
||||||
BUILD_DIR=$(CURDIR)/build/
|
BUILD_DIR=$(CURDIR)/build/
|
||||||
ROOT_DIR=$(CURDIR)/..
|
ROOT_DIR=$(CURDIR)/..
|
||||||
EXEC=$(BUILD_DIR)/hwstub.sb
|
EXEC=$(BUILD_DIR)/hwstub.sb $(BUILD_DIR)/hwstub.sb1
|
||||||
|
|
||||||
include ../hwstub.make
|
include ../hwstub.make
|
||||||
|
|
||||||
$(BUILD_DIR)/hwstub.sb: $(EXEC_BIN)
|
$(BUILD_DIR)/hwstub.sb: $(EXEC_BIN)
|
||||||
$(call PRINTS,SBTOELF $(@F))
|
$(call PRINTS,ELFTOSB $(@F))
|
||||||
$(SILENT)$(SBTOELF) -z -c hwstub.db -o $@ $<
|
$(SILENT)$(ELFTOSB) -z -c hwstub.db -o $@ $<
|
||||||
|
|
||||||
|
|
||||||
|
$(BUILD_DIR)/hwstub.sb1: $(EXEC_BIN)
|
||||||
|
$(call PRINTS,ELFTOSB1 $(@F))
|
||||||
|
$(SILENT)$(ELFTOSB1) -load-binary $< 0 -jump 0 -o $@
|
Loading…
Add table
Add a link
Reference in a new issue