2023-04-05 17:11:07 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
|
|
|
pkgname=device-oneplus-instantnoodlep
|
|
|
|
pkgdesc="OnePlus 8 Pro"
|
|
|
|
pkgver=0.1
|
2023-04-10 20:26:41 +00:00
|
|
|
pkgrel=1
|
2023-04-05 17:11:07 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="aarch64"
|
|
|
|
options="!check !archcheck"
|
|
|
|
depends="
|
|
|
|
mkbootimg
|
|
|
|
postmarketos-base
|
|
|
|
"
|
2023-04-10 20:26:41 +00:00
|
|
|
makedepends="
|
|
|
|
devicepkg-dev
|
|
|
|
dtc
|
|
|
|
"
|
2023-04-05 17:11:07 +00:00
|
|
|
subpackages="
|
|
|
|
$pkgname-kernel-downstream:kernel_downstream
|
2023-04-10 20:26:41 +00:00
|
|
|
$pkgname-kernel-mainline:kernel_mainline
|
2023-04-05 17:11:07 +00:00
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
|
|
|
"
|
2023-04-10 20:26:41 +00:00
|
|
|
source="
|
|
|
|
deviceinfo
|
|
|
|
sm8250-oneplus-instantnoodlep-empty.dts
|
|
|
|
"
|
2023-04-05 17:11:07 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
kernel_downstream() {
|
|
|
|
pkgdesc="Downstream kernel (not recommended, for debugging purposes)"
|
|
|
|
depends="linux-oneplus-instantnoodlep"
|
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
}
|
|
|
|
|
2023-04-10 20:26:41 +00:00
|
|
|
kernel_mainline() {
|
|
|
|
pkgdesc="Mainline kernel (recommended)"
|
|
|
|
depends="linux-postmarketos-qcom-sm8250"
|
|
|
|
|
|
|
|
dtc -O dtb -o "$srcdir/dtbo.img" -I dts "$srcdir/sm8250-oneplus-instantnoodlep-empty.dts"
|
|
|
|
install -Dm644 "$srcdir/dtbo.img" "$subpkgdir/boot/dtbo.img"
|
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
}
|
|
|
|
|
2023-04-05 17:11:07 +00:00
|
|
|
nonfree_firmware() {
|
|
|
|
pkgdesc="Firmware for OnePlus 8 Pro"
|
|
|
|
depends="firmware-oneplus-instantnoodlep"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="
|
|
|
|
e6f01d250e86dd8f2ec60019bc470b5c6adb5e271dff9bd8420268709f33691db2a756194664539edd95f201ccf69301f953e644a87b298500561c02d0898792 deviceinfo
|
2023-04-10 20:26:41 +00:00
|
|
|
06269dcbd405a18576a476bb976d39bcf91e8c7885a87716f510d66abc2ffe3bfabe56c286ad6fc88878de07427e58965ac833ac0e8cfa7ad393c2fa3b535c88 sm8250-oneplus-instantnoodlep-empty.dts
|
2023-04-05 17:11:07 +00:00
|
|
|
"
|