u-boot: Fix condition for install_spl_helper

Message ID 20220405150013.2640178-1-sean.anderson@seco.com
State Accepted, archived
Commit 7dc155961649c022d33cf7c6a5155cdfa5dc2969
Headers show
Series u-boot: Fix condition for install_spl_helper | expand

Commit Message

Sean Anderson April 5, 2022, 3 p.m. UTC
The condition for calling install_spl_helper when compiling multiple
configs does not match the condition for a single config. This causes
compilation failures when ${UBOOT_FITIMAGE_ENABLE} is 1 but
${SPL_SIGN_ENABLE} is not.

Fixes: 5af4dfe83c2 ("u-boot: Add infrastructure to SPL verified boot")
Signed-off-by: Sean Anderson <sean.anderson@seco.com>
---

 meta/classes/uboot-sign.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/meta/classes/uboot-sign.bbclass b/meta/classes/uboot-sign.bbclass
index 8d136e9405..4ca8118eb2 100644
--- a/meta/classes/uboot-sign.bbclass
+++ b/meta/classes/uboot-sign.bbclass
@@ -250,7 +250,7 @@  do_install:append() {
 					[ -n "${UBOOT_DTB_BINARY}" ]; then
 					install_helper
 				fi
-				if [ "${SPL_SIGN_ENABLE}" = "1" -a -n "${SPL_DTB_BINARY}" ]; then
+				if [ "${UBOOT_FITIMAGE_ENABLE}" = "1" -a -n "${SPL_DTB_BINARY}" ]; then
 					install_spl_helper
 				fi
 			done