eff90a2071
Rule D: Devices with secure boot and venus present in the firmware partition need: 1. GPU firmware (firmware-qcom-adreno-a300) 2. msm-firmware-loader (for wcnss, modem, venus) 4. device-specific -wcnss-nv firmware [ci:ignore-count] [ci:skip-build] already built successfully in CI
63 lines
2.1 KiB
Text
63 lines
2.1 KiB
Text
# Reference: <https://postmarketos.org/devicepkg>
|
|
# Maintainer: Minecrell <minecrell@minecrell.net>
|
|
# Co-Maintainer: Alexey Min <alexey.min@gmail.com>
|
|
pkgname=device-samsung-a5
|
|
pkgdesc="Samsung Galaxy A5 (2015)"
|
|
pkgver=6
|
|
pkgrel=0
|
|
url="https://postmarketos.org"
|
|
license="MIT"
|
|
arch="aarch64"
|
|
options="!check !archcheck"
|
|
depends="postmarketos-base mkbootimg soc-qcom-msm8916"
|
|
makedepends="devicepkg-dev"
|
|
source="deviceinfo"
|
|
subpackages="
|
|
$pkgname-kernel-mainline:kernel_mainline
|
|
$pkgname-kernel-mainline-modem:kernel_mainline_modem
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
|
"
|
|
|
|
# Backwards compatibility for old device package names
|
|
_substitutes="device-samsung-a5lte device-samsung-a5ulte"
|
|
replaces="$_substitutes"
|
|
for pkg in $replaces; do provides="$provides $pkg=$pkgver-r$pkgrel"; done
|
|
|
|
build() {
|
|
devicepkg_build $startdir $pkgname
|
|
}
|
|
|
|
package() {
|
|
devicepkg_package $startdir $pkgname
|
|
}
|
|
|
|
kernel_mainline() {
|
|
pkgdesc="Close to mainline kernel (no modem, audio routed directly)"
|
|
depends="linux-postmarketos-qcom-msm8916"
|
|
replaces=""
|
|
for pkg in $_substitutes; do replaces="$replaces $pkg-kernel-mainline"; done
|
|
for pkg in $replaces; do provides="$provides $pkg=$pkgver-r$pkgrel"; done
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
}
|
|
|
|
kernel_mainline_modem() {
|
|
pkgdesc="Close to mainline kernel (non-free modem, audio routed through ADSP)"
|
|
depends="linux-postmarketos-qcom-msm8916 soc-qcom-msm8916-modem"
|
|
replaces=""
|
|
for pkg in $_substitutes; do replaces="$replaces $pkg-kernel-mainline-modem"; done
|
|
for pkg in $replaces; do provides="$provides $pkg=$pkgver-r$pkgrel"; done
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
}
|
|
|
|
nonfree_firmware() {
|
|
pkgdesc="GPU/WiFi/BT/Modem/Video firmware"
|
|
depends="firmware-qcom-adreno-a300 msm-firmware-loader firmware-samsung-a5-wcnss-nv"
|
|
replaces=""
|
|
for pkg in $_substitutes; do replaces="$replaces $pkg-nonfree-firmware"; done
|
|
for pkg in $replaces; do provides="$provides $pkg=$pkgver-r$pkgrel"; done
|
|
mkdir "$subpkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
8159d38ec4e9b85ca929de9cd6888475e596b64c73b9c2bedf68e2d21434448fc0d40d6aa3a5aa1d3da767d34557f0691bae7d0802239872fdf5bbb810664dab deviceinfo
|
|
"
|