rockbox/utils/hwstub/stub/jz4760b/Makefile
Amaury Pouly cc2389b7a6 hwstub: add jz4760b stub
The stub is quite versatile: it can be loaded using bootrom or another other
means (like factory boot on Fiio X1). It relocates itself to TCSM0 and provides
basic functionality (it does not recover from failed read/writes at the moment).

Change-Id: Ib646a4b43fba9358d6f93f0f73a5c2e9bcd775a7
2017-01-24 15:22:27 +01:00

22 lines
454 B
Makefile

#
# 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 $<