summaryrefslogtreecommitdiff
path: root/utils/hwstub/stub/jz4760b/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'utils/hwstub/stub/jz4760b/Makefile')
-rw-r--r--utils/hwstub/stub/jz4760b/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/utils/hwstub/stub/jz4760b/Makefile b/utils/hwstub/stub/jz4760b/Makefile
new file mode 100644
index 0000000000..52595fc1c1
--- /dev/null
+++ b/utils/hwstub/stub/jz4760b/Makefile
@@ -0,0 +1,22 @@
1#
2# common
3#
4PREFIX?=mipsel-elf-
5CC=$(PREFIX)gcc
6LD=$(PREFIX)gcc
7AS=$(PREFIX)gcc
8OC=$(PREFIX)objcopy
9DEFINES=
10INCLUDES=-I$(CURDIR)
11GCCOPTS=-march=mips32 -G0
12BUILD_DIR=$(CURDIR)/build/
13ROOT_DIR=$(CURDIR)/..
14JZ4760TOOLS=$(CURDIR)/../../../jz4760_tools
15PACKTOOLS=$(JZ4760TOOLS)/packtools
16EXEC=$(BUILD_DIR)/factory.x1
17
18include ../hwstub.make
19
20$(BUILD_DIR)/factory.x1: $(EXEC_BIN)
21 $(call PRINTS,PACKTOOLS $(@F))
22 $(SILENT)$(PACKTOOLS) --scramble -o $@ -i $<