diff --git a/packages/apps/m8c/package.mk b/packages/apps/m8c/package.mk new file mode 100644 index 000000000..d85fb3808 --- /dev/null +++ b/packages/apps/m8c/package.mk @@ -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" +} diff --git a/packages/apps/m8c/patches/0001-default-to-fullscreen.patch b/packages/apps/m8c/patches/0001-default-to-fullscreen.patch new file mode 100644 index 000000000..ca451fe80 --- /dev/null +++ b/packages/apps/m8c/patches/0001-default-to-fullscreen.patch @@ -0,0 +1,25 @@ +From 99db5770f75111d7b1af8a333db5517408d3536c Mon Sep 17 00:00:00 2001 +From: Philippe Simons +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 + diff --git a/packages/apps/m8c/sources/Start M8C.sh b/packages/apps/m8c/sources/Start M8C.sh new file mode 100755 index 000000000..a20ac86ab --- /dev/null +++ b/packages/apps/m8c/sources/Start M8C.sh @@ -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 diff --git a/packages/misc/modules/sources/gamelist.xml b/packages/misc/modules/sources/gamelist.xml index 4fe24b5cf..b3ad1632e 100755 --- a/packages/misc/modules/sources/gamelist.xml +++ b/packages/misc/modules/sources/gamelist.xml @@ -12,6 +12,18 @@ 1 ./images/file-manager.svg + + ./Start M8C.sh + M8C + Cross-platform M8 tracker headless client. + ROCKNIX + ROCKNIX + 5.0 + 2022 + Tool + 1 + ./images/file-manager.svg + ./Install ROCKNIX.sh Install ROCKNIX diff --git a/projects/Allwinner/devices/H700/linux/linux.aarch64.conf b/projects/Allwinner/devices/H700/linux/linux.aarch64.conf index c435d50d1..82a8639bf 100644 --- a/projects/Allwinner/devices/H700/linux/linux.aarch64.conf +++ b/projects/Allwinner/devices/H700/linux/linux.aarch64.conf @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/projects/Allwinner/devices/H700/options b/projects/Allwinner/devices/H700/options index c35bb3366..1353035ee 100644 --- a/projects/Allwinner/devices/H700/options +++ b/projects/Allwinner/devices/H700/options @@ -60,4 +60,4 @@ ROCKNIX_JOYPAD="yes" # additional packages to install - ADDITIONAL_PACKAGES="" + ADDITIONAL_PACKAGES="m8c"