2013-07-13 15:35:53 +00:00
|
|
|
#
|
|
|
|
# common
|
|
|
|
#
|
2015-09-29 20:49:02 +00:00
|
|
|
PREFIX?=arm-elf-eabi-
|
|
|
|
CC=$(PREFIX)gcc
|
|
|
|
LD=$(PREFIX)gcc
|
|
|
|
AS=$(PREFIX)gcc
|
|
|
|
OC=$(PREFIX)objcopy
|
2013-10-26 15:34:35 +00:00
|
|
|
SBTOOLS=$(CURDIR)/../../../imxtools/sbtools
|
|
|
|
ELFTOSB=$(SBTOOLS)/elftosb
|
|
|
|
ELFTOSB1=$(SBTOOLS)/elftosb1
|
2013-07-13 15:35:53 +00:00
|
|
|
DEFINES=
|
|
|
|
INCLUDES=-I$(CURDIR)
|
|
|
|
GCCOPTS=-mcpu=arm926ej-s
|
|
|
|
BUILD_DIR=$(CURDIR)/build/
|
|
|
|
ROOT_DIR=$(CURDIR)/..
|
2013-10-26 15:34:35 +00:00
|
|
|
EXEC=$(BUILD_DIR)/hwstub.sb $(BUILD_DIR)/hwstub.sb1
|
2013-09-10 21:07:40 +00:00
|
|
|
|
|
|
|
include ../hwstub.make
|
|
|
|
|
|
|
|
$(BUILD_DIR)/hwstub.sb: $(EXEC_BIN)
|
2013-10-26 15:34:35 +00:00
|
|
|
$(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 $@
|