diff mbox

[U-Boot] efi_loader: Fix typo in distro script

Message ID 1466637338-18358-1-git-send-email-agraf@suse.de
State Accepted
Commit fba5f93c71902079f096549e886e4774334bc7ca
Delegated to: Tom Rini
Headers show

Commit Message

Alexander Graf June 22, 2016, 11:15 p.m. UTC
The distro script is supposed to use the internal fdt as fallback if we
find no viable other option. However, we're missing a space key to actually
make that work.

Add the space, so we can successfully load an EFI blob even when there is
no device tree provided on the target device.

Signed-off-by: Alexander Graf <agraf@suse.de>
---
 include/config_distro_bootcmd.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Tom Rini June 25, 2016, 2:53 a.m. UTC | #1
On Thu, Jun 23, 2016 at 01:15:38AM +0200, Alexander Graf wrote:

> The distro script is supposed to use the internal fdt as fallback if we
> find no viable other option. However, we're missing a space key to actually
> make that work.
> 
> Add the space, so we can successfully load an EFI blob even when there is
> no device tree provided on the target device.
> 
> Signed-off-by: Alexander Graf <agraf@suse.de>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/include/config_distro_bootcmd.h b/include/config_distro_bootcmd.h
index 4db6faa..9ecaf38 100644
--- a/include/config_distro_bootcmd.h
+++ b/include/config_distro_bootcmd.h
@@ -120,7 +120,7 @@ 
 			"${kernel_addr_r} efi/boot/"BOOTEFI_NAME"; "      \
 		"if fdt addr ${fdt_addr_r}; then "                        \
 			"bootefi ${kernel_addr_r} ${fdt_addr_r};"         \
-		"else"                                                    \
+		"else "                                                    \
 			"bootefi ${kernel_addr_r} ${fdtcontroladdr};"     \
 		"fi\0"                                                    \
 	\