66aa00d3e0
This is an improvement for the special mode present in the samsung ypr0 target. Apart adding new useful functionalities, it fixes a random disconnection bug, solved by debouncing and fully support to YP-R1 target. This opens also the possibility to interface this operating mode to rockbox USB functionality. Change-Id: Id70541541fcfaa1234328485fab0696a3bd491c9
41 lines
1.3 KiB
Makefile
41 lines
1.3 KiB
Makefile
.PHONY: all clean dirs bmp2rb
|
|
CFLAGS += -O1 -g -std=c99 -W -Wall $(DEFINES)
|
|
PROGS = bmp2rb fwcrypt fwdecrypt
|
|
CROSS_COMPILE = arm-ypr0-linux-gnueabi-
|
|
R1_SAFEMODE_DIR = files/r1/etc/safemode
|
|
R0_SAFEMODE_DIR = files/r0/etc/safemode
|
|
DIRS = $(R1_SAFEMODE_DIR) $(R0_SAFEMODE_DIR)
|
|
R1_IMAGES = $(subst .bmp,.raw,$(addprefix $(R1_SAFEMODE_DIR)/,$(notdir $(wildcard files/images/r1/*.bmp))))
|
|
R0_IMAGES = $(subst .bmp,.raw,$(addprefix $(R0_SAFEMODE_DIR)/,$(notdir $(wildcard files/images/r0/*.bmp))))
|
|
BMP2RB = ../../tools/bmp2rb
|
|
|
|
all: $(R1_SAFEMODE_DIR)/cable_detect $(PROGS) $(R1_IMAGES) $(R0_IMAGES)
|
|
$(MAKE) -C cramfs-1.1
|
|
|
|
fwdecrypt: fwdecrypt.o common.o ../../tools/fwpatcher/md5.o
|
|
|
|
fwcrypt: fwcrypt.o common.o ../../tools/fwpatcher/md5.o
|
|
|
|
$(BMP2RB):
|
|
$(MAKE) -C ../../tools/ bmp2rb
|
|
|
|
$(R1_SAFEMODE_DIR)/cable_detect: cable_detect.c $(R1_SAFEMODE_DIR)
|
|
$(CROSS_COMPILE)$(CC) $(CFLAGS) $< -o $@
|
|
|
|
$(R1_SAFEMODE_DIR)/%.raw: files/images/r1/%.bmp $(BMP2RB) $(R1_SAFEMODE_DIR)
|
|
$(BMP2RB) -r -f 9 $< > $@
|
|
|
|
$(R0_SAFEMODE_DIR)/%.raw: files/images/r0/%.bmp $(BMP2RB) $(R0_SAFEMODE_DIR)
|
|
$(BMP2RB) -r -f 9 $< > $@
|
|
|
|
$(DIRS):
|
|
$(SILENT)mkdir -p $@
|
|
|
|
dirs: $(DIRS)
|
|
|
|
bmp2rb: $(BMP2RB)
|
|
|
|
clean:
|
|
$(MAKE) -C cramfs-1.1 clean
|
|
rm -f *.o fwdecrypt fwcrypt
|
|
rm -rf $(R1_SAFEMODE_DIR)/../../etc $(R0_SAFEMODE_DIR)/../../etc
|