pmb.aportgen.linux: Install DTBs on header v2 (MR 2194)

A single DTB is required for "mkbootimg --dtb ..."
This commit is contained in:
Jami Kettunen 2022-07-15 18:28:24 +03:00 committed by Clayton Craft
parent de890c83e7
commit 5b3cd7a7a6
No known key found for this signature in database
GPG Key ID: 4A4CED6D7EDF950A
1 changed files with 6 additions and 0 deletions

View File

@ -22,6 +22,12 @@ def generate_apkbuild(args, pkgname, deviceinfo, patches):
downstreamkernel_package "$builddir" "$pkgdir" "$_carch\" \\
"$_flavor" "$_outdir\""""
if deviceinfo.get("header_version") == "2":
package += """
make dtbs_install O="$_outdir" ARCH="$_carch" \\
INSTALL_DTBS_PATH="$pkgdir\"/boot/dtbs"""
if deviceinfo["bootimg_qcdt"] == "true":
build += """\n
# Master DTB (deviceinfo_bootimg_qcdt)"""