oppo-a51f: new device (Oppo Mirror 5s) (MR 1503)
[ci:skip-build]: already built successfully in CI
This commit is contained in:
parent
0bc009892f
commit
5ae1207392
3 changed files with 113 additions and 0 deletions
30
device/testing/device-oppo-a51f/APKBUILD
Normal file
30
device/testing/device-oppo-a51f/APKBUILD
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
# Reference: <https://postmarketos.org/devicepkg>
|
||||||
|
pkgname=device-oppo-a51f
|
||||||
|
pkgdesc="OPPO Mirror 5s"
|
||||||
|
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/Video firmware"
|
||||||
|
depends="linux-firmware-qcom firmware-oppo-a51f-venus
|
||||||
|
firmware-qcom-msm8916-wcnss firmware-oppo-a51f-wcnss-nv"
|
||||||
|
|
||||||
|
mkdir "$subpkgdir"
|
||||||
|
}
|
||||||
|
sha512sums="1db537a1d7f04dabd55912593070eac900a5fd07fb20d840f9fe5b4871e4e878a0423c7c17096f8c64375835fc55a7526304f6d8f986f74820494d252857a922 deviceinfo"
|
35
device/testing/device-oppo-a51f/deviceinfo
Normal file
35
device/testing/device-oppo-a51f/deviceinfo
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
# Reference: <https://postmarketos.org/deviceinfo>
|
||||||
|
# Please use double quotes only. You can source this file in shell scripts.
|
||||||
|
|
||||||
|
deviceinfo_format_version="0"
|
||||||
|
deviceinfo_name="OPPO Mirror 5s"
|
||||||
|
deviceinfo_manufacturer="OPPO"
|
||||||
|
deviceinfo_codename="oppo-a51f"
|
||||||
|
deviceinfo_year="2015"
|
||||||
|
deviceinfo_dtb="qcom/msm8916-oppo-a51f"
|
||||||
|
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"
|
||||||
|
|
||||||
|
# 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="earlycon console=ttyMSM0,115200 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"
|
48
device/testing/firmware-oppo-a51f/APKBUILD
Normal file
48
device/testing/firmware-oppo-a51f/APKBUILD
Normal file
|
@ -0,0 +1,48 @@
|
||||||
|
pkgname=firmware-oppo-a51f
|
||||||
|
pkgver=1
|
||||||
|
pkgrel=0
|
||||||
|
_commit="2064c468592fcd5ac080a7de20039b8c0e6aec83"
|
||||||
|
pkgdesc="Firmware files for Oppo A51f"
|
||||||
|
url="https://postmarketos.org"
|
||||||
|
subpackages="$pkgname-modem $pkgname-venus $pkgname-wcnss $pkgname-wcnss-nv:wcnss_nv"
|
||||||
|
arch="aarch64"
|
||||||
|
license="proprietary"
|
||||||
|
source="https://gitlab.com/natsu1978/firmware-oppo-a51f/-/archive/$_commit/firmware-oppo-a51f-$_commit.tar.gz"
|
||||||
|
options="!check !strip !archcheck !tracedeps pmb:cross-native"
|
||||||
|
builddir="$srcdir/firmware-oppo-a51f-$_commit"
|
||||||
|
|
||||||
|
_fwdir="/lib/firmware/postmarketos"
|
||||||
|
|
||||||
|
package() {
|
||||||
|
# parent package is empty
|
||||||
|
mkdir -p "$pkgdir"
|
||||||
|
}
|
||||||
|
|
||||||
|
modem() {
|
||||||
|
pkgdesc="Oppo A51f modem firmware"
|
||||||
|
install -Dm644 "$builddir"/modem.* -t "$subpkgdir/$_fwdir"
|
||||||
|
install -Dm644 "$builddir"/mba.* -t "$subpkgdir/$_fwdir"
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
venus() {
|
||||||
|
pkgdesc="Oppo A51f video firmware"
|
||||||
|
install -Dm644 "$builddir"/venus.mdt "$builddir"/venus.b* \
|
||||||
|
-t "$subpkgdir/$_fwdir"/qcom/venus-1.8
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
wcnss() {
|
||||||
|
pkgdesc="Oppo A51f WiFi/BT firmware"
|
||||||
|
provides="firmware-qcom-msm8916-wcnss"
|
||||||
|
|
||||||
|
install -Dm644 "$builddir"/wcnss.* -t "$subpkgdir/$_fwdir"
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
wcnss_nv() {
|
||||||
|
pkgdesc="Oppo A51f WiFi/BT firmware configuration"
|
||||||
|
install -Dm644 "$builddir"/WCNSS_qcom_wlan_nv.bin -t "$subpkgdir/$_fwdir"/wlan/prima
|
||||||
|
|
||||||
|
}
|
||||||
|
sha512sums="e0da84c04df9aa2bfaff24498cf6831f0bc6c15087627056395cd14fc258463df4c076f65393915aa4a73d65b34aa19f9b3283002206436d2153a71fba7fe052 firmware-oppo-a51f-2064c468592fcd5ac080a7de20039b8c0e6aec83.tar.gz"
|
Loading…
Reference in a new issue