summaryrefslogtreecommitdiffstats
path: root/utils/hwstub/stub/stmp/Makefile
blob: 006f4ea73f717b3ce419a425f13a46febc91bc2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#
# common
#
CC=arm-elf-eabi-gcc
LD=arm-elf-eabi-gcc
AS=arm-elf-eabi-gcc
OC=arm-elf-eabi-objcopy
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 $(BUILD_DIR)/hwstub.sb1

include ../hwstub.make

$(BUILD_DIR)/hwstub.sb: $(EXEC_BIN)
	$(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 $@