mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
build, revisions and fixes for opendingux based platforms
This commit is contained in:
parent
a20af2f935
commit
250c8ffbc0
7 changed files with 52 additions and 52 deletions
25
Makefile
25
Makefile
|
@ -59,7 +59,7 @@ endif
|
|||
chkCCflag = $(shell n=/dev/null; echo $(1) | tr " " "\n" | while read f; do \
|
||||
$(CC) $$f -x c -c $$n -o $$n 2>$$n && echo "_$$f" | tr -d _; done)
|
||||
|
||||
ifeq ("$(PLATFORM)",$(filter "$(PLATFORM)","gp2x" "opendingux" "miyoo" "rpi1"))
|
||||
ifeq ("$(PLATFORM)",$(filter "$(PLATFORM)","gp2x" "opendingux" "rpi1"))
|
||||
# very small caches, avoid optimization options making the binary much bigger
|
||||
CFLAGS += -fno-common -finline-limit=42 -fno-unroll-loops -ffast-math
|
||||
CFLAGS += $(call chkCCflag, -fno-stack-protector)
|
||||
|
@ -136,11 +136,18 @@ $(TARGET)-dge.zip: .od_data
|
|||
all: $(TARGET)-dge.zip
|
||||
CFLAGS += -DSDL_SURFACE_SW # some legacy dinguces had bugs in HWSURFACE
|
||||
else
|
||||
ifneq (,$(filter %__MIYOO__, $(CFLAGS)))
|
||||
$(TARGET)-miyoo.zip: .od_data
|
||||
rm -f .od_data/default.*.desktop .od_data/PicoDrive.dge
|
||||
cd .od_data && zip -9 -r ../$@ *
|
||||
all: $(TARGET)-miyoo.zip
|
||||
else
|
||||
$(TARGET).opk: .od_data
|
||||
rm -f .od_data/PicoDrive.dge
|
||||
mksquashfs .od_data $@ -all-root -noappend -no-exports -no-xattrs
|
||||
all: $(TARGET).opk
|
||||
endif
|
||||
endif
|
||||
|
||||
ifneq (,$(filter %mips32r2, $(CFLAGS)))
|
||||
CFLAGS += -DMIPS_USE_SYNCI # mips32r2 clear_cache uses SYNCI instead of a syscall
|
||||
|
@ -152,22 +159,6 @@ use_inputmap ?= 1
|
|||
# OpenDingux is a generic platform, really.
|
||||
PLATFORM := generic
|
||||
endif
|
||||
ifeq "$(PLATFORM)" "miyoo"
|
||||
$(TARGET).zip: $(TARGET)
|
||||
$(RM) -rf .od_data
|
||||
mkdir .od_data
|
||||
cp -r platform/opendingux/data/. .od_data
|
||||
cp platform/game_def.cfg .od_data
|
||||
cp $< .od_data/PicoDrive
|
||||
$(STRIP) .od_data/PicoDrive
|
||||
rm -f .od_data/default.*.desktop .od_data/PicoDrive.dge
|
||||
cd .od_data && zip -9 -r ../$@ *
|
||||
all: $(TARGET).zip
|
||||
|
||||
OBJS += platform/opendingux/inputmap.o
|
||||
use_inputmap ?= 1
|
||||
PLATFORM := generic
|
||||
endif
|
||||
ifeq ("$(PLATFORM)",$(filter "$(PLATFORM)","rpi1" "rpi2"))
|
||||
CFLAGS += -DHAVE_GLES -DRASPBERRY
|
||||
CFLAGS += -I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads/ -I/opt/vc/include/interface/vmcs_host/linux/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue