<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/poky.git/meta/classes/uboot-sign.bbclass, branch hardknott-next</title>
<subtitle>Mirror of git.yoctoproject.org/poky</subtitle>
<id>https://git.enea.com/cgit/linux/poky.git/atom?h=hardknott-next</id>
<link rel='self' href='https://git.enea.com/cgit/linux/poky.git/atom?h=hardknott-next'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/'/>
<updated>2021-04-06T21:37:23+00:00</updated>
<entry>
<title>uboot: Fixes SPL verified boot on corner cases</title>
<updated>2021-04-06T21:37:23+00:00</updated>
<author>
<name>Klaus Heinrich Kiwi</name>
<email>klaus@linux.vnet.ibm.com</email>
</author>
<published>2021-03-31T13:23:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=900f8676e5d3919e6e668c0958eac870e866bdff'/>
<id>urn:sha1:900f8676e5d3919e6e668c0958eac870e866bdff</id>
<content type='text'>
* 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.

(From OE-Core rev: dc26d35e0935f30af55a3d2cb5c501d1b5c35437)

Signed-off-by: Klaus Heinrich Kiwi &lt;klaus@linux.vnet.ibm.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>u-boot: Use a different Key for SPL signing</title>
<updated>2021-04-06T10:36:51+00:00</updated>
<author>
<name>Klaus Heinrich Kiwi</name>
<email>klaus@linux.vnet.ibm.com</email>
</author>
<published>2021-03-26T20:14:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=575cf33e6b7124899f2eb7c72afb67e67ad2a449'/>
<id>urn:sha1:575cf33e6b7124899f2eb7c72afb67e67ad2a449</id>
<content type='text'>
Duplicate the variables governing u-boot signing so that we can have a
different set of keys/parameters signing the SPL.

(From OE-Core rev: 0e6b0fefa02356afeb11a32dfee7f0c7c250ab7f)

Signed-off-by: Klaus Heinrich Kiwi &lt;klaus@linux.vnet.ibm.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>u-boot: Add infrastructure to SPL verified boot</title>
<updated>2021-04-06T10:36:51+00:00</updated>
<author>
<name>Klaus Heinrich Kiwi</name>
<email>klaus@linux.vnet.ibm.com</email>
</author>
<published>2021-03-26T20:14:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=49d274b61b01dc3b48c58526c932e701deae3b62'/>
<id>urn:sha1:49d274b61b01dc3b48c58526c932e701deae3b62</id>
<content type='text'>
Add the necessary infrastructure to create a U-boot proper fitimage,
sign it (using the same keys as the kernel-fitimage), and put the public
key in the SPL binary so that verified SPL boot can be accomplished.

(From OE-Core rev: 5af4dfe83c2f6509015916262be32fc09bc9714d)

Signed-off-by: Klaus Heinrich Kiwi &lt;klaus@linux.vnet.ibm.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>u-boot: Move definitions to common locations</title>
<updated>2021-04-06T10:36:51+00:00</updated>
<author>
<name>Klaus Heinrich Kiwi</name>
<email>klaus@linux.vnet.ibm.com</email>
</author>
<published>2021-03-26T20:14:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=068d114385adc679770dc5e8909ad7c432bf8ec1'/>
<id>urn:sha1:068d114385adc679770dc5e8909ad7c432bf8ec1</id>
<content type='text'>
Move some definitions from u-boot.inc into uboot-config.bbclass and
similarly from kernel-fitimage.bbclass into uboot-sign.bbclass, so that
they can be useful when signing the U-boot proper fitimage, for a
verified-boot SPL.

(From OE-Core rev: cc6c3e31526d3b6ef3a87ba5e548fcad7483bd51)

Signed-off-by: Klaus Heinrich Kiwi &lt;klaus@linux.vnet.ibm.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>uboot: Deploy default symlinks with fitImage</title>
<updated>2021-04-05T14:29:02+00:00</updated>
<author>
<name>Klaus Heinrich Kiwi</name>
<email>klaus@linux.vnet.ibm.com</email>
</author>
<published>2021-04-01T17:25:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=5d9a91a2ae65fe97658e00818b478dd71a0f4ac1'/>
<id>urn:sha1:5d9a91a2ae65fe97658e00818b478dd71a0f4ac1</id>
<content type='text'>
Some image recipes uses ${DEPLOY_DIR_IMAGE}/${UBOOT_BINARY} to create
their images. Force the re-creation of those symlinks pointing to the
u-boot-fitImage in case UBOOT_FITIMAGE_ENABLE is set.

(From OE-Core rev: 11a016aaf243a110f7139ea052fd4e568aad40dd)

Signed-off-by: Klaus Heinrich Kiwi &lt;klaus@linux.vnet.ibm.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>uboot-sign: Refactor do_deploy prefunc to do_deploy_prepend</title>
<updated>2020-06-30T22:03:02+00:00</updated>
<author>
<name>Daniel Klauer</name>
<email>daniel.klauer@gin.de</email>
</author>
<published>2020-06-30T11:38:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=acfda8e923fe73333da9353fc9cba8b35470a8ef'/>
<id>urn:sha1:acfda8e923fe73333da9353fc9cba8b35470a8ef</id>
<content type='text'>
When inherited by the u-boot recipe (UBOOT_PN), uboot-sign.bbclass adds
a concat_dtb step, which places additional files into ${DEPLOYDIR}
before do_deploy. By turning this from a prefunc into a part of the normal
do_deploy function, it becomes possible to use
  do_deploy[cleandirs] = "${DEPLOYDIR}"
in the future, without deleting the files produced by concat_dtb.

As before, care is taken to not interfere with the kernel's do_deploy
definition, since concat_dtb was only needed for u-boot.

(From OE-Core rev: 17619c1a41fa961afc317e4aafab9cdc4ff14a49)

Signed-off-by: Daniel Klauer &lt;daniel.klauer@gin.de&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>kernel-fitimage: uboot-sign: fix missing signature</title>
<updated>2019-07-18T11:16:19+00:00</updated>
<author>
<name>Jun Nie</name>
<email>jun.nie@linaro.org</email>
</author>
<published>2019-07-10T07:10:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=f1cd5b9b532db86db8d5f2e6e04a1d0b6bec2699'/>
<id>urn:sha1:f1cd5b9b532db86db8d5f2e6e04a1d0b6bec2699</id>
<content type='text'>
u-boot.bin with dtb &amp; signature should be placed in ${B} so that
it can be deployed by u-boot as expected. Otherwise, the version
without signature is installed.

(From OE-Core rev: bfc8c964a9760a2c4a1d1902918908a1e7361c17)

Signed-off-by: Jun Nie &lt;jun.nie@linaro.org&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>kernel-fitimage: uboot-sign: Check UBOOT_DTB_BINARY before adding deps</title>
<updated>2019-06-12T20:08:52+00:00</updated>
<author>
<name>Alex Kiernan</name>
<email>alex.kiernan@gmail.com</email>
</author>
<published>2019-06-12T08:15:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=2fca533f60d451c6f50bd9a531bf34120ec88427'/>
<id>urn:sha1:2fca533f60d451c6f50bd9a531bf34120ec88427</id>
<content type='text'>
Since UBOOT_DTB_BINARY empty means we don't need to inject signatures
into the U-Boot DTB, we can remove the dependencies between consumers of
these two classes and resolve a circular dependency between u-boot and
kernel.

(From OE-Core rev: c6b49cb75285e71909d1f9e4bf636f186941b519)

Signed-off-by: Alex Kiernan &lt;alex.kiernan@gmail.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>uboot-sign: Fix u-boot-nodtb symlinks</title>
<updated>2019-05-09T15:31:56+00:00</updated>
<author>
<name>Ying-Chun Liu (PaulLiu)</name>
<email>paulliu@debian.org</email>
</author>
<published>2019-05-08T10:53:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=c99aa3eb43811524b388d5bf42e5363948f12c6c'/>
<id>urn:sha1:c99aa3eb43811524b388d5bf42e5363948f12c6c</id>
<content type='text'>
When using u-boot-nodtb, the symlink didn't install correctly to the
${DEPLOYDIR}. This commit fixes this bug.

(From OE-Core rev: c4eddb65e2ddb61bf519b768fab1e131fb0c297b)

Signed-off-by: Ying-Chun Liu (PaulLiu) &lt;paulliu@debian.org&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>uboot-sign: Fix build when UBOOT_DTB_BINARY is empty</title>
<updated>2019-05-03T05:11:57+00:00</updated>
<author>
<name>Alex Kiernan</name>
<email>alex.kiernan@gmail.com</email>
</author>
<published>2019-04-17T18:31:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=d9e8b11b6c04445512de0739632ce9a8b5b1f653'/>
<id>urn:sha1:d9e8b11b6c04445512de0739632ce9a8b5b1f653</id>
<content type='text'>
When UBOOT_DTB_BINARY is empty and because the code now changes
directory into ${B}, the test for the existence becomes `[ -f ]` which
succeeds and subsequently the install fails.

Reorder the code so it's clear that UBOOT_DTB_BINARY empty is an
expected configuration and then quote UBOOT_DTB_BINARY everywhere so
no one trips over this again.

Fixes: bacb59079eb6 ("uboot-sign: add support for different u-boot configurations")
(From OE-Core rev: e79f0db0745625b35dd83483747e486d08eebfde)

Signed-off-by: Alex Kiernan &lt;alex.kiernan@gmail.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
</feed>
