2023-01-28 09:42:20 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
|
|
|
# Maintainer: Jenneron <jenneron@protonmail.com>
|
|
|
|
pkgname=device-lenovo-yoga-5g
|
|
|
|
pkgdesc="Lenovo Yoga 5G"
|
|
|
|
pkgver=1
|
2023-08-02 17:06:01 +00:00
|
|
|
pkgrel=1
|
2023-01-28 09:42:20 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="aarch64"
|
|
|
|
options="!check !archcheck pmb:strict"
|
|
|
|
depends="
|
|
|
|
linux-postmarketos-qcom-sc8180x
|
|
|
|
postmarketos-base
|
|
|
|
soc-qcom-sc8180x
|
|
|
|
"
|
|
|
|
makedepends="devicepkg-dev grub grub-efi"
|
2023-08-02 17:06:01 +00:00
|
|
|
source="deviceinfo modules-initfs"
|
2023-01-28 09:42:20 +00:00
|
|
|
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
|
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
|
|
|
|
grub-mkimage \
|
|
|
|
--prefix="/grub" \
|
|
|
|
--output="bootaa64.efi" \
|
|
|
|
--format="arm64-efi" \
|
|
|
|
--compression="xz" \
|
|
|
|
\
|
|
|
|
all_video \
|
|
|
|
cat \
|
|
|
|
configfile \
|
|
|
|
disk \
|
|
|
|
echo \
|
|
|
|
efi_gop \
|
|
|
|
fat \
|
|
|
|
gzio \
|
|
|
|
help \
|
|
|
|
iso9660 \
|
|
|
|
linux \
|
|
|
|
ls \
|
|
|
|
normal \
|
|
|
|
part_gpt \
|
|
|
|
part_msdos \
|
|
|
|
search \
|
|
|
|
search_label \
|
|
|
|
test \
|
|
|
|
true
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
|
|
|
|
|
|
|
install -Dm644 "$srcdir"/bootaa64.efi \
|
|
|
|
-t "$pkgdir"/boot/EFI/Boot
|
|
|
|
}
|
|
|
|
|
|
|
|
nonfree_firmware() {
|
|
|
|
pkgdesc="WiFi firmware"
|
|
|
|
depends="firmware-lenovo-yoga-5g linux-firmware-ath10k soc-qcom-sc8180x-nonfree-firmware"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
sha512sums="
|
2023-08-02 17:06:01 +00:00
|
|
|
5c3c5e29d0d41c78d99f6474621eedea8df7e2f6c3ea7d51287f9b696839597d02eb6383e6dd37411141d8e1050664baa6830f82abec0c539475c60e5bb71291 deviceinfo
|
|
|
|
a78aab94f673cb68a194d914fa0209366af4bfd6c610a1b923efb3fbc62efb34605d24b23f51b49ee1564975a32ef29c51f986ff63490dd604dd4869bbeadbbd modules-initfs
|
2023-01-28 09:42:20 +00:00
|
|
|
"
|