]> code.ossystems Code Review - openembedded-core.git/commit
uboot: Fixes SPL verified boot on corner cases
authorKlaus Heinrich Kiwi <klaus@linux.vnet.ibm.com>
Wed, 31 Mar 2021 13:23:13 +0000 (10:23 -0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 6 Apr 2021 21:37:19 +0000 (22:37 +0100)
commitdc26d35e0935f30af55a3d2cb5c501d1b5c35437
tree94cfb50d3a59300fa85c82874d27e537d2dde740
parent6a2a1a0d38499b2537e1b39ac34677cd52b81fc0
uboot: Fixes SPL verified boot on corner cases

* The kernel-fitimage class adds a do_assemble_fitimage_initramfs task
  regardless of INITRAMFS_IMAGE_BUNDLE setting, which in some cases can
  result in that task running after do_uboot_assemble_fitimage and
  overwriting the u-boot-spl.dtb file with the pristine version (without
  public key). Fix this by making do_uboot_assemble_fitimage dependant
  on both do_assemble_fitimage_* tasks, regardless of the aforementioned
  setting.

* Adjust 'type' and 'os' on the U-boot fitimage its script so that
  mkimage/dumpimage can recognize them.

* Move the deployment of the u-boot-spl-nodtb files outside of
  concat_spl_dtb_helper(), so that we can better isolate the scenarios
  of creating an (unsigned) U-Boot fitimage versus also signing it. This
  prevents some stale files from being deployed in the images directory.

* Remove any u-boot-fitImage and u-boot-its files from build tree, in
  case the build tree is being reused across bitbake calls.

Signed-off-by: Klaus Heinrich Kiwi <klaus@linux.vnet.ibm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/uboot-sign.bbclass
meta/lib/oeqa/selftest/cases/fitimage.py