Skip to content

Commit

Permalink
* Bump release to 2.1
Browse files Browse the repository at this point in the history
* Firefox VPU acceleration with v4l2-m2m support
* Move Pinix Testing Repo
* drop initramfs
* Disable Suspect/Hibernate (due to errate on JH7110 this wont ever work)
* add Plymouth Splash Screen at boot and drop psplash
* add plymouth-themes
* refactor rootfs-resize to be a proper systemd unit file
* move konqueror to kde-gear layer
* new upstream ffmpeg patches from starfive.
  • Loading branch information
Fishwaldo committed Sep 21, 2023
1 parent 80ec1e4 commit f21fd77
Show file tree
Hide file tree
Showing 44 changed files with 1,612 additions and 367 deletions.
8 changes: 5 additions & 3 deletions conf/distro/pinix.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ require conf/distro/poky.conf

DISTRO = "pinix"
DISTRO_NAME = "PinIx"
DISTRO_VERSION = "2.0"
DISTRO_VERSION = "2.1"
DISTRO_CODENAME = "pinix"
SDK_VENDOR = "-pine64"
TARGET_VENDOR = "-pine64"
Expand Down Expand Up @@ -50,8 +50,10 @@ PACKAGE_CLASSES ?= "package_deb"

POKY_INIT_MANAGER:star64 = "systemd"

INITRAMFS_FSTYPES = "cpio.gz"
INITRAMFS_IMAGE = "star64-image-initramfs"
SPLASH="plymouth"

#INITRAMFS_FSTYPES = "cpio.gz"
#INITRAMFS_IMAGE = "star64-image-initramfs"
LICENSE_FLAGS_ACCEPTED = "commercial"
QT_LTS_GIT_PROTOCOL = "https"

Expand Down
27 changes: 27 additions & 0 deletions recipes-browser/refined-h264ify/refined-h264ify_3.1.0.bb
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
SUMMARY = "Firefox add on to enable youtube to only stream h264 videos"
HOMEPAGE = "https://addons.mozilla.org/en-US/firefox/addon/refined-h264ify/"
BUGTRACKER = "https://github.com/Edwin-Zarco/refined-h264ify/issues"
AUTHOR = "George Kiagiadakis <george.kiagiadakis@collabora.com> "
SECTION = "multimedia"

LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=650b869bd8ff2aed59c62bad2a22a821"


SRC_URI = " \
https://addons.mozilla.org/firefox/downloads/file/4109282/refined_h264ify-3.1.0.xpi;name=extension \
https://raw.githubusercontent.com/Edwin-Zarco/refined-h264ify/master/LICENSE;name=license \
"
SRC_URI[extension.sha256sum] = "433c3d67e3d0d7d7fd4584cd049105d19daa7a47763b6a6f1a28e3697390ce4a"
SRC_URI[license.sha256sum] = "7c34d28e784b202aa4998f477fd0aa9773146952d7f6fa5971369fcdda59cf48"

S="${WORKDIR}"

do_install() {
install -d ${D}${libdir}/firefox/distribution/extensions
install -m 0644 ${WORKDIR}/refined_h264ify-3.1.0.xpi ${D}${libdir}/firefox/distribution/extensions/{ea422457-9756-4444-83f8-8e8d0f29d59c}.xpi
}

FILES:${PN} += " \
${libdir}/firefox/distribution/extensions \
"
Original file line number Diff line number Diff line change
@@ -1 +1 @@
deb [signed-by=/etc/apt/trusted.gpg.d/pinix.gpg] https://pine64.my-ho.st:8443/ pinix-testing all riscv64 pinetabv
deb [signed-by=/etc/apt/trusted.gpg.d/pinix.gpg] https://pine64.my-ho.st:8443/testing/ pinix-testing all riscv64 pinetabv
Original file line number Diff line number Diff line change
@@ -1 +1 @@
deb [signed-by=/etc/apt/trusted.gpg.d/pinix.gpg] https://pine64.my-ho.st:8443/ pinix-testing all riscv64 star64
deb [signed-by=/etc/apt/trusted.gpg.d/pinix.gpg] https://pine64.my-ho.st:8443/testing/ pinix-testing all riscv64 star64
3 changes: 2 additions & 1 deletion recipes-core/packagegroups/packagegroup-pinetabv-plasma.bb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ RDEPENDS:packagegroup-pinetabv-plasma = " \
kirigami-addons \
kmenuedit \
konsole \
konqueror \
kpipewire \
kscreen \
kscreenlocker \
Expand All @@ -64,6 +63,7 @@ RDEPENDS:packagegroup-pinetabv-plasma = " \
liberation-fonts \
mesa-demos \
milou \
pinetabv-base-files \
pipewire \
pipewire-alsa \
pipewire-alsa-card-profile \
Expand Down Expand Up @@ -120,6 +120,7 @@ RDEPENDS:packagegroup-pinetabv-plasma = " \
plasma-welcome \
polkit-kde-agent-1 \
powerdevil \
refined-h264ify \
sddm \
sddm-kcm \
systemd \
Expand Down
4 changes: 3 additions & 1 deletion recipes-core/packagegroups/packagegroup-star64-minimal.bb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ RDEPENDS:packagegroup-star64-minimal = " \
libgpiod-tools \
bluez5 \
u-boot-tools \
kernel-image-fitimage-initramfs \
xz \
usbutils \
elfutils \
Expand All @@ -45,6 +44,9 @@ RDEPENDS:packagegroup-star64-minimal = " \
cmake \
meson \
tree \
plymouth \
plymouth-themes \
linux-firmware-visionfive2-wave511 \
"

COMPATIBLE_MACHINE = "star64|pinetabv"
2 changes: 1 addition & 1 deletion recipes-core/packagegroups/packagegroup-star64-plasma.bb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ RDEPENDS:packagegroup-star64-plasma = " \
kirigami-addons \
kmenuedit \
konsole \
konqueror \
kpipewire \
kscreen \
kscreenlocker \
Expand Down Expand Up @@ -116,6 +115,7 @@ RDEPENDS:packagegroup-star64-plasma = " \
plasma-browser-integration \
plasma-welcome \
polkit-kde-agent-1 \
refined-h264ify \
sddm \
sddm-kcm \
systemd \
Expand Down
1 change: 1 addition & 0 deletions recipes-core/packagegroups/packagegroup-star64-weston.bb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ RDEPENDS:packagegroup-star64-weston = " \
sddm \
${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'weston-xwayland matchbox-terminal', '', d)} \
firefox \
refined-h264ify \
mesa-demos \
"

Expand Down
23 changes: 23 additions & 0 deletions recipes-core/pinetabv-base-files/pinetabv-base-files/COPYING
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

MIT License

Copyright (c) <year> <copyright holders>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#PineTabv Doesn't support Suspend. So lock instead.
HandleLidSwitch=lock
HandleLidSwitchExternalPower=lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[BatteryManagement]
BatteryCriticalAction=8
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
[AC]
icon=battery-charging

[AC][DPMSControl]
idleTime=600
lockBeforeTurnOff=0

[AC][DimDisplay]
idleTime=300000

[AC][HandleButtonEvents]
lidAction=32
powerButtonAction=16
powerDownAction=16
triggerLidActionWhenExternalMonitorPresent=false

[AC][SuspendSession]
idleTime=900000
suspendThenHibernate=false
suspendType=8

[Battery]
icon=battery-060

[Battery][DPMSControl]
idleTime=300
lockBeforeTurnOff=0

[Battery][DimDisplay]
idleTime=120000

[Battery][HandleButtonEvents]
lidAction=32
powerButtonAction=16
powerDownAction=16
triggerLidActionWhenExternalMonitorPresent=false

[Battery][SuspendSession]
idleTime=600000
suspendThenHibernate=false
suspendType=8

[LowBattery]
icon=battery-low

[LowBattery][BrightnessControl]
value=30

[LowBattery][DPMSControl]
idleTime=120
lockBeforeTurnOff=0

[LowBattery][DimDisplay]
idleTime=60000

[LowBattery][HandleButtonEvents]
lidAction=32
powerButtonAction=16
powerDownAction=16
triggerLidActionWhenExternalMonitorPresent=false

[LowBattery][SuspendSession]
idleTime=300000
suspendThenHibernate=false
suspendType=8
37 changes: 37 additions & 0 deletions recipes-core/pinetabv-base-files/pinetabv-base-files_1.0.bb
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
SUMMARY = "Global Config Files for PineTabV"
DESCRIPTION ="Global Config Files for PineTabV"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=0835ade698e0bcf8506ecda2f7b4f302"

FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"

SRC_URI += " \
file://COPYING \
file://powerdevilrc \
file://powermanagementprofilesrc \
file://lockscreen.conf \
"

S="${WORKDIR}"

RDEPENDS:${PN} += " \
systemd \
powerdevil \
"

do_install:append() {
install -d ${D}${sysconfdir}/xdg/
install -m 0644 ${WORKDIR}/powerdevilrc ${D}${sysconfdir}/xdg/powerdevilrc
install -m 0644 ${WORKDIR}/powermanagementprofilesrc ${D}${sysconfdir}/xdg/powermanagementprofilesrc
install -d ${D}${sysconfdir}/systemd/logind.conf.d/
install -m 0644 ${WORKDIR}/lockscreen.conf ${D}${sysconfdir}/systemd/logind.conf.d/lockscreen.conf
}

pkg_postinst_ontarget:${PN}() {
systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
}


COMPATIBLE_MACHINE = "pinetabv"

PACKAGE_ARCH = "${MACHINE_ARCH}"
43 changes: 43 additions & 0 deletions recipes-core/plymouth-themes/plymouth-themes_1.0.bb
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# SPDX-FileCopyrightText: 2023 Justin Hammond <justin@dynam.ac>
#
# SPDX-License-Identifier: MIT

DESCRIPTION = "Wings Themes For Plasma Desktop"
SUMMARY = "Wings Themes For Plasma Desktop"
HOMEPAGE = "https://github.com/L4ki/Wings-Plasma-Themes"
LICENSE = "GPL-3.0-only "

SRC_URI += " \
git://github.com/adi1090x/plymouth-themes.git;protocol=https;branch=master \
"
SRCREV="5d8817458d764bff4ff9daae94cf1bbaabf16ede"

S="${WORKDIR}/git"

LIC_FILES_CHKSUM=" \
file://LICENSE;md5=1ebbd3e34237af26da5dc08a4e440464 \
"

inherit allarch

RDEPENDS:${PN} = " \
plymouth \
"

do_install() {
install -m 0755 -d ${D}${datadir}/plymouth/themes
cp -R --no-dereference --preserve=mode,links -v ${S}/pack_1/* ${D}${datadir}/plymouth/themes/
cp -R --no-dereference --preserve=mode,links -v ${S}/pack_2/* ${D}${datadir}/plymouth/themes/
cp -R --no-dereference --preserve=mode,links -v ${S}/pack_3/* ${D}${datadir}/plymouth/themes/
cp -R --no-dereference --preserve=mode,links -v ${S}/pack_4/* ${D}${datadir}/plymouth/themes/
}

pkg_postinst:${PN}() {
sed -i 's/Theme=spinner/Theme=pixels/g' $D/${datadir}/plymouth/plymouthd.defaults
}


FILES:${PN} = " \
${datadir}/plymouth/themes \
"

Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
From 746c690f57b52e6fe21cc2a11b5bb71d25af3128 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com>
Date: Wed, 13 Dec 2017 16:15:57 +0100
Subject: [PATCH] Make full path to systemd-tty-ask-password-agent configurable
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Upstream-Status: Inappropriate [embedded specific]

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
---
configure.ac | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index aad673e..6b37179 100644
--- a/configure.ac
+++ b/configure.ac
@@ -48,7 +48,10 @@ PLYMOUTH_LIBS="-lm -lrt -ldl"
AC_SUBST(PLYMOUTH_CFLAGS)
AC_SUBST(PLYMOUTH_LIBS)

-AC_PATH_PROG([SYSTEMD_ASK_PASSWORD_AGENT], [systemd-tty-ask-password-agent])
+AC_ARG_WITH(systemd-tty-ask-password-agent, AS_HELP_STRING([--with-systemd-tty-ask-password-agent],[path of systemd-tty-ask-password-agent]),SYSTEMD_ASK_PASSWORD_AGENT=${withval},SYSTEMD_ASK_PASSWORD_AGENT=/bin/systemd-tty-ask-password-agent)
+AC_SUBST(SYSTEMD_ASK_PASSWORD_AGENT)
+
+# checked: UDEVADM is not used
AC_PATH_PROG([UDEVADM], [udevadm])

AC_ARG_ENABLE(pango, AS_HELP_STRING([--enable-pango],[enable building with pango, disabled there is no encryption prompts]),enable_pango=$enableval,enable_pango=yes)
--
2.9.5

Loading

0 comments on commit f21fd77

Please sign in to comment.