diff options
| author | Ryan Eatmon <reatmon@ti.com> | 2024-12-06 15:09:17 -0600 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-12-09 15:23:28 +0000 |
| commit | e9df3e0dd8b810438c965958709d2566c7446525 (patch) | |
| tree | 159f2e9b5b4e9e420e40303932925da4f122b81e /meta/classes-recipe | |
| parent | 3de3bda4c4b72ca21ad91c81db57bf07760e0a3b (diff) | |
| download | poky-e9df3e0dd8b810438c965958709d2566c7446525.tar.gz | |
Revert "uboot-sign: fix U-Boot binary with public key"
This reverts commit 0d14e99aa18ee38293df63d585fafc270a4538be.
The patch removed logic required for correct handling of
UBOOT_SUFFIX=img or UBOOT_SUFFIX=rom. We need to find a better way to
handle the fix for [YOCTO #15649].
(From OE-Core rev: 5e82d33451b5662df1e7fe2518a50644d18aa70d)
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe')
| -rw-r--r-- | meta/classes-recipe/uboot-sign.bbclass | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/classes-recipe/uboot-sign.bbclass b/meta/classes-recipe/uboot-sign.bbclass index 7ee73b872a..a17be745ce 100644 --- a/meta/classes-recipe/uboot-sign.bbclass +++ b/meta/classes-recipe/uboot-sign.bbclass | |||
| @@ -122,7 +122,13 @@ concat_dtb() { | |||
| 122 | # If we're not using a signed u-boot fit, concatenate SPL w/o DTB & U-Boot DTB | 122 | # If we're not using a signed u-boot fit, concatenate SPL w/o DTB & U-Boot DTB |
| 123 | # with public key (otherwise U-Boot will be packaged by uboot_fitimage_assemble) | 123 | # with public key (otherwise U-Boot will be packaged by uboot_fitimage_assemble) |
| 124 | if [ "${SPL_SIGN_ENABLE}" != "1" ] ; then | 124 | if [ "${SPL_SIGN_ENABLE}" != "1" ] ; then |
| 125 | if [ -e "${UBOOT_NODTB_BINARY}" -a -e "${UBOOT_DTB_BINARY}" ]; then | 125 | if [ "x${UBOOT_SUFFIX}" = "ximg" -o "x${UBOOT_SUFFIX}" = "xrom" ] && \ |
| 126 | [ -e "${UBOOT_DTB_BINARY}" ]; then | ||
| 127 | oe_runmake EXT_DTB="${UBOOT_DTB_SIGNED}" ${UBOOT_MAKE_TARGET} | ||
| 128 | if [ -n "${binary}" ]; then | ||
| 129 | cp ${binary} ${UBOOT_BINARYNAME}-${type}.${UBOOT_SUFFIX} | ||
| 130 | fi | ||
| 131 | elif [ -e "${UBOOT_NODTB_BINARY}" -a -e "${UBOOT_DTB_BINARY}" ]; then | ||
| 126 | if [ -n "${binary}" ]; then | 132 | if [ -n "${binary}" ]; then |
| 127 | cat ${UBOOT_NODTB_BINARY} ${UBOOT_DTB_SIGNED} | tee ${binary} > \ | 133 | cat ${UBOOT_NODTB_BINARY} ${UBOOT_DTB_SIGNED} | tee ${binary} > \ |
| 128 | ${UBOOT_BINARYNAME}-${type}.${UBOOT_SUFFIX} | 134 | ${UBOOT_BINARYNAME}-${type}.${UBOOT_SUFFIX} |
