bc25437448
Default toolchain can be overriden using PREFIX, for example: PREFIX=arm-none-eabi- make Change-Id: I06f5ad0ad492b9f648ccba853a851918644f0500
28 lines
No EOL
619 B
Makefile
28 lines
No EOL
619 B
Makefile
#
|
|
# common
|
|
#
|
|
PREFIX?=arm-elf-eabi-
|
|
CC=$(PREFIX)gcc
|
|
LD=$(PREFIX)gcc
|
|
AS=$(PREFIX)gcc
|
|
OC=$(PREFIX)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 $@
|