ci(build-kernel): inject DTB capsule certs and fix build-dep - #112
ci(build-kernel): inject DTB capsule certs and fix build-dep#112guanquan (GuanquanTian) wants to merge 2 commits into
Conversation
afaa933 to
75638f0
Compare
Add step to inject FMPCERT, FMPROOT, and FMPSUB certificates from GitHub Secrets into debian.qcom/certs/ during kernel build. Certificates are stored as base64-encoded strings in Secrets and decoded during injection. This enables DTB capsule package generation with proper signing. Signed-off-by: Guanquan Tian <guanquan@qti.qualcomm.com>
Move apt-get build-dep call after "debian/rules clean" generates the real debian/control. This ensures qcom-specific Build-Depends (u-boot-tools, device-tree-compiler) are installed instead of resolving against the archive's generic "linux" source package. Signed-off-by: Guanquan Tian <guanquan@qti.qualcomm.com>
75638f0 to
ab85555
Compare
|
Thanks for sharing this, this is a pretty extensive mechanism, however noting that is baked into the packaging metadata, not separate / independent. The sole reason of creating this repo was to align completely with canonical packaging, that is, ideally, we DO NOT touch their packaging metadata AT ALL. That's why even for versioning, I implemented a build time mechanism , so that metadata is intact. If we really need to adapt / implement a capsule update mechanism, it just can not be baked into the metadata, kernel packaging should still remain 100% intact as it came from canonical, and the capsule update might be a dedicated mechanism living separately, generating a dtb product which ON Target, upon kernel update, is fired, and handles the update. |
As synced, let's check with canonical firstly and see what comment/input canonical have. |
Add DTB capsule certificate injection from GitHub Secrets and fix build-dep resolution order.
Inject DTB capsule certificates from GitHub Secrets
debian.qcom/certs/during kernel buildset +xto prevent exposure in logsResolve build-dep against local debian/control
apt-get build-depcall afterdebian/rules cleangenerates the real debian/control