Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add m8c application #1034

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions packages/apps/m8c/package.mk
Original file line number Diff line number Diff line change
@@ -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/*
}
32 changes: 32 additions & 0 deletions packages/apps/m8c/patches/0001-update-defaults-config.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
From c2b17d28cf8800f3011c3c13492fa836d8c773f3 Mon Sep 17 00:00:00 2001
From: Philippe Simons <[email protected]>
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

10 changes: 10 additions & 0 deletions packages/apps/m8c/scripts/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/m8c.svg</image>
</game>
<game>
<path>./Install ROCKNIX.sh</path>
<name>Install ROCKNIX</name>
Expand Down
27 changes: 27 additions & 0 deletions packages/misc/modules/sources/images/m8c.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/rocknix/autostart/050-audio
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/virtual/image/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
42 changes: 30 additions & 12 deletions projects/Allwinner/devices/H700/linux/linux.aarch64.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down