From 5b3cd7a7a67764737432616dd96538a77ac3c32e Mon Sep 17 00:00:00 2001 From: Jami Kettunen Date: Fri, 15 Jul 2022 18:28:24 +0300 Subject: [PATCH] pmb.aportgen.linux: Install DTBs on header v2 (MR 2194) A single DTB is required for "mkbootimg --dtb ..." --- pmb/aportgen/linux.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pmb/aportgen/linux.py b/pmb/aportgen/linux.py index 14e7c2f4..49043900 100644 --- a/pmb/aportgen/linux.py +++ b/pmb/aportgen/linux.py @@ -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)"""