Skip to content

Commit 4465d1d

Browse files
committed
Makefile: add gm2xpkg rule
and more cleanup
1 parent 6482bee commit 4465d1d

14 files changed

Lines changed: 88 additions & 223 deletions

Makefile

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Define compilation type
2-
#OSTYPE=msys
3-
#OSTYPE=oda320
4-
#OSTYPE=odgcw
5-
OSTYPE=miyoo
2+
#OSTYPE = msys
3+
#OSTYPE = oda320
4+
#OSTYPE = odgcw
5+
OSTYPE ?= miyoo
66

77
ifeq ($(OSTYPE), oda320)
88
PRGNAME = race-od
@@ -23,9 +23,11 @@ TOOLCHAIN = /opt/gcw0-toolchain/usr
2323
CC = $(TOOLCHAIN)/bin/mipsel-gcw0-linux-uclibc-gcc
2424
CCP = $(TOOLCHAIN)/bin/mipsel-gcw0-linux-uclibc-g++
2525
LD = $(TOOLCHAIN)/bin/mipsel-gcw0-linux-uclibc-g++
26-
else ifeq ($(OSTYPE), miyoo)
26+
else
27+
ifeq ($(OSTYPE), miyoo)
2728
CHAINPREFIX ?=/opt/miyoo
2829
CROSS_COMPILE ?= $(CHAINPREFIX)/usr/bin/arm-linux-
30+
endif
2931
CC = $(CROSS_COMPILE)gcc
3032
CXX = $(CROSS_COMPILE)g++
3133
STRIP = $(CROSS_COMPILE)strip
@@ -60,8 +62,10 @@ ifeq ($(OSTYPE), oda320)
6062
CC_OPTS = -Ofast -march=armv5te -mtune=arm926ej-s -msoft-float -DNOUNCRYPT $(F_OPTS)
6163
else ifeq ($(OSTYPE), miyoo)
6264
CC_OPTS = -Ofast -march=armv5te -mtune=arm926ej-s -msoft-float -DNOUNCRYPT $(F_OPTS)
63-
else
65+
else ifeq ($(OSTYPE), odgcw)
6466
CC_OPTS = -O2 -mips32 -mhard-float -G0 -DNOUNCRYPT $(F_OPTS)
67+
else
68+
CC_OPTS = -O2 $(F_OPTS)
6569
endif
6670
ifeq ($(OSTYPE), miyoo)
6771
CFLAGS = $(PKGS_CFLAGS) -D_OPENDINGUX_ -DZ80 -DTARGET_OD -D_MAX_PATH=2048 -DHOST_FPS=60 $(CC_OPTS)
@@ -96,5 +100,8 @@ endif
96100
release: $(PRGNAME)$(EXESUFFIX)
97101
$(STRIP) $(PRGNAME)$(EXESUFFIX)
98102

103+
ipk: release
104+
gm2xpkg -i -c pkg.cfg
105+
99106
clean:
100107
rm -f $(PRGNAME)$(EXESUFFIX) *.o

Makefile.gcw0

Lines changed: 0 additions & 78 deletions
This file was deleted.

Makefile.linux

Lines changed: 0 additions & 56 deletions
This file was deleted.

pkg.cfg

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# NOTES:
2+
## All variable values should be enclosed within double quotes: "<value>"
3+
## CONFIGURATION FILE for `gm2xpkg` script version:
4+
PKGVER="0.7"
5+
6+
# EXEC commands (set to "1" anyone for desired outcome), you can instead use [OPTIONS] of `gm2xpkg`:
7+
PACKAGE=""
8+
ZIP=""
9+
IPK=""
10+
CLEAN=""
11+
12+
# VERBOSE mode (insert "yes" to have more info)
13+
VERBOSE=""
14+
15+
# ENV VAR.
16+
## Specific (mandatory to provide!)
17+
TARGET="race" # [filepath], replace with target's working binary path (<path>/<file_name>)
18+
VERSION="" # [string], replace with correct release version if exist of target binary
19+
20+
## Generic - common to all apps (better to not modify)
21+
HOMEPATH="" # [dirpath], target device fullpath home directory for installation process
22+
RELEASEDIR="" # [dirpath], host package output directory, specified with [-p] option
23+
ASSETSDIR="" # [dirpath], host dir containg all the necessary assets for a target
24+
OPKG_ASSETSDIR="" # [dirpath], host dir containg the ./CONTROL directory with [control, preinst, postinst] files, auto-generated if not provided (warning: it may be removed with CLEAN=1)
25+
LINK="" # [filepath], host path to custom gm2x link, modify if you want to use your pre-edited *.lnk file (warning: it may be removed with CLEAN=1)
26+
ALIASES="" # [filepath], host path to *.txt file holding new names for selector e.g. old_title=new_title
27+
MANUAL="race-od.man.txt" # [filepath], host path to *.man.txt file holding usage description of target app
28+
29+
## Link entries (better modify if no <target_name>.lnk file provided)
30+
### Primary
31+
TITLE="" # [string], program title
32+
DESCRI="" # [string], short description
33+
DESTDIR="" # [string], (default="apps") installation pathname in target device $HOMEPATH directory - not a link entry
34+
SECTION="" # [string], (default="applications") section in menu
35+
### Additional
36+
SELDIR="/mnt/roms/NGP/" # [dirpath], target device fullpath search directory (activates selector, don't append path with "/" to use AUTO selectorelement mode)
37+
SELBROWSER="" # [bool], (default="true") don't show directories in selector browser with "false" - aka "Show Folders" option
38+
SELFILTER=".ngp,.npc,.ngc" # [string], activates FileFilter in selector e.g. =".gba,.zip"
39+
SELSCREENS="" # [dirpath], target fullpath Boxarts' directory in selector
40+
ICON="" # [filepath], target fullpath to icon being used in menu (instead of default)
41+
BACKDROP="" # [filepath], target fullpath to backdrop being displayed under icon in menu (default="" thus OFF)
42+
PARAMS="" # [string], parameters (options; args) being passed to execution cmd
43+
### HW Specific
44+
CLOCK="" # [int], CPU frequency in MHz
45+
LAYOUT="" # [int], SDL Keyboard (face buttons) layout
46+
TEFIX="" # [int], Tearing FIX method
47+
48+
## Custom entries (if needed then modify)
49+
TARGET_DIR="" # [dirpath], target device install directory $HOMEPATH/$DESTDIR/$TARGET_DIR of executable binary (default TARGET_DIR=$(basename $TARGET))
50+
TARGET_EXEC="" # [string], the executable <file_name> that's being used by frontend when running an app from $TARGET_DIR, for e.g. may be a custom script (default TARGET_EXEC=$(basename $TARGET))
51+
DOCS=("License.txt") # [array] of filepaths to extra text files e.g. =("docs/LICENSE" "CHANGELOG" "CONTRIBUTORS") which will be copied & converted to *.txt files for ease of use by frontend and placed in $TARGET_DIR
52+
53+
## IPK control entries (if needed then modify)
54+
PKG="" # default=$TARGET - name of the opkg package
55+
PRIORITY=""
56+
MAINTAINER=""
57+
CONFFILES=""
58+
ARCH="" # default=arm - do not modify for ARM chips
59+
# CONTROL= # automated output of *.ipk control config file
60+
DEPENDS="" # list of dependency packages e.g. ="sdl, libpng" or ="sdl (>= 2.9.2), sdl_mixer (= ed76d39cda0735d26c14a3e4f4da996e420f6478)" provide only for shared libs build, otherwise ignored (run "readelf -d $TARGET | grep NEEDED" to bisect)
61+
SOURCE=""
62+
LICENSE=""
Lines changed: 13 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,11 @@
1-
Race for OD V1.0
1+
RACE!
22
--------------------------------------------------------------------------------
3-
This is a NeoGeo Pocket emulator for Open Dingux.
3+
This is a NeoGeo Pocket emulator for MiyooCFW.
44
To use this emulator, you must have compatibles ROMS with .NGP & .NGC extension.
5-
Do not ask me about ROMS, I don't have them. A search with Google will certainly help
6-
you.
75

8-
Features :
9-
----------
10-
Most things you should expect from an emulator.
11-
12-
Missing :
13-
---------
14-
Just tell me :).
15-
16-
Check updates on my web site :
17-
http://www.portabledev.com
18-
19-
--------------------------------------------------------------------------------
20-
List of emulated games
21-
--------------------------------------------------------------------------------
22-
Lots of the NeoGeo POcket games ;), except Metal Slug2 yet :(
23-
24-
--------------------------------------------------------------------------------
25-
History :
266
--------------------------------------------------------------------------------
27-
V1.0 : 17/10/2012
28-
Initiale release
29-
30-
--------------------------------------------------------------------------------
31-
How to use ProSystem :
32-
--------------------------------------------------------------------------------
33-
Put race-od.dge to "emulator" folder of inner flash-memory of your handheld.
34-
Put your .NGC & .NGP games where you want.
35-
367
Controls :
8+
--------------------------------------------------------------------------------
379
* Direction pad : Neogeo Pocket pad
3810
* A is button #1
3911
* B is button #2
@@ -43,20 +15,24 @@ Controls :
4315
* Y is button #2
4416
* R is button #1
4517
* L is button #2
46-
47-
Use START + SELECT to enter menu.
18+
* START + SELECT to enter menu.
4819
During menu browsing, R and L can go through pages of available games.
4920

21+
--------------------------------------------------------------------------------
22+
Changelog :
23+
--------------------------------------------------------------------------------
24+
V1.0 : 17/10/2012
25+
Initiale release
26+
5027
--------------------------------------------------------------------------------
5128
Credits
5229
--------------------------------------------------------------------------------
5330
Special thanks to :
5431
Judge_ for Race source code (http://www.personal.triticom.com/~erm/GP2X/).
55-
d_smargin for handy_a320 gui, which i used some part of code for race-od gui.
32+
d_smargin for handy_a320 gui, which have been used some part of code for race-od gui.
5633
qbertaddict for test.
34+
Alekmaul - alekmaul@portabledev.com (OD port)
5735
Without the help of the infos from these people, this emulator can't be here.
5836
--------------------------------------------------------------------------------
59-
Alekmaul
60-
alekmaul@portabledev.com
61-
http://www.portabledev.com
37+
Apaczer - apaczer.git@gmail.com (MiyooCFW port)
6238
--------------------------------------------------------------------------------

race-od/backdrop.png

-29.6 KB
Binary file not shown.

race-od/conffiles

Lines changed: 0 additions & 2 deletions
This file was deleted.

race-od/control

Lines changed: 0 additions & 10 deletions
This file was deleted.

race-od/default.retrofw.desktop

Lines changed: 0 additions & 11 deletions
This file was deleted.

race-od/ngp.race-od.lnk

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)