Added FunKey-Emulator-picodrive
This commit is contained in:
parent
83e2d4ee49
commit
8ab7ca124d
|
@ -4,3 +4,4 @@ source "$BR2_EXTERNAL_FUNKEY_PATH/package/retrofe/Config.in"
|
|||
source "$BR2_EXTERNAL_FUNKEY_PATH/package/PCSX-ReARMed/Config.in"
|
||||
source "$BR2_EXTERNAL_FUNKEY_PATH/package/FCEUX/Config.in"
|
||||
source "$BR2_EXTERNAL_FUNKEY_PATH/package/gnuboy/Config.in"
|
||||
source "$BR2_EXTERNAL_FUNKEY_PATH/package/picodrive/Config.in"
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
config BR2_PACKAGE_PICODRIVE
|
||||
bool "picodrive"
|
||||
default y
|
||||
select BR2_PACKAGE_SDL
|
||||
select BR2_PACKAGE_SDL_IMAGE
|
||||
select BR2_PACKAGE_SDL_MIXER
|
||||
select BR2_PACKAGE_SDL_TTF
|
||||
select BR2_PACKAGE_ZLIB
|
||||
help
|
||||
This is yet another Megadrive / Genesis / Sega CD / Mega CD /
|
||||
32X / SMS emulator, which was written having ARM-based
|
||||
handheld devices in mind (such as smartphones and handheld
|
||||
consoles like GP2X and Pandora), but also runs on non-ARM
|
||||
little-endian hardware too.
|
||||
|
||||
|
||||
https://github.com/notaz/picodrive
|
|
@ -0,0 +1,64 @@
|
|||
################################################################################
|
||||
#
|
||||
# picodrive
|
||||
#
|
||||
################################################################################
|
||||
|
||||
PICODRIVE_VERSION = 863b75d0e3191118d7f0527a2320724f2a988fe6
|
||||
PICODRIVE_SITE_METHOD = git
|
||||
PICODRIVE_SITE = ssh://git@fk/FunKey-Project/FunKey-Emulator-picodrive
|
||||
PICODRIVE_LICENSE = MAME
|
||||
PICODRIVE_LICENSE_FILES = COPYING
|
||||
|
||||
PICODRIVE_DEPENDENCIES = sdl sdl_image sdl_mixer sdl_ttf zlib
|
||||
|
||||
PICODRIVE_CFLAGS = $(TARGET_CFLAGS)
|
||||
|
||||
ifeq ($(BR2_ARM_CPU_ARMV7A),y)
|
||||
PICODRIVE_CFLAGS += -march=armv7-a
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_GCC_TARGET_CPU),"cortex-a7")
|
||||
PICODRIVE_CFLAGS += -mtune=cortex-a7
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_GCC_TARGET_FLOAT_ABI),"hard")
|
||||
PICODRIVE_CFLAGS += -mfloat-abi=hard -ffast-math -funsafe-math-optimizations
|
||||
else ifeq ($(BR2_GCC_TARGET_FLOAT_ABI),"soft")
|
||||
PICODRIVE_CFLAGS += -mfloat-abi=soft -ffast-math -funsafe-math-optimizations
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_ARM_CPU_HAS_NEON),y)
|
||||
PICODRIVE_CFLAGS += -D__ARM_NEON__ -mfpu=neon -mvectorize-with-neon-quad
|
||||
endif
|
||||
|
||||
PICODRIVE_CONF_OPTS += --platform=generic --sound-drivers=sdl
|
||||
PICODRIVE_CFLAGS += -ggdb -O3
|
||||
|
||||
PICODRIVE_LIBS += -lSDL_image -lSDL_ttf
|
||||
|
||||
define PICODRIVE_CONFIGURE_CMDS
|
||||
(cd $(@D); \
|
||||
chmod +x configure; \
|
||||
sed -i -e 's/-mcpu/-mtune/g' configure; \
|
||||
CFLAGS='$(PICODRIVE_CFLAGS)' \
|
||||
CROSS_COMPILE=$(TARGET_CROSS) \
|
||||
LDFLAGS='-L$(TARGET_DIR)/usr/lib' \
|
||||
LDLIBS='$(PICODRIVE_LIBS)'\
|
||||
./configure $(PICODRIVE_CONF_OPTS) \
|
||||
)
|
||||
endef
|
||||
|
||||
define PICODRIVE_BUILD_CMDS
|
||||
(cd $(@D); \
|
||||
make \
|
||||
)
|
||||
endef
|
||||
|
||||
define PICODRIVE_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/games
|
||||
$(INSTALL) -m 0755 $(@D)/PicoDriveBin $(TARGET_DIR)/usr/games/PicoDriveBin
|
||||
endef
|
||||
|
||||
|
||||
$(eval $(generic-package))
|
Loading…
Reference in New Issue