Add support for the OpenDingux platform

This commit is contained in:
Paul Cercueil 2013-10-07 21:06:54 +02:00 committed by notaz
parent 4e3551a5f6
commit d4bea61c8f
12 changed files with 105 additions and 5 deletions

View file

@ -55,7 +55,21 @@ asm_cdpico = 0
asm_cdmemory = 0
endif
# frontend
ifeq "$(PLATFORM)" "opendingux"
opk: $(TARGET).opk
$(TARGET).opk: $(TARGET)
$(RM) -rf .opk_data
cp -r platform/opendingux/data .opk_data
cp $< .opk_data/PicoDrive
$(STRIP) .opk_data/PicoDrive
mksquashfs .opk_data $@ -all-root -noappend -no-exports -no-xattrs
OBJS += platform/opendingux/inputmap.o
# OpenDingux is a generic platform, really.
PLATFORM := generic
endif
ifeq "$(PLATFORM)" "generic"
OBJS += platform/linux/emu.o platform/linux/blit.o # FIXME
OBJS += platform/common/plat_sdl.o
@ -156,6 +170,7 @@ target_: $(TARGET)
clean:
$(RM) $(TARGET) $(OBJS)
$(RM) -r .opk_data
$(TARGET): $(OBJS)
$(CC) -o $@ $(CFLAGS) $^ $(LDFLAGS) $(LDLIBS)