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
37 lines
1 KiB
Text
37 lines
1 KiB
Text
pkgname=android-mkdtimg
|
|
pkgver=1
|
|
pkgrel=0
|
|
pkgdesc="Tool to create dtbo images"
|
|
url="https://android.googlesource.com/platform/system/libufdt/"
|
|
arch="all"
|
|
license="Apache-2.0"
|
|
depends="libfdt"
|
|
makedepends="dtc-dev"
|
|
install=""
|
|
subpackages=""
|
|
# android-o-mr1-iot-release-smart-display-r4
|
|
_commit="f7b3c0ec3ab51b8000de5a5cb7485e91ef35370b"
|
|
source="
|
|
https://gitlab.com/zhuowei/android-mkdtimg/-/archive/$_commit/$_commit.tar.gz
|
|
"
|
|
builddir="$srcdir/android-mkdtimg-$_commit"
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
$CC -o mkdtimg -Wall -Os -I sysdeps/include \
|
|
utils/src/mkdtimg.c utils/src/mkdtimg_cfg_create.c \
|
|
utils/src/mkdtimg_core.c utils/src/mkdtimg_create.c \
|
|
utils/src/mkdtimg_dump.c utils/src/dt_table.c \
|
|
sysdeps/libufdt_sysdeps_posix.c -lfdt
|
|
}
|
|
|
|
check() {
|
|
cd "$builddir"
|
|
}
|
|
|
|
package() {
|
|
install -D -m755 "$builddir"/mkdtimg \
|
|
"$pkgdir"/usr/bin/mkdtimg
|
|
}
|
|
|
|
sha512sums="7f4ccc7046b969a86ab933c52165db3fcf5d821cf9c177f644b87062525ade694beb2de22e83449d89bb2a4d061a4c8efcbd251b11acb9235ee0105295a7a322 f7b3c0ec3ab51b8000de5a5cb7485e91ef35370b.tar.gz"
|