ba902038ca
This is tested to boot on google-crosshatch, following these instructions: $ pmbootstrap init, choose the mainline kernel $ pmbootstrap install --no-fde $ pmbootstrap initfs hook_add debug-shell (enter fastboot mode on the device) $ fastboot set_active a $ fastboot flash dtbo_a ~/.local/var/pmbootstrap/chroot_rootfs_google-crosshatch/boot/dtbo-google-crosshatch-mainline.img $ pmbootstrap flasher boot And you should get telnet after a while. This kernel takes a long time to build, so [skip ci]. I can confirm it builds locally. Note that this patch adds the mainline dtb path to deviceinfo. But the parameter gets ignored on the downstream kernel, so it's fine to keep it in the shared deviceinfo. Mainlining this device is work in progress, details at: https://gitlab.com/postmarketOS/pmaports/issues/153
38 lines
1 KiB
Text
38 lines
1 KiB
Text
# Reference: <https://postmarketos.org/devicepkg>
|
|
pkgname="device-google-crosshatch"
|
|
pkgdesc="Google Pixel 3 XL"
|
|
pkgver=0.1
|
|
pkgrel=2
|
|
url="https://postmarketos.org"
|
|
license="MIT"
|
|
arch="aarch64"
|
|
options="!check !archcheck"
|
|
depends="postmarketos-base mkbootimg mesa-dri-swrast"
|
|
makedepends="devicepkg-dev"
|
|
source="deviceinfo"
|
|
subpackages="
|
|
$pkgname-kernel-downstream:kernel_downstream
|
|
$pkgname-kernel-mainline:kernel_mainline
|
|
"
|
|
|
|
build() {
|
|
devicepkg_build $startdir $pkgname
|
|
}
|
|
|
|
package() {
|
|
devicepkg_package $startdir $pkgname
|
|
}
|
|
|
|
kernel_downstream() {
|
|
pkgdesc="LineageOS downstream kernel (recommended)"
|
|
depends="linux-google-crosshatch"
|
|
mkdir "$subpkgdir"
|
|
}
|
|
|
|
kernel_mainline() {
|
|
pkgdesc="Attempt at mainlining. DO NOT USE: doesn't work (only USB networking is supported)"
|
|
depends="linux-google-crosshatch-mainline firmware-google-crosshatch-mainline-dtbo"
|
|
mkdir "$subpkgdir"
|
|
}
|
|
|
|
sha512sums="67bfa71f40a1fc761a7fc18d208d05d6da23f9cc7ff0b05c23cc9cb1dbc2be68a6cb77fedfc39938eaf2c41f8cbe9095c7f38ff587d9828d80a4c958d27dfd9a deviceinfo"
|