boot-artifacts: fix BOOTABLE_ARTIFACTS for NXP platforms

For platforms that do not define FIP_UBOOT_DTB, the
'd.getVar('FIP_UBOOT_DTB') gets evaluated to None, which is not equal to
"", and thus the code continues in the wrong "if" branch.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
Javier Viguera 2023-01-10 10:31:04 +01:00
parent 9dc6a491ba
commit 19d940965d
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ def get_bootable_artifacts(d):
artifacts = [] artifacts = []
# For platforms with a FIP artifact, ignore u-boot artifacts # For platforms with a FIP artifact, ignore u-boot artifacts
if d.getVar('FIP_UBOOT_DTB') != "": if d.getVar('FIP_UBOOT_DTB'):
machine = d.getVar('MACHINE', True) or "" machine = d.getVar('MACHINE', True) or ""
# Add ATF artifacts # Add ATF artifacts
for t in atf_types.split(" "): for t in atf_types.split(" "):