lenovo-flex-5g: new device (MR 3838)
This commit is contained in:
parent
4aa0aac861
commit
b249cab428
2 changed files with 85 additions and 0 deletions
59
device/testing/device-lenovo-flex-5g/APKBUILD
Normal file
59
device/testing/device-lenovo-flex-5g/APKBUILD
Normal file
|
@ -0,0 +1,59 @@
|
|||
# Reference: <https://postmarketos.org/devicepkg>
|
||||
# Maintainer: Jenneron <jenneron@protonmail.com>
|
||||
pkgname=device-lenovo-flex-5g
|
||||
pkgdesc="Lenovo Flex 5G"
|
||||
pkgver=1
|
||||
pkgrel=0
|
||||
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"
|
||||
source="deviceinfo"
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
sha512sums="
|
||||
60c20ddb112f7ebfaeada1c06ce8d01c8c65be1eb12527ff02049f00a9d52532027b2d155b32b440a419b4c56ee4e81bcdc1e6e0973e65f9c29836579418d85f deviceinfo
|
||||
"
|
26
device/testing/device-lenovo-flex-5g/deviceinfo
Normal file
26
device/testing/device-lenovo-flex-5g/deviceinfo
Normal file
|
@ -0,0 +1,26 @@
|
|||
# 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 Flex 5G"
|
||||
deviceinfo_manufacturer="Lenovo"
|
||||
deviceinfo_codename="lenovo-flex-5g"
|
||||
deviceinfo_year="2019"
|
||||
deviceinfo_dtb="qcom/sc8180x-lenovo-flex-5g"
|
||||
deviceinfo_modules_initfs="i2c-qcom-geni hid-generic i2c-hid-of i2c-hid-acpi msm drm-dp-aux-bus phy-qcom-edp panel-edp leds-qcom-lpg pwm-bl drm pdr-interface qcom-common qcom-q6v5-pas qrtr-smd"
|
||||
deviceinfo_arch="aarch64"
|
||||
|
||||
# Device related
|
||||
deviceinfo_chassis="convertible"
|
||||
deviceinfo_keyboard="true"
|
||||
deviceinfo_external_storage="true"
|
||||
deviceinfo_screen_width="1920"
|
||||
deviceinfo_screen_height="1080"
|
||||
|
||||
# Bootloader related
|
||||
deviceinfo_flash_method="none"
|
||||
deviceinfo_kernel_cmdline="efi=novamap clk_ignore_unused pd_ignore_unused console=null"
|
||||
deviceinfo_generate_grub_config="true"
|
||||
deviceinfo_boot_filesystem="fat32"
|
||||
deviceinfo_partition_type="gpt"
|
Loading…
Reference in a new issue