device-generic-loongarch64: New device

Signed-off-by: Jens Reidel <adrian@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7116>
This commit is contained in:
Jens Reidel 2025-09-17 18:53:13 +02:00 committed by The Friendly Merge Bot
parent ccb4f6d525
commit 87edfd6bb0
No known key found for this signature in database
3 changed files with 85 additions and 0 deletions

View file

@ -0,0 +1,51 @@
# Reference: <https://postmarketos.org/devicepkg>
# Maintainer: Jens Reidel <adrian@postmarketos.org>
pkgname=device-generic-loongarch64
pkgver=1
pkgrel=0
pkgdesc="Generic loongarch64 system"
url="https://postmarketos.org"
arch="loongarch64"
license="MIT"
depends="
alsa-ucm-conf
hwdata
postmarketos-base
systemd-boot
"
makedepends="devicepkg-dev"
subpackages="
$pkgname-kernel-lts:kernel_lts
$pkgname-kernel-stable:kernel_stable
"
source="
deviceinfo
modules-initfs
"
options="!check !archcheck"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
kernel_lts() {
pkgdesc="Alpine LTS kernel (recommended)"
depends="linux-lts"
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}
kernel_stable() {
pkgdesc="Alpine Stable kernel"
depends="linux-stable"
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}
sha512sums="
73e7556bb1c431d52c9d8f8779eacad257cd62f55bc33c8cbb4bc0b8d0d1c83d80295cd80763348fef22253b8968037574dab5b5c8e55b4d2629d07edb93690e deviceinfo
2acfb32ce5d9c43956a49f48113bdfca6558a8c67a5ffd52aa30e35fc281abd7eff5808f8ae47707f4ba6d75d18acbd013813127263e8eb7529660380e9c3e85 modules-initfs
"

View file

@ -0,0 +1,20 @@
# Reference: <https://postmarketos.org/deviceinfo>
# Please use double quotes only. You can source this file in shell scripts.
deviceinfo_format_version="0"
deviceinfo_name="Generic loongarch64 system"
deviceinfo_manufacturer="Generic"
deviceinfo_codename="generic-loongarch64"
deviceinfo_arch="loongarch64"
# Device related
deviceinfo_drm="true"
deviceinfo_chassis="desktop"
deviceinfo_external_storage="true"
deviceinfo_getty="ttyS0;115200"
# Bootloader related
deviceinfo_flash_method="none"
deviceinfo_kernel_cmdline="console=tty0 console=ttyS0,115200 PMOS_FORCE_PARTITION_RESIZE"
deviceinfo_boot_filesystem="fat32"
deviceinfo_generate_systemd_boot="true"

View file

@ -0,0 +1,14 @@
ahci
ehci_hcd
ehci_pci
jbd2
libahci
libata
mbcache
nvme
sd_mod
sg
uas
usb_storage
xhci_hcd
xhci_pci