adding RG350 platform

squashed commits:
RG350用のキーマップを作った
opkのコマンドライン起動のエラー修正
mingw挑戦途中
This commit is contained in:
hiroshica 2020-02-26 22:13:15 +09:00 committed by kub
parent 2e66d031fe
commit 95cb712a52
4 changed files with 47 additions and 7 deletions

View file

@ -34,6 +34,7 @@ gp2x,wiz,caanoo|open2x with ubuntu arm gcc 4.7|CROSS_COMPILE=arm-linux-gnueabi-
opendingux|opendingux|CROSS_COMPILE=mipsel-linux- CFLAGS="-I$TC/usr/include -I$TC/usr/include/SDL" LDFLAGS="--sysroot $TC -L$TC/lib" ./configure --platform=opendingux opendingux|opendingux|CROSS_COMPILE=mipsel-linux- CFLAGS="-I$TC/usr/include -I$TC/usr/include/SDL" LDFLAGS="--sysroot $TC -L$TC/lib" ./configure --platform=opendingux
opendingux|opendingux with ubuntu mips gcc 5.4|CROSS_COMPILE=mipsel-linux-gnu- CFLAGS="-I$TC/usr/include -I$TC/usr/include/SDL" LDFLAGS="-B$TC/usr/lib -B$TC/lib -Wl,-rpath-link=$TC/usr/lib -Wl,-rpath-link=$TC/lib" ./configure --platform=opendingux opendingux|opendingux with ubuntu mips gcc 5.4|CROSS_COMPILE=mipsel-linux-gnu- CFLAGS="-I$TC/usr/include -I$TC/usr/include/SDL" LDFLAGS="-B$TC/usr/lib -B$TC/lib -Wl,-rpath-link=$TC/usr/lib -Wl,-rpath-link=$TC/lib" ./configure --platform=opendingux
gcw0|gcw0|CROSS_COMPILE=mipsel-gcw0-linux-uclibc- CFLAGS="-I$TC/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include -I$TC/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL" LDFLAGS="--sysroot $TC/usr/mipsel-gcw0-linux-uclibc/sysroot" ./configure --platform=gcw0 gcw0|gcw0|CROSS_COMPILE=mipsel-gcw0-linux-uclibc- CFLAGS="-I$TC/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include -I$TC/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL" LDFLAGS="--sysroot $TC/usr/mipsel-gcw0-linux-uclibc/sysroot" ./configure --platform=gcw0
rg350|rg350|CROSS_COMPILE=mipsel-linux- CFLAGS="-I$TC/usr/include -I$TC/usr/include/SDL" LDFLAGS="--sysroot $TC -L$TC/lib" ./configure --platform=rg350
For gp2x, wiz, and caanoo you may need to compile libpng first. For gp2x, wiz, and caanoo you may need to compile libpng first.

15
configure vendored
View file

@ -38,7 +38,7 @@ check_define()
# setting options to "yes" or "no" will make that choice default, # setting options to "yes" or "no" will make that choice default,
# "" means "autodetect". # "" means "autodetect".
platform_list="generic pandora gp2x wiz caanoo opendingux gcw0 rpi1 rpi2" platform_list="generic pandora gp2x wiz caanoo opendingux gcw0 rg350 rpi1 rpi2"
platform="generic" platform="generic"
sound_driver_list="oss alsa sdl" sound_driver_list="oss alsa sdl"
sound_drivers="" sound_drivers=""
@ -62,7 +62,12 @@ CC="${CC-${CROSS_COMPILE}gcc}"
CXX="${CXX-${CROSS_COMPILE}g++}" CXX="${CXX-${CROSS_COMPILE}g++}"
AS="${AS-${CROSS_COMPILE}as}" AS="${AS-${CROSS_COMPILE}as}"
STRIP="${STRIP-${CROSS_COMPILE}strip}" STRIP="${STRIP-${CROSS_COMPILE}strip}"
test -n "$SDL_CONFIG" || SDL_CONFIG="`$CC $CFLAGS $LDFLAGS --print-sysroot 2> /dev/null || true`/usr/bin/sdl-config" SYSROOT=`$CC $CFLAGS $LDFLAGS --print-sysroot 2> /dev/null || true`
test -n "$SDL_CONFIG" || SDL_CONFIG="$(ls $SYSROOT/*bin*/sdl-config 2>/dev/null | grep /bin/sdl-config | head -n 1)"
test -n "$SDL_CONFIG" || SDL_CONFIG="$(ls $SYSROOT/*/*bin*/sdl-config 2>/dev/null | grep /bin/sdl-config | head -n 1)"
#test -n "$SDL_CONFIG" || SDL_CONFIG="$(ls $SYSROOT/*bin*/sdl2-config 2>/dev/null | grep /bin/sdl2-config | head -n 1)"
#test -n "$SDL_CONFIG" || SDL_CONFIG="$(ls $SYSROOT/*/*bin*/sdl2-config 2>/dev/null | grep /bin/sdl2-config | head -n 1)"
SDLVERSION=sdl && echo $SDL_CONFIG | grep -q sdl2 && SDLVERSION=sdl2
MAIN_LDLIBS="$LDLIBS -lm" MAIN_LDLIBS="$LDLIBS -lm"
config_mak="config.mak" config_mak="config.mak"
@ -86,9 +91,10 @@ set_platform()
;; ;;
generic) generic)
;; ;;
opendingux | gcw0) opendingux | gcw0 | rg350)
sound_drivers="sdl" sound_drivers="sdl"
# both are really an opendingux # both are really an opendingux
CFLAGS="$CFLAGS -D__`echo $platform | tr '[a-z]' '[A-Z]'`__"
platform="opendingux" platform="opendingux"
;; ;;
pandora) pandora)
@ -376,6 +382,9 @@ if [ "$need_sdl" = "yes" ]; then
CFLAGS="$CFLAGS `$SDL_CONFIG --cflags`" CFLAGS="$CFLAGS `$SDL_CONFIG --cflags`"
MAIN_LDLIBS="`$SDL_CONFIG --libs` $MAIN_LDLIBS" MAIN_LDLIBS="`$SDL_CONFIG --libs` $MAIN_LDLIBS"
check_sdl `$SDL_CONFIG --libs` || fail "please install libsdl (libsdl1.2-dev)" check_sdl `$SDL_CONFIG --libs` || fail "please install libsdl (libsdl1.2-dev)"
if [ "$SDLVERSION" = "sdl2" ]; then
CFLAGS="$CFLAGS -D__USE_SDL2__"
fi
fi fi
if check_option -Wno-unused_result; then if check_option -Wno-unused_result; then

View file

@ -1,9 +1,9 @@
[Desktop Entry] [Desktop Entry]
Type=Application
Name=Picodrive Name=Picodrive
Comment=A megadrive/genesis emulator Comment=A megadrive/genesis emulator
Exec=PicoDrive Exec=PicoDrive %f
Terminal=false
Type=Application
StartupNotify=true
Icon=megadrive Icon=megadrive
Terminal=false
Categories=emulators; Categories=emulators;
MimeType=.md;.smd;.bin;.sms;.cue;.32x;.zip;.7z

View file

@ -37,6 +37,7 @@ const struct menu_keymap in_sdl_key_map[] =
{ SDLK_BACKSPACE, PBTN_R }, { SDLK_BACKSPACE, PBTN_R },
}; };
#if !defined(__RG350__)
const char * const in_sdl_key_names[SDLK_LAST] = { const char * const in_sdl_key_names[SDLK_LAST] = {
[SDLK_UP] = "UP", [SDLK_UP] = "UP",
[SDLK_DOWN] = "DOWN", [SDLK_DOWN] = "DOWN",
@ -52,4 +53,33 @@ const char * const in_sdl_key_names[SDLK_LAST] = {
[SDLK_ESCAPE] = "SELECT", [SDLK_ESCAPE] = "SELECT",
[SDLK_POWER] = "POWER", [SDLK_POWER] = "POWER",
[SDLK_PAUSE] = "LOCK", [SDLK_PAUSE] = "LOCK",
[SDLK_PAGEUP] = "L2",
[SDLK_PAGEDOWN] = "R2",
[SDLK_KP_DIVIDE] = "L3",
[SDLK_KP_PERIOD] = "R3",
}; };
#else
/* RG 350 */
const char * const in_sdl_key_names[SDLK_LAST] = {
[SDLK_UP] = "UP",
[SDLK_DOWN] = "DOWN",
[SDLK_LEFT] = "LEFT",
[SDLK_RIGHT] = "RIGHT",
[SDLK_LCTRL] = "A",
[SDLK_LALT] = "B",
[SDLK_SPACE] = "X",
[SDLK_LSHIFT] = "Y",
[SDLK_TAB] = "L",
[SDLK_BACKSPACE] = "R",
[SDLK_RETURN] = "START",
[SDLK_ESCAPE] = "SELECT",
[SDLK_HOME] = "POWER",
[SDLK_PAUSE] = "LOCK",
[SDLK_PAGEUP] = "L2",
[SDLK_PAGEDOWN] = "R2",
[SDLK_KP_DIVIDE] = "L3",
[SDLK_KP_PERIOD] = "R3",
};
#endif