summaryrefslogtreecommitdiffstats
path: root/utils/hwstub
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-10-26 17:34:35 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2013-10-26 17:34:35 +0200
commit1085d15a3ed01807c3e55f36652c3a69c14bfc46 (patch)
treeb6466c2c6883962a30d6b977b7cd3ecc26508843 /utils/hwstub
parent2778e7613a013cd1cc8c2f21dc9dcd0d32279504 (diff)
downloadrockbox-1085d15a3ed01807c3e55f36652c3a69c14bfc46.tar.gz
rockbox-1085d15a3ed01807c3e55f36652c3a69c14bfc46.tar.bz2
rockbox-1085d15a3ed01807c3e55f36652c3a69c14bfc46.zip
hwstub: produce sb1 image too (for STMP3600)
Change-Id: Ib7f38fba1e524ed7438cdc395441d801c5eabcaa
Diffstat (limited to 'utils/hwstub')
-rw-r--r--utils/hwstub/stub/stmp/Makefile15
1 files changed, 11 insertions, 4 deletions
diff --git a/utils/hwstub/stub/stmp/Makefile b/utils/hwstub/stub/stmp/Makefile
index c06242aad5..006f4ea73f 100644
--- a/utils/hwstub/stub/stmp/Makefile
+++ b/utils/hwstub/stub/stmp/Makefile
@@ -5,16 +5,23 @@ CC=arm-elf-eabi-gcc
LD=arm-elf-eabi-gcc
AS=arm-elf-eabi-gcc
OC=arm-elf-eabi-objcopy
-SBTOELF=$(CURDIR)/../../../imxtools/sbtools/elftosb
+SBTOOLS=$(CURDIR)/../../../imxtools/sbtools
+ELFTOSB=$(SBTOOLS)/elftosb
+ELFTOSB1=$(SBTOOLS)/elftosb1
DEFINES=
INCLUDES=-I$(CURDIR)
GCCOPTS=-mcpu=arm926ej-s
BUILD_DIR=$(CURDIR)/build/
ROOT_DIR=$(CURDIR)/..
-EXEC=$(BUILD_DIR)/hwstub.sb
+EXEC=$(BUILD_DIR)/hwstub.sb $(BUILD_DIR)/hwstub.sb1
include ../hwstub.make
$(BUILD_DIR)/hwstub.sb: $(EXEC_BIN)
- $(call PRINTS,SBTOELF $(@F))
- $(SILENT)$(SBTOELF) -z -c hwstub.db -o $@ $<
+ $(call PRINTS,ELFTOSB $(@F))
+ $(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 $@ \ No newline at end of file