lg-bullhead: add firmware package (MR 2128)

This commit is contained in:
rahmanshaber 2021-04-24 00:18:27 -04:00 committed by Oliver Smith
parent 9deeb4bfa3
commit 6b0cc4f335
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
2 changed files with 31 additions and 1 deletions

View File

@ -2,7 +2,7 @@
pkgname=device-lg-bullhead
pkgdesc="Google Nexus 5X"
pkgver=0.1
pkgrel=12
pkgrel=13
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
@ -10,6 +10,14 @@ options="!check !archcheck"
depends="postmarketos-base linux-lg-bullhead mkbootimg mesa-dri-swrast msm-fb-refresher"
makedepends="devicepkg-dev"
source="deviceinfo"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
nonfree_firmware() {
pkgdesc="Proprietary WiFi, Modem, GPU and sensors firmware"
depends="firmware-lg-bullhead"
mkdir "$subpkgdir"
}
build() {
devicepkg_build $startdir $pkgname

View File

@ -0,0 +1,22 @@
pkgname=firmware-lg-bullhead
pkgver=0.1
pkgrel=0
pkgdesc="Firmware for lg-bullhead"
url="https://github.com/undevdecatos/firmware-lg-bullhead"
arch="aarch64"
license="proprietary"
options="!check !strip !archcheck"
_commit="1052f2f7c3e2cedc71706751e88ef3e97f07bb0e"
source="firmware-lg-bullhead-$_commit.tar.gz::https://github.com/undevdecatos/firmware-lg-bullhead/archive/$_commit.tar.gz"
package() {
for path in "$srcdir/$pkgname-$_commit"/*; do
if test -f "$path"; then
install -Dm644 -t"$pkgdir/lib/firmware/postmarketos" "$path"
fi
done
}
sha512sums="401cab0cfb8eddf0074eaf2c0ea7236cdbd8389903d72c18967725ea02e43df05c1248fb9640e71735138a18759187826cb93d3cc14c70f36fc2664057285a9c firmware-lg-bullhead-1052f2f7c3e2cedc71706751e88ef3e97f07bb0e.tar.gz"