summaryrefslogtreecommitdiffstats
path: root/utils/hwstub/stub/jz4760b/Makefile
blob: 52595fc1c13d1275814a5335a571225112c7c490 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#
# common
#
PREFIX?=mipsel-elf-
CC=$(PREFIX)gcc
LD=$(PREFIX)gcc
AS=$(PREFIX)gcc
OC=$(PREFIX)objcopy
DEFINES=
INCLUDES=-I$(CURDIR)
GCCOPTS=-march=mips32 -G0
BUILD_DIR=$(CURDIR)/build/
ROOT_DIR=$(CURDIR)/..
JZ4760TOOLS=$(CURDIR)/../../../jz4760_tools
PACKTOOLS=$(JZ4760TOOLS)/packtools
EXEC=$(BUILD_DIR)/factory.x1

include ../hwstub.make

$(BUILD_DIR)/factory.x1: $(EXEC_BIN)
	$(call PRINTS,PACKTOOLS $(@F))
	$(SILENT)$(PACKTOOLS) --scramble -o $@ -i $<