summaryrefslogtreecommitdiffstats
path: root/utils/hwstub/stub/stmp/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'utils/hwstub/stub/stmp/Makefile')
-rw-r--r--utils/hwstub/stub/stmp/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/utils/hwstub/stub/stmp/Makefile b/utils/hwstub/stub/stmp/Makefile
index 14e6d0fbba..3ac7e3bbd4 100644
--- a/utils/hwstub/stub/stmp/Makefile
+++ b/utils/hwstub/stub/stmp/Makefile
@@ -5,10 +5,16 @@ 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
DEFINES=
INCLUDES=-I$(CURDIR)
GCCOPTS=-mcpu=arm926ej-s
BUILD_DIR=$(CURDIR)/build/
ROOT_DIR=$(CURDIR)/..
-
-include ../hwstub.make \ No newline at end of file
+EXEC=$(BUILD_DIR)/hwstub.sb
+
+include ../hwstub.make
+
+$(BUILD_DIR)/hwstub.sb: $(EXEC_BIN)
+ $(call PRINTS,SBTOELF $(@F))
+ $(SILENT)$(SBTOELF) -z -c hwstub.db -o $@ $< \ No newline at end of file