diff --git a/packages/apps/m8c/package.mk b/packages/apps/m8c/package.mk new file mode 100644 index 000000000..0c38863d2 --- /dev/null +++ b/packages/apps/m8c/package.mk @@ -0,0 +1,21 @@ +# 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 -f m8c ${INSTALL}/usr/bin + chmod 0755 ${INSTALL}/usr/bin/m8c + + mkdir -p ${INSTALL}/usr/config/modules + cp -rf ${PKG_DIR}/scripts/* ${INSTALL}/usr/config/modules + chmod 0755 ${INSTALL}/usr/config/modules/* +} diff --git a/packages/apps/m8c/patches/0001-update-defaults-config.patch b/packages/apps/m8c/patches/0001-update-defaults-config.patch new file mode 100644 index 000000000..f19292482 --- /dev/null +++ b/packages/apps/m8c/patches/0001-update-defaults-config.patch @@ -0,0 +1,32 @@ +From c2b17d28cf8800f3011c3c13492fa836d8c773f3 Mon Sep 17 00:00:00 2001 +From: Philippe Simons +Date: Sat, 28 Dec 2024 10:55:19 +0100 +Subject: [PATCH] update defaults config + +--- + src/config.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/config.c b/src/config.c +index 50848a9..95a36ba 100644 +--- a/src/config.c ++++ b/src/config.c +@@ -23,13 +23,13 @@ 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 + c.wait_packets = 1024; // default zero-byte attempts to disconnect (about 2 + // sec for default idle_ms) +- c.audio_enabled = 0; // route M8 audio to default output ++ c.audio_enabled = 1; // route M8 audio to default output + c.audio_buffer_size = 1024; // requested audio buffer size in samples + c.audio_device_name = NULL; // Use this device, leave NULL to use the default output device + +-- +2.47.1 + diff --git a/packages/apps/m8c/scripts/Start M8C.sh b/packages/apps/m8c/scripts/Start M8C.sh new file mode 100755 index 000000000..a20ac86ab --- /dev/null +++ b/packages/apps/m8c/scripts/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..cd0bd3115 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/m8c.svg + ./Install ROCKNIX.sh Install ROCKNIX diff --git a/packages/misc/modules/sources/images/m8c.svg b/packages/misc/modules/sources/images/m8c.svg new file mode 100644 index 000000000..ee40a18db --- /dev/null +++ b/packages/misc/modules/sources/images/m8c.svg @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/packages/rocknix/autostart/050-audio b/packages/rocknix/autostart/050-audio index c9bd0ff9e..811e2c639 100755 --- a/packages/rocknix/autostart/050-audio +++ b/packages/rocknix/autostart/050-audio @@ -13,7 +13,7 @@ then fi ### Auto switch between internal and bluetooth devices -pactl load-module module-switch-on-connect 2>/dev/null +pactl load-module module-switch-on-connect blocklist="DirtyWave_M8|hdmi" 2>/dev/null ### Set up audio routing (Internal or HDMI) /usr/bin/hdmi_sense 2>/dev/null diff --git a/packages/virtual/image/package.mk b/packages/virtual/image/package.mk index 6edf8ec38..d18e88171 100644 --- a/packages/virtual/image/package.mk +++ b/packages/virtual/image/package.mk @@ -23,7 +23,7 @@ PKG_GRAPHICS="imagemagick" PKG_FONTS="corefonts" -PKG_MULTIMEDIA="ffmpeg vlc mpv gmu" +PKG_MULTIMEDIA="ffmpeg vlc mpv gmu m8c" PKG_SOUND="espeak libao" diff --git a/projects/Allwinner/devices/H700/linux/linux.aarch64.conf b/projects/Allwinner/devices/H700/linux/linux.aarch64.conf index c435d50d1..7b5e6b664 100644 --- a/projects/Allwinner/devices/H700/linux/linux.aarch64.conf +++ b/projects/Allwinner/devices/H700/linux/linux.aarch64.conf @@ -2,7 +2,12 @@ CONFIG_DEFAULT_HOSTNAME="H700" CONFIG_SYSVIPC=y CONFIG_POSIX_MQUEUE=y -CONFIG_AUDIT=y +# CONFIG_AUDIT is not set +CONFIG_TICK_ONESHOT=y +CONFIG_NO_HZ_COMMON=y +# CONFIG_HZ_PERIODIC is not set +CONFIG_NO_HZ_IDLE=y +# CONFIG_NO_HZ_FULL is not set CONFIG_NO_HZ=y CONFIG_HIGH_RES_TIMERS=y CONFIG_BPF_SYSCALL=y @@ -513,14 +518,33 @@ 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_UMP=y +CONFIG_SND_SEQ_UMP_CLIENT=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 -CONFIG_SND_SUN8I_CODEC_ANALOG=y -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 +558,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 +569,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