This value is only available if CONFIG_HAVE_TEXT_BASE is enabled. Add conditions to avoid introducing errors in link scripts when it is not.
Signed-off-by: Simon Glass <s...@chromium.org> --- (no changes since v2) Changes in v2: - Depend on CONFIG_EFI_APP instead - Drop change to u-boot-elf rule Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 2f7614191a1..f989c31073f 100644 --- a/Makefile +++ b/Makefile @@ -1050,8 +1050,10 @@ LDFLAGS_u-boot += -z notext $(call ld-option,--apply-dynamic-relocs) LDFLAGS_u-boot += --build-id=none ifeq ($(CONFIG_ARC)$(CONFIG_NIOS2)$(CONFIG_X86)$(CONFIG_XTENSA),) +ifndef CONFIG_EFI_APP LDFLAGS_u-boot += -Ttext $(CONFIG_TEXT_BASE) endif +endif # make the checker run with the right architecture CHECKFLAGS += --arch=$(ARCH) -- 2.43.0