diff options
Diffstat (limited to 'utils/hwstub/stub/jz4760b/Makefile')
-rw-r--r-- | utils/hwstub/stub/jz4760b/Makefile | 22 |
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 | # | ||
4 | PREFIX?=mipsel-elf- | ||
5 | CC=$(PREFIX)gcc | ||
6 | LD=$(PREFIX)gcc | ||
7 | AS=$(PREFIX)gcc | ||
8 | OC=$(PREFIX)objcopy | ||
9 | DEFINES= | ||
10 | INCLUDES=-I$(CURDIR) | ||
11 | GCCOPTS=-march=mips32 -G0 | ||
12 | BUILD_DIR=$(CURDIR)/build/ | ||
13 | ROOT_DIR=$(CURDIR)/.. | ||
14 | JZ4760TOOLS=$(CURDIR)/../../../jz4760_tools | ||
15 | PACKTOOLS=$(JZ4760TOOLS)/packtools | ||
16 | EXEC=$(BUILD_DIR)/factory.x1 | ||
17 | |||
18 | include ../hwstub.make | ||
19 | |||
20 | $(BUILD_DIR)/factory.x1: $(EXEC_BIN) | ||
21 | $(call PRINTS,PACKTOOLS $(@F)) | ||
22 | $(SILENT)$(PACKTOOLS) --scramble -o $@ -i $< | ||