create opk during build

Signed-off-by: Michel-FK <michel.stempin@funkey-project.com>
This commit is contained in:
Michel-FK
2020-12-11 23:37:33 +01:00
parent 342457cf01
commit 4cdd246fac
48 changed files with 194 additions and 91 deletions

View File

@@ -65,5 +65,10 @@ define FCEUX_INSTALL_TARGET_CMDS
$(INSTALL) -m 0755 $(@D)/fceux/fceux $(TARGET_DIR)/usr/games/fceux
endef
define FCEUX_CREATE_OPK
$(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/games/opk
$(HOST_DIR)/usr/bin/mksquashfs $(FCEUX_PKGDIR)/opk/nes $(TARGET_DIR)/usr/games/opk/nes.opk -all-root -noappend -no-exports -no-xattrs
endef
FCEUX_POST_INSTALL_TARGET_HOOKS += FCEUX_CREATE_OPK
$(eval $(generic-package))

View File

@@ -0,0 +1,12 @@
[Desktop Entry]
Type=Application
Name=NES
Comment=FC/NES Emulator
Icon=nes
Exec=/usr/games/launchers/nes_launch.sh %f
Terminal=false
X-OD-NeedsDownscaling=true
Categories=emulators;
selectorbrowser=true
SelectorDir=/mnt/NES
SelectorFilter=nes,NES

Binary file not shown.

After

Width:  |  Height:  |  Size: 363 B

View File

@@ -62,4 +62,10 @@ define PCSX_REARMED_INSTALL_TARGET_CMDS
$(INSTALL) -m 0755 $(@D)/pcsx $(TARGET_DIR)/usr/games/pcsx
endef
define PCSX_REARMED_CREATE_OPK
$(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/games/opk
$(HOST_DIR)/usr/bin/mksquashfs $(PCSX_REARMED_PKGDIR)/opk/ps1 $(TARGET_DIR)/usr/games/opk/ps1.opk -all-root -noappend -no-exports -no-xattrs
endef
PCSX_REARMED_POST_INSTALL_TARGET_HOOKS += PCSX_REARMED_CREATE_OPK
$(eval $(generic-package))

View File

@@ -0,0 +1,12 @@
[Desktop Entry]
Type=Application
Name=PS1
Comment=PS1 Emulator
Icon=ps1
Exec=/usr/games/launchers/psone_launch_pcsx.sh
Terminal=false
X-OD-NeedsDownscaling=true
Categories=emulators;
selectorbrowser=true
SelectorDir=/mnt/PS1
SelectorFilter=bin,BIN,cue,CUE,pbp,PBP

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@@ -71,4 +71,10 @@ define POCKETSNES_INSTALL_TARGET_CMDS
$(INSTALL) -m 0755 $(@D)/psnes $(TARGET_DIR)/usr/games/psnes
endef
define POCKETSNES_CREATE_OPK
$(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/games/opk
$(HOST_DIR)/usr/bin/mksquashfs $(POCKETSNES_PKGDIR)/opk/snes $(TARGET_DIR)/usr/games/opk/snes.opk -all-root -noappend -no-exports -no-xattrs
endef
POCKETSNES_POST_INSTALL_TARGET_HOOKS += POCKETSNES_CREATE_OPK
$(eval $(generic-package))

View File

@@ -0,0 +1,12 @@
[Desktop Entry]
Type=Application
Name=SNES
Comment=SNES Emulator
Icon=snes
Exec=/usr/games/launchers/snes_launch.sh
Terminal=false
X-OD-NeedsDownscaling=true
Categories=emulators;
selectorbrowser=true
SelectorDir=/mnt/SNES
SelectorFilter=sfc,SFC,smc,SMC

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -43,4 +43,11 @@ GNUBOY_CONF_OPTS += --without-fb \
GNUBOY_CONF_ENV += SDL_CONFIG="$(STAGING_DIR)/usr/bin/sdl-config"
define GNUBOY_CREATE_OPK
$(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/games/opk
$(HOST_DIR)/usr/bin/mksquashfs $(GNUBOY_PKGDIR)/opk/gb $(TARGET_DIR)/usr/games/opk/gb.opk -all-root -noappend -no-exports -no-xattrs
$(HOST_DIR)/usr/bin/mksquashfs $(GNUBOY_PKGDIR)/opk/gbc $(TARGET_DIR)/usr/games/opk/gbc.opk -all-root -noappend -no-exports -no-xattrs
endef
GNUBOY_POST_INSTALL_TARGET_HOOKS += GNUBOY_CREATE_OPK
$(eval $(autotools-package))

View File

@@ -0,0 +1,12 @@
[Desktop Entry]
Type=Application
Name=GameBoy
Comment=Game Boy Emulator
Icon=gb
Exec=/usr/games/launchers/gb_launch.sh
Terminal=false
X-OD-NeedsDownscaling=true
Categories=emulators;
selectorbrowser=true
SelectorDir=/mnt/Game Boy
SelectorFilter=gb,GB

Binary file not shown.

After

Width:  |  Height:  |  Size: 700 B

View File

@@ -0,0 +1,12 @@
[Desktop Entry]
Type=Application
Name=GameBoy Col
Comment=Game Boy Color Emulator
Icon=gbc
Exec=/usr/games/launchers/gb_launch.sh
Terminal=false
X-Od-NeedsDownscaling=true
Categories=emulators;
selectorbrowser=true
SelectorDir=/mnt/Game Boy Color
SelectorFilter=gbc,GBC

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@@ -58,4 +58,10 @@ define GPSP_INSTALL_TARGET_CMDS
$(INSTALL) -m 0644 $(@D)/game_config.txt $(TARGET_DIR)/usr/games/game_config.txt
endef
define GPSP_CREATE_OPK
$(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/games/opk
$(HOST_DIR)/usr/bin/mksquashfs $(GPSP_PKGDIR)/opk/gba $(TARGET_DIR)/usr/games/opk/gba.opk -all-root -noappend -no-exports -no-xattrs
endef
GPSP_POST_INSTALL_TARGET_HOOKS += GPSP_CREATE_OPK
$(eval $(generic-package))

View File

@@ -0,0 +1,12 @@
[Desktop Entry]
Type=Application
Name=GameBoy Adv
Comment=Game Boy Advance Emulator
Icon=gba
Exec=/usr/games/launchers/gba_launch_gpsp.sh
Terminal=false
X-OD-NeedsDownscaling=true
Categories=emulators;
selectorbrowser=true
SelectorDir=/mnt/Game Boy Advance
SelectorFilter=gba,GBA

Binary file not shown.

After

Width:  |  Height:  |  Size: 397 B

View File

@@ -44,4 +44,14 @@ MEDNAFEN_CONF_OPTS += --prefix=/usr/local --bindir=/usr/games --without-libsndfi
MEDNAFEN_CONF_ENV += SDL_CONFIG="$(STAGING_DIR)/usr/bin/sdl-config"
define MEDNAFEN_CREATE_OPK
$(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/games/opk
$(HOST_DIR)/usr/bin/mksquashfs $(MEDNAFEN_PKGDIR)/opk/gamegear $(TARGET_DIR)/usr/games/opk/gamegear.opk -all-root -noappend -no-exports -no-xattrs
$(HOST_DIR)/usr/bin/mksquashfs $(MEDNAFEN_PKGDIR)/opk/lynx $(TARGET_DIR)/usr/games/opk/lynx.opk -all-root -noappend -no-exports -no-xattrs
$(HOST_DIR)/usr/bin/mksquashfs $(MEDNAFEN_PKGDIR)/opk/ngp $(TARGET_DIR)/usr/games/opk/ngp.opk -all-root -noappend -no-exports -no-xattrs
$(HOST_DIR)/usr/bin/mksquashfs $(MEDNAFEN_PKGDIR)/opk/pce $(TARGET_DIR)/usr/games/opk/pce.opk -all-root -noappend -no-exports -no-xattrs
$(HOST_DIR)/usr/bin/mksquashfs $(MEDNAFEN_PKGDIR)/opk/wonderswan $(TARGET_DIR)/usr/games/opk/wonderswan.opk -all-root -noappend -no-exports -no-xattrs
endef
MEDNAFEN_POST_INSTALL_TARGET_HOOKS += MEDNAFEN_CREATE_OPK
$(eval $(autotools-package))

View File

@@ -0,0 +1,12 @@
[Desktop Entry]
Type=Application
Name=Game Gear
Comment=Game Gear Emulator
Icon=gamegear
Exec=/usr/games/launchers/gamegear_launch.sh
Terminal=false
X-OD-NeedsDownscaling=true
Categories=emulators;
selectorbrowser=true
SelectorDir=/mnt/Game Gear
SelectorFilter=zip,ZIP,gg,GG

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@@ -0,0 +1,12 @@
[Desktop Entry]
Type=Application
Name=Lynx
Comment=Atari Lynx Emulator
Icon=lynx
Exec=/usr/games/launchers/lynx_launch.sh
Terminal=false
X-OD-NeedsDownscaling=true
Categories=emulators;
selectorbrowser=true
SelectorDir=/mnt/Atari lynx
SelectorFilter=zip,ZIP,lnx,LNX

Binary file not shown.

After

Width:  |  Height:  |  Size: 460 B

View File

@@ -0,0 +1,12 @@
[Desktop Entry]
Type=Application
Name=Neo Geo
Comment=Neo Geo Pocket Emulator
Icon=ngp
Exec=/usr/games/launchers/ngp_launch.sh
Terminal=false
X-OD-NeedsDownscaling=true
Categories=emulators;
selectorbrowser=true
SelectorDir=/mnt/Neo Geo Pocket
SelectorFilter=zip,ZIP,ngp,NGP

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@@ -0,0 +1,12 @@
[Desktop Entry]
Type=Application
Name=PC Engine
Comment=PCE-TurboGrafx Emulator
Icon=pce
Exec=/usr/games/launchers/pce_launch.sh
Terminal=false
X-OD-NeedsDownscaling=true
Categories=emulators;
selectorbrowser=true
SelectorDir=/mnt/PCE-TurboGrafx
SelectorFilter=zip,ZIP,pce,PCE,sgx,SGX

Binary file not shown.

After

Width:  |  Height:  |  Size: 491 B

View File

@@ -0,0 +1,12 @@
[Desktop Entry]
Type=Application
Name=WonderSwan
Comment=WonderSwan/WonderSwan Color Emulator
Icon=wonderswan
Exec=/usr/games/launchers/wonderswan_launch.sh
Terminal=false
X-OD-NeedsDownscaling=true
Categories=emulators;
selectorbrowser=true
SelectorDir=/mnt/WonderSwan
SelectorFilter=zip,ZIP,wsc,WSC

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

View File

@@ -0,0 +1,12 @@
[Desktop Entry]
Type=Application
Name=MegaDrive
Comment=Sega Genesis/MegaDrive Emulator
Icon=megadrive
Exec=/usr/games/launchers/megadrive_launch.sh
Terminal=false
X-OD-NeedsDownscaling=true
Categories=emulators;
selectorbrowser=true
SelectorDir=/mnt/Sega Genesis
SelectorFilter=zip,ZIP,md,MD

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -62,5 +62,10 @@ define PICODRIVE_INSTALL_TARGET_CMDS
$(INSTALL) -m 0755 $(@D)/PicoDrive $(TARGET_DIR)/usr/games/
endef
define PICODRIVE_CREATE_OPK
$(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/games/opk
$(HOST_DIR)/usr/bin/mksquashfs $(PICODRIVE_PKGDIR)/opk/megadrive $(TARGET_DIR)/usr/games/opk/megadrive.opk -all-root -noappend -no-exports -no-xattrs
endef
PICODRIVE_POST_INSTALL_TARGET_HOOKS += PICODRIVE_CREATE_OPK
$(eval $(generic-package))