Skip to content
Snippets Groups Projects
Commit f0720042 authored by NullPointerException's avatar NullPointerException Committed by Oleksandr Knyshuk
Browse files

lenovo-phab: add device

parent 44244a70
No related branches found
No related tags found
No related merge requests found
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-lenovo-phab
pkgdesc="Lenovo PHAB"
pkgver=1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="postmarketos-base mkbootimg linux-postmarketos-qcom-msm8916 soc-qcom-msm8916"
makedepends="devicepkg-dev"
source="deviceinfo"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
nonfree_firmware() {
pkgdesc="GPU/WiFi/BT/Modem/Video firmware"
depends="firmware-qcom-adreno-a300 msm-firmware-loader
firmware-qcom-msm8916-wcnss firmware-lenovo-phab-wcnss-nv
firmware-qcom-msm8916-venus"
mkdir "$subpkgdir"
}
sha512sums="
fa16a0ada4086a1d34818bb1135bbc1c079980b50fa338378e6d1063e35c05789db673305106052cde3ce642f0f8b56421e3a682f46bf209e0e525831bbae539 deviceinfo
"
# Reference: <https://postmarketos.org/deviceinfo>
# Please use double quotes only. You can source this file in shell scripts.
deviceinfo_format_version="0"
deviceinfo_name="Lenovo PHAB"
deviceinfo_manufacturer="Lenovo"
deviceinfo_codename="lenovo-phab"
deviceinfo_year="2016"
deviceinfo_dtb="qcom/msm8916-lenovo-phab"
deviceinfo_append_dtb="true"
deviceinfo_modules_initfs=""
deviceinfo_arch="aarch64"
# Device related
deviceinfo_chassis="handset"
deviceinfo_keyboard="false"
deviceinfo_external_storage="true"
deviceinfo_screen_width="720"
deviceinfo_screen_height="1280"
deviceinfo_getty="ttyMSM0;115200"
deviceinfo_gpu_accelerated="true"
# MSM DRM cannot take over the framebuffer from the bootloader at the moment
deviceinfo_no_framebuffer="true"
# Bootloader related
deviceinfo_flash_method="fastboot"
deviceinfo_kernel_cmdline="PMOS_NOSPLASH earlycon ignore_loglevel debug console=ttyMSM0 PMOS_NO_OUTPUT_REDIRECT"
deviceinfo_generate_bootimg="true"
deviceinfo_flash_offset_base="0x80000000"
deviceinfo_flash_offset_kernel="0x00080000"
deviceinfo_flash_offset_ramdisk="0x02000000"
deviceinfo_flash_offset_second="0x00f00000"
deviceinfo_flash_offset_tags="0x01e00000"
deviceinfo_flash_pagesize="2048"
deviceinfo_flash_sparse="true"
pkgname=firmware-lenovo-phab
pkgver=1
pkgrel=1
pkgdesc="Firmware for Lenovo PHAB"
url="https://github.com/k1gen/vendor_lenovo_phab"
subpackages="$pkgname-wcnss-nv:wcnss_nv"
arch="aarch64"
license="proprietary"
options="!check !strip !archcheck !tracedeps pmb:cross-native"
_commit="31242bf5d60691e4809da0ed78ef76e8ced7a4bf"
source="$pkgname-$_commit.tar.gz::$url/archive/$_commit.tar.gz"
_fwdir="/lib/firmware/postmarketos"
package() {
mkdir -p "$pkgdir"
}
wcnss_nv() {
pkgdesc="Lenovo PHAB WiFi/BT firmware configuration"
cd "$srcdir/vendor_lenovo_phab-$_commit"
install -Dm644 WCNSS_qcom_wlan_nv.bin -t "$subpkgdir/$_fwdir"/wlan/prima
}
sha512sums="
23d0ed9c473d9586564a2959bca5e4d8efded938ac27cf6b9282b75a57491891f356ffe14a4ebbbdde601de7ca0c86726d3ddf524536f3947213b7030ff89179 firmware-lenovo-phab-31242bf5d60691e4809da0ed78ef76e8ced7a4bf.tar.gz
"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment