From 458ddcc5ee5256f241a09f7f789a7ecfe313c00e Mon Sep 17 00:00:00 2001 From: Apaczer <94932128+Apaczer@users.noreply.github.com> Date: Tue, 19 Aug 2025 22:37:22 +0200 Subject: [PATCH] MIYOO: add ipk package `make ipk` --- Makefile | 4 ++++ miyoo/pkg.cfg | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 miyoo/pkg.cfg diff --git a/Makefile b/Makefile index 99f30914..6be3537f 100644 --- a/Makefile +++ b/Makefile @@ -601,6 +601,10 @@ rel: pcsx $(PLUGINS) \ mkdir out/pcsx_rearmed/lib/ mkdir out/pcsx_rearmed/bios/ cd out && zip -9 -r ../pcsx_rearmed_$(VER)_miyoo.zip * + +ipk: rel + VERSION="$(VER)" gm2xpkg -q -f miyoo/pkg.cfg + mv pcsx.ipk pcsx_rearmed.ipk endif ifeq "$(PLATFORM)" "caanoo" diff --git a/miyoo/pkg.cfg b/miyoo/pkg.cfg new file mode 100644 index 00000000..ca33673a --- /dev/null +++ b/miyoo/pkg.cfg @@ -0,0 +1,62 @@ +# NOTES: +## All variable values should be enclosed within double quotes: "" +## CONFIGURATION FILE for `gm2xpkg` script version: +PKGVER="0.9" + +# EXEC commands (set to "1" anyone for desired outcome), you can instead use [OPTIONS] of `gm2xpkg`: +PACKAGE="" +ZIP="" +IPK="1" +CLEAN="1" + +# VERBOSE mode (insert "yes" to have more info) +VERBOSE="" + +# ENV VAR. +## Specific (mandatory to provide!) +TARGET="pcsx" # [filepath], replace with target's working binary path (/) +VERSION="${VERSION}" # [string], replace with correct release version if exist of target binary + +## Generic - common to all apps (better to not modify) +HOMEPATH="" # [dirpath], target device fullpath home directory for installation process +RELEASEDIR="" # [dirpath], host package output directory, specified with [-p] option +ASSETSDIR="out/pcsx_rearmed" # [dirpath], host dir containg all the necessary assets for a target +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) +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) +ALIASES="" # [filepath], host path to *.txt file holding new names for selector e.g. old_title=new_title +MANUAL="" # [filepath], host path to *.man.txt file holding usage description of target app + +## Link entries (better modify if no .lnk file provided) +### Primary +TITLE="PCSX-ReARMed" # [string], program title +DESCRI="Playstation 1 Emulator" # [string], short description +DESTDIR="emus" # [string], (default="apps") installation pathname in target device $HOMEPATH directory - not a link entry +SECTION="emulators" # [string], (default="applications") section in menu +### Additional +SELDIR="/mnt/roms/PS1" # [dirpath], target device fullpath search directory (activates selector, don't append path with "/" to use AUTO selectorelement mode) +SELBROWSER="" # [bool], (default="true") don't show directories in selector browser with "false" - aka "Show Folders" option +SELFILTER=".bin,.cue,.img,.mdf,.pbp,.toc,.cbn,.m3u,.ccd,.chd,.iso,.exe" # [string], activates FileFilter in selector e.g. =".gba,.zip" +SELSCREENS="" # [dirpath], target fullpath Boxarts' directory in selector +ICON="" # [filepath], target fullpath to icon being used in menu (instead of default) +BACKDROP="" # [filepath], target fullpath to backdrop being displayed under icon in menu (default="" thus OFF) +PARAMS="-cdfile" # [string], parameters (options; args) being passed to execution cmd +### HW Specific +CLOCK="" # [int], CPU frequency in MHz +LAYOUT="" # [int], SDL Keyboard (face buttons) layout +TEFIX="" # [int], Tearing FIX method + +## Custom entries (if needed then modify) +TARGET_DIR="pcsx_rearmed" # [dirpath], target device install directory $HOMEPATH/$DESTDIR/$TARGET_DIR of executable binary (default TARGET_DIR=$(basename $TARGET)) +TARGET_EXEC="" # [string], the executable 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)) +DOCS=() # [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 + +## IPK control entries (if needed then modify) +PKG="pcsx_rearmed" # default=$TARGET - name of the opkg package +PRIORITY="" +MAINTAINER="notaz" +CONFFILES="" +ARCH="arm" # default=arm - do not modify for ARM chips +# CONTROL= # automated output of *.ipk control config file +DEPENDS="sdl" # 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) +SOURCE="https://github.com/notaz/pcsx_rearmed" +LICENSE="GPL-2.0" -- 2.47.2