Skip to content

Commit

Permalink
add m8c application
Browse files Browse the repository at this point in the history
  • Loading branch information
loki666 committed Dec 28, 2024
1 parent e72ef1f commit d6bf39c
Show file tree
Hide file tree
Showing 6 changed files with 98 additions and 8 deletions.
24 changes: 24 additions & 0 deletions packages/apps/m8c/package.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2024 ROCKNIX (https://github.com/ROCKNIX)

PKG_NAME="m8c"
PKG_VERSION="v1.7.8"
PKG_LICENSE="MIT"
PKG_SITE="https://github.com/laamaa/m8c"
PKG_URL="${PKG_SITE}/archive/refs/tags/${PKG_VERSION}.tar.gz"
PKG_DEPENDS_TARGET="toolchain SDL2 libserialport"
PKG_LONGDESC="Cross-platform M8 tracker headless client"
PKG_TOOLCHAIN="cmake"

makeinstall_target(){
mkdir -p ${INSTALL}/usr/bin
cp m8c ${INSTALL}/usr/bin
chmod 0755 ${INSTALL}/usr/bin/m8c

if [ ! -d "${INSTALL}/usr/config/modules" ]
then
mkdir -p ${INSTALL}/usr/config/modules
fi
cp -rf ${PKG_DIR}/sources/"Start M8C.sh" ${INSTALL}/usr/config/modules
chmod 0755 ${INSTALL}/usr/config/modules/"Start M8C.sh"
}
25 changes: 25 additions & 0 deletions packages/apps/m8c/patches/0001-default-to-fullscreen.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
From 99db5770f75111d7b1af8a333db5517408d3536c Mon Sep 17 00:00:00 2001
From: Philippe Simons <[email protected]>
Date: Sat, 28 Dec 2024 10:55:19 +0100
Subject: [PATCH] default to fullscreen

---
src/config.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/config.c b/src/config.c
index 50848a9..75f97b1 100644
--- a/src/config.c
+++ b/src/config.c
@@ -23,7 +23,7 @@ config_params_s init_config() {

c.filename = "config.ini"; // default config file to load

- c.init_fullscreen = 0; // default fullscreen state at load
+ c.init_fullscreen = 1; // default fullscreen state at load
c.init_use_gpu = 1; // default to use hardware acceleration
c.idle_ms = 10; // default to high performance
c.wait_for_device = 1; // default to exit if device disconnected
--
2.47.1

10 changes: 10 additions & 0 deletions packages/apps/m8c/sources/Start M8C.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2021-present 351ELEC

source /etc/profile

set_kill set "m8c"

/usr/bin/m8c
12 changes: 12 additions & 0 deletions packages/misc/modules/sources/gamelist.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@
<players>1</players>
<image>./images/file-manager.svg</image>
</game>
<game>
<path>./Start M8C.sh</path>
<name>M8C</name>
<desc>Cross-platform M8 tracker headless client.</desc>
<developer>ROCKNIX</developer>
<publisher>ROCKNIX</publisher>
<rating>5.0</rating>
<releasedate>2022</releasedate>
<genre>Tool</genre>
<players>1</players>
<image>./images/file-manager.svg</image>
</game>
<game>
<path>./Install ROCKNIX.sh</path>
<name>Install ROCKNIX</name>
Expand Down
33 changes: 26 additions & 7 deletions projects/Allwinner/devices/H700/linux/linux.aarch64.conf
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,30 @@ CONFIG_LOGO=y
# CONFIG_LOGO_LINUX_VGA16 is not set
CONFIG_SOUND=y
CONFIG_SND=y
CONFIG_SND_TIMER=y
CONFIG_SND_PCM=y
CONFIG_SND_DMAENGINE_PCM=y
CONFIG_SND_HWDEP=y
CONFIG_SND_SEQ_DEVICE=y
CONFIG_SND_RAWMIDI=y
CONFIG_SND_UMP=y
CONFIG_SND_UMP_LEGACY_RAWMIDI=y
CONFIG_SND_SEQUENCER=y
CONFIG_SND_SEQ_DUMMY=y
CONFIG_SND_SEQUENCER_OSS=y
CONFIG_SND_SEQ_HRTIMER_DEFAULT=y
CONFIG_SND_SEQ_MIDI_EVENT=y
CONFIG_SND_SEQ_MIDI=y
CONFIG_SND_SEQ_MIDI_EMUL=y
CONFIG_SND_SEQ_VIRMIDI=y
CONFIG_SND_SEQ_UMP=y
CONFIG_SND_SEQ_UMP_CLIENT=y
CONFIG_SND_DRIVERS=y

CONFIG_SND_USB_AUDIO=y
CONFIG_SND_USB_AUDIO_MIDI_V2=y
CONFIG_SND_USB_AUDIO_USE_MEDIA_CONTROLLER=y

CONFIG_SND_SOC=y
CONFIG_SND_SUN4I_CODEC=y
CONFIG_SND_SUN8I_CODEC=y
Expand All @@ -521,6 +545,7 @@ CONFIG_SND_SUN50I_CODEC_ANALOG=y
CONFIG_SND_SUN4I_I2S=y
CONFIG_SND_SUN4I_SPDIF=y
CONFIG_SND_SUN50I_DMIC=y

# CONFIG_I2C_HID is not set
CONFIG_USB_ULPI_BUS=y
CONFIG_USB_CONN_GPIO=y
Expand All @@ -534,6 +559,7 @@ CONFIG_USB_EHCI_ROOT_HUB_TT=y
CONFIG_USB_EHCI_HCD_PLATFORM=y
CONFIG_USB_OHCI_HCD=y
CONFIG_USB_OHCI_HCD_PLATFORM=y
CONFIG_USB_ACM=m
CONFIG_USB_STORAGE=y
CONFIG_USB_UAS=y
CONFIG_USB_MUSB_HDRC=y
Expand All @@ -544,19 +570,12 @@ CONFIG_USB_GADGET=y
CONFIG_USB_SNP_UDC_PLAT=y
CONFIG_USB_BDC_UDC=y
CONFIG_USB_CONFIGFS=y
CONFIG_USB_CONFIGFS_SERIAL=y
CONFIG_USB_CONFIGFS_ACM=y
CONFIG_USB_CONFIGFS_OBEX=y
CONFIG_USB_CONFIGFS_NCM=y
CONFIG_USB_CONFIGFS_ECM=y
CONFIG_USB_CONFIGFS_ECM_SUBSET=y
CONFIG_USB_CONFIGFS_RNDIS=y
CONFIG_USB_CONFIGFS_EEM=y
CONFIG_USB_CONFIGFS_MASS_STORAGE=y
CONFIG_USB_CONFIGFS_F_FS=y
CONFIG_USB_CONFIGFS_F_HID=y
CONFIG_USB_CONFIGFS_F_UVC=y
CONFIG_USB_CONFIGFS_F_PRINTER=y
CONFIG_TYPEC=y
CONFIG_TYPEC_TCPM=y
CONFIG_TYPEC_TCPCI=y
Expand Down
2 changes: 1 addition & 1 deletion projects/Allwinner/devices/H700/options
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@
ROCKNIX_JOYPAD="yes"

# additional packages to install
ADDITIONAL_PACKAGES=""
ADDITIONAL_PACKAGES="m8c"

0 comments on commit d6bf39c

Please sign in to comment.