Compare commits

...
Author SHA1 Message Date
Achill Gilgenast f5d46bd17e device-generic-aarch64: rename from device-postmarketos-trailblazer
Rename them to follow our generic device package notations (e.g.
generic-x86_64 or generic-loongarch64), switch to our generic kernels
(https://docs.postmarketos.org/pmaports/main/generic-kernels.html) and
lay out a path to move it to community.

* Also add me as a Co-Maintainer
* Set the stable kernel as default
* Update kernel subpackage descriptions to follow our generic kernels

For: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/issues/4288>
2026-02-05 16:40:23 +01:00
5 changed files with 20 additions and 88 deletions

No files matched your search

@@ -1,9 +1,10 @@
# Reference: <https://postmarketos.org/devicepkg>
# Co-Maintainer: Ferass El Hafidi <funderscore@postmarketos.org>
# Co-Maintainer: Achill Gilgenast <achill@achill.org>
maintainer="Casey Connolly <kcxt@postmarketos.org>"
pkgname=device-postmarketos-trailblazer
pkgdesc="postmarketOS Trailblazer generic ARM64"
pkgver=19
pkgname=device-generic-aarch64
pkgdesc="Generic aarch64 system, with EFI"
pkgver=20
pkgrel=0
url="https://postmarketos.org"
license="MIT"
@@ -32,13 +33,14 @@ _pmb_recommends="
dtbloader
"
install="$pkgname.pre-upgrade"
makedepends="devicepkg-dev"
provides="device-postmarketos-trailblazer=$pkgver-r$pkgrel"
replaces="device-postmarketos-trailblazer"
subpackages="
$pkgname-kernel-next:kernel_next
$pkgname-kernel-mainline:kernel_mainline
$pkgname-kernel-lts:kernel_lts
$pkgname-kernel-stable:kernel_stable
$pkgname-kernel-lts:kernel_lts
$pkgname-kernel-mainline:kernel_mainline
$pkgname-kernel-next:kernel_next
$pkgname-kernel-postmarketos-qcom-laptop:kernel_postmarketos_qcom_laptop
$pkgname-kernel-postmarketos-amlogic:kernel_postmarketos_amlogic
"
@@ -57,45 +59,45 @@ package() {
}
kernel_next() {
pkgdesc="Unstable next kernel (linux-next)"
pkgdesc="Development kernel with patches aimed at the next kernel merge window (most breakages, for development)"
depends="linux-next"
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}
kernel_mainline() {
pkgdesc="Mainline postmarketOS kernel (linux-postmarketos-mainline)"
pkgdesc="Upstream development kernel (regular breakage, latest features)"
depends="linux-postmarketos-mainline"
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}
kernel_lts() {
pkgdesc="Long term support (LTS) kernel from Alpine Linux (linux-lts)"
depends="linux-lts"
pkgdesc="Long-term maintainance kernel (most stability, not all security fixes & new features)"
depends="linux-postmarketos-lts"
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}
kernel_stable() {
pkgdesc="Stable kernel from Alpine Linux (linux-stable)"
depends="linux-stable"
pkgdesc="Stable kernel (recommended, best balance between stability and features)"
depends="linux-postmarketos-stable"
provides="$pkgname-kernel-edge=$pkgver-r$pkgrel"
replaces="$pkgname-kernel-edge"
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}
kernel_postmarketos_qcom_laptop() {
pkgdesc="Mainline kernel with additional patches for Qualcomm Snapdragon-based laptops (linux-postmarketos-qcom-laptop)"
pkgdesc="Close-To-Mainline kernel with additional patches for Qualcomm Snapdragon-based laptops (linux-postmarketos-qcom-laptop)"
depends="linux-postmarketos-qcom-laptop"
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}
kernel_postmarketos_amlogic() {
pkgdesc="Mainline kernel with additional patches for Amlogic AArch64-based devices (linux-postmarketos-amlogic)"
pkgdesc="Close-To-Mainline kernel with additional patches for Amlogic AArch64-based devices (linux-postmarketos-amlogic)"
depends="linux-postmarketos-amlogic"
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}
sha512sums="
3f361d9a3993b7e17d213db848882fa6aa3ad51873b613a8633c97fdf3e9ec542f70b0d4c280a1208736f660d8681ad714dc8307ec01e4528170a2219edabd27 deviceinfo
f3963439a91048944dc78faff486b2e492cd514148f06851237ae12ceb000f38d2efd008e1b341c41d9387fc8916091acf901bc6dc56220a31bf607e2b1b1cf1 deviceinfo
81492d13da96e7718ca546a6e879c54fc105e4b1dc4316b6e91f8c51cfbc816bbb0673222579afb5ce5a38fad91d8be7639aa938e0e8f77ff29a8d5d301d4949 kernel-cmdline.conf
e26948d1f5005b16fefcaa51985010a5e55adef9ba3ed9d1f3d046c4b8928afbdd317123d0ca2fb0904e5431536c0d995144f66ad9025c7937ff0aae0537dfef modules-initfs
"
@@ -3,9 +3,9 @@
# scripts.
deviceinfo_format_version="0"
deviceinfo_name="postmarketOS Trailblazer"
deviceinfo_name="Generic aarch64 system"
deviceinfo_manufacturer="postmarketOS"
deviceinfo_codename="postmarketos-trailblazer"
deviceinfo_codename="generic-aarch64"
deviceinfo_year="2024"
deviceinfo_arch="aarch64"
@@ -1,70 +0,0 @@
#!/bin/sh -e
#
# Handle packages that were moved from depends to _pmb_recommends by nuking
# apk from orbit, adding the packages to world and then re-running it.
# The old version of the package is passed in as the second argument
OLD_VER="$2"
NEW_VER="$1"
old_ver_less() {
[ "$(apk version -t "$OLD_VER" "$1")" = "<" ]
}
# For a given upgrade, ensure that certain package are in
# the world file, otherwise fail with a nice message letting
# the user know how to manually add them
ensure_installed() {
# $1: version to check
# $@: list of packages
local missing ver cmd
ver="$1"
shift
# Only applicable if upgrading from a version older
# than $ver, otherwise we're all good here.
if ! old_ver_less "$ver"; then
return
fi
# Determine which packages in our list aren't in /etc/apk/world
# these packages were moved from depends to _pmb_recommends and
# must be manually installed to ensure we don't break booting
missing="$(printf '%s\n' "$@" | grep -v -f /etc/apk/world | tr '\n' ' ')"
# None missing? then we're good!
[[ -n "$missing" ]] || return
printf '\n\n'
printf 'ERROR: some packages that your device might need are no longer installed\n'
printf ' automatically. To ensure your device continues to function as expected\n'
printf ' plese run the following command:\n\n'
printf ' apk add '
printf '%s ' $missing
printf '\n'
return 0
}
# We migrated everything that isn't required on ALL
# platforms from depends to recommends in 12-r2. Since
# we can't know which packages are in use, the user must
# manually add them all to their world file for now. They
# can uninstall any unused ones after the upgrade at their
# own risk.
ensure_installed 12-r2 \
linux-firmware-qcom \
linux-firmware-ath10k \
linux-firmware-ath11k \
linux-firmware-ath12k \
linux-firmware-qca \
linux-firmware-rtw88 \
firmware-siliconlabs-rs9116 \
firmware-brcm43752 \
soc-qcom-qbootctl \
rmtfs \
pd-mapper \
tqftpserv \
bootmac \
woa-firmware-yoinker \
dtbloader