forked from len0rd/rockbox
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
This commit is contained in:
parent
d7c71a3fe8
commit
cc2389b7a6
11 changed files with 13307 additions and 0 deletions
22
utils/hwstub/stub/jz4760b/Makefile
Normal file
22
utils/hwstub/stub/jz4760b/Makefile
Normal file
|
|
@ -0,0 +1,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 $<
|
||||
Loading…
Add table
Add a link
Reference in a new issue