From: Simon Glass <sjg@chromium.org>
Date: Wed, 29 Dec 2021 18:57:40 +0000 (-0700)
Subject: x86: efi: Add room for the binman definition in the dtb
X-Git-Tag: v2025.01-rc5-pxa1908~1591^2~2^2~11
X-Git-Url: http://git.dujemihanovic.xyz/img/html/static/git-logo.png?a=commitdiff_plain;h=7f5419a64760e279556c548ec29cf48b8614c2f6;p=u-boot.git

x86: efi: Add room for the binman definition in the dtb

At present only 4KB of spare space is left in the DTB when building the
EFI app. Increase this to 32KB so there is plenty of space to insert the
binman definition. This cannot be expanded later (as with OF_SEPARATE)
because the ELF image has already been built.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviwed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
---

diff --git a/arch/x86/dts/Makefile b/arch/x86/dts/Makefile
index be209aaaf8..5c8c05ec49 100644
--- a/arch/x86/dts/Makefile
+++ b/arch/x86/dts/Makefile
@@ -24,7 +24,7 @@ dtb-y += bayleybay.dtb \
 
 targets += $(dtb-y)
 
-DTC_FLAGS += -R 4 -p 0x1000
+DTC_FLAGS += -R 4 -p $(if $(CONFIG_EFI_APP),0x8000,0x1000)
 
 PHONY += dtbs
 dtbs: $(addprefix $(obj)/, $(dtb-y))