Skip to content

Commit d7a8d0c

Browse files
committed
Emulators, Applications and Native games folders for opks, libopk updated to the latest version
1 parent 03d65c7 commit d7a8d0c

File tree

14 files changed

+51
-27
lines changed

14 files changed

+51
-27
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This is the folder where you can put all your standalone applications opks
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This is the folder where you can put all your emulators opks
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This is the folder where you can put all your standalone games opks

FunKey/board/funkey/update_partition

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,32 +15,53 @@ do_preinst()
1515

1616
do_postinst()
1717
{
18+
################
19+
# Fix recovery #
20+
################
1821
notif " 2/5 FIX RECOVERY GPIO MANAGER"
1922
rw
2023
cp -a /tmp/funkey_gpio_management /usr/local/sbin/
2124
chmod +x /usr/local/sbin/funkey_gpio_management
2225
ro
26+
27+
#################
28+
# Resize Rootfs #
29+
#################
2330
notif " 3/5 RESIZE ROOT FILESYSTEM^DO NOT TURN OFF THE CONSOLE"
2431
resize2fs ${root_part}
2532
if [ $? -ne 0 ]; then
2633
notif " CANNOT RESIZE ROOT^FILESYSTEM"
2734
exit 1
2835
fi
36+
37+
#############
38+
# Copy OPKs #
39+
#############
2940
notif " 4/5 COPY OPKS TO USB MOUNT^DO NOT TURN OFF THE CONSOLE"
30-
folder_opks_emulators=/mnt/Emulators
31-
mkdir -p "$folder_opks_emulators"
41+
42+
# Mount Rootfs
3243
mkdir -p ${root_mount}
3344
mount -t ext4 ${root_part} ${root_mount}
3445
if [ $? -ne 0 ]; then
3546
notif "CANNOT MOUNT ROOT^FILESYSTEM"
3647
exit 1
3748
fi
38-
cp -f ${root_mount}/usr/games/opk/*.opk "$folder_opks_emulators"
49+
50+
# Copy OPKs
51+
shared_partition=/mnt/
52+
mkdir -p "$shared_partition"
53+
cp -r ${root_mount}/usr/local/share/OPKs/* "$shared_partition"
54+
55+
# Unmount Rootfs
3956
umount ${root_mount}
4057
if [ $? -ne 0 ]; then
4158
notif "CANNOT UNMOUNT ROOT^FILESYSTEM"
4259
exit 1
4360
fi
61+
62+
#####################
63+
# Erase update file #
64+
#####################
4465
for file in $(ls /mnt/FunKey-*.fwu); do
4566
notif " 5/5 ERASE UPDATE FILE^DO NOT TURN OFF THE CONSOLE"
4667
rm -f "${file}"

FunKey/package/FCEUX/FCEUX.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ define FCEUX_INSTALL_TARGET_CMDS
4848
endef
4949

5050
define FCEUX_CREATE_OPK
51-
$(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/games/opk
52-
$(HOST_DIR)/usr/bin/mksquashfs $(FCEUX_PKGDIR)/opk/nes $(TARGET_DIR)/usr/games/opk/nes_fceux_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
51+
$(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/local/share/OPKs/Emulators
52+
$(HOST_DIR)/usr/bin/mksquashfs $(FCEUX_PKGDIR)/opk/nes $(TARGET_DIR)/usr/local/share/OPKs/Emulators/nes_fceux_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
5353
endef
5454
FCEUX_POST_INSTALL_TARGET_HOOKS += FCEUX_CREATE_OPK
5555

FunKey/package/PCSX-ReARMed/PCSX-ReARMed.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ define PCSX_REARMED_INSTALL_TARGET_CMDS
4848
endef
4949

5050
define PCSX_REARMED_CREATE_OPK
51-
$(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/games/opk
52-
$(HOST_DIR)/usr/bin/mksquashfs $(PCSX_REARMED_PKGDIR)/opk/ps1 $(TARGET_DIR)/usr/games/opk/ps1_pcsx_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
51+
$(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/local/share/OPKs/Emulators
52+
$(HOST_DIR)/usr/bin/mksquashfs $(PCSX_REARMED_PKGDIR)/opk/ps1 $(TARGET_DIR)/usr/local/share/OPKs/Emulators/ps1_pcsx_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
5353
endef
5454
PCSX_REARMED_POST_INSTALL_TARGET_HOOKS += PCSX_REARMED_CREATE_OPK
5555

FunKey/package/PocketSNES/PocketSNES.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ define POCKETSNES_INSTALL_TARGET_CMDS
5454
endef
5555

5656
define POCKETSNES_CREATE_OPK
57-
$(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/games/opk
58-
$(HOST_DIR)/usr/bin/mksquashfs $(POCKETSNES_PKGDIR)/opk/snes $(TARGET_DIR)/usr/games/opk/snes_pocketsnes_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
57+
$(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/local/share/OPKs/Emulators
58+
$(HOST_DIR)/usr/bin/mksquashfs $(POCKETSNES_PKGDIR)/opk/snes $(TARGET_DIR)/usr/local/share/OPKs/Emulators/snes_pocketsnes_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
5959
endef
6060
POCKETSNES_POST_INSTALL_TARGET_HOOKS += POCKETSNES_CREATE_OPK
6161

FunKey/package/commander/commander.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ define COMMANDER_INSTALL_CMDS
1717
endef
1818

1919
define COMMANDER_CREATE_OPK
20-
$(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/games/opk
20+
$(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/local/share/OPKs/Applications
2121
cd $(@D); \
2222
$(HOST_DIR)/usr/bin/mksquashfs \
2323
opkg/default.funkey-s.desktop \
@@ -33,7 +33,7 @@ define COMMANDER_CREATE_OPK
3333
res/Fiery_Turk.ttf \
3434
res/FreeSans.ttf \
3535
$(TARGET_DIR)/usr/bin/commander \
36-
$(TARGET_DIR)/usr/games/opk/commander-funkey-s.opk \
36+
$(TARGET_DIR)/usr/local/share/OPKs/Applications/commander-funkey-s.opk \
3737
-all-root -noappend -no-exports -no-xattrs -noappend; \
3838
rm -rf $(TARGET_DIR)/usr/bin/commander
3939
endef

FunKey/package/gnuboy/gnuboy.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ GNUBOY_CONF_OPTS += --without-fb \
2626
GNUBOY_CONF_ENV += SDL_CONFIG="$(STAGING_DIR)/usr/bin/sdl-config"
2727

2828
define GNUBOY_CREATE_OPK
29-
$(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/games/opk
30-
$(HOST_DIR)/usr/bin/mksquashfs $(GNUBOY_PKGDIR)/opk/gb $(TARGET_DIR)/usr/games/opk/gb_gnuboy_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
31-
$(HOST_DIR)/usr/bin/mksquashfs $(GNUBOY_PKGDIR)/opk/gbc $(TARGET_DIR)/usr/games/opk/gbc_gnuboy_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
29+
$(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/local/share/OPKs/Emulators
30+
$(HOST_DIR)/usr/bin/mksquashfs $(GNUBOY_PKGDIR)/opk/gb $(TARGET_DIR)/usr/local/share/OPKs/Emulators/gb_gnuboy_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
31+
$(HOST_DIR)/usr/bin/mksquashfs $(GNUBOY_PKGDIR)/opk/gbc $(TARGET_DIR)/usr/local/share/OPKs/Emulators/gbc_gnuboy_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
3232
endef
3333
GNUBOY_POST_INSTALL_TARGET_HOOKS += GNUBOY_CREATE_OPK
3434

FunKey/package/gpsp/gpsp.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ define GPSP_INSTALL_TARGET_CMDS
4141
endef
4242

4343
define GPSP_CREATE_OPK
44-
$(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/games/opk
45-
$(HOST_DIR)/usr/bin/mksquashfs $(GPSP_PKGDIR)/opk/gba $(TARGET_DIR)/usr/games/opk/gba_gpsp_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
44+
$(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/local/share/OPKs/Emulators
45+
$(HOST_DIR)/usr/bin/mksquashfs $(GPSP_PKGDIR)/opk/gba $(TARGET_DIR)/usr/local/share/OPKs/Emulators/gba_gpsp_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
4646
endef
4747
GPSP_POST_INSTALL_TARGET_HOOKS += GPSP_CREATE_OPK
4848

0 commit comments

Comments
 (0)