summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorYork Sun <york.sun@nxp.com>2018-06-14 14:38:48 -0700
committerYork Sun <york.sun@nxp.com>2018-07-26 10:59:35 -0700
commit7550dbe38b3ffb49f1ea290beeaf633606c6c869 (patch)
treecce40f49afc179cd65677808d4f7f0b7542ca7d2 /Makefile
parent67b4f5302a40bd9a963e48d964a5895d60f75e8f (diff)
spl: Add option SPL_PAYLOAD
Some legacy boards use RAW image for SPL boot. Add Kconfig option SPL_PAYLOAD to set alternative image. Signed-off-by: York Sun <york.sun@nxp.com> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 79cbad22db..36c145b71b 100644
--- a/Makefile
+++ b/Makefile
@@ -1111,8 +1111,8 @@ u-boot.sha1: u-boot.bin
u-boot.dis: u-boot
$(OBJDUMP) -d $< > $@
-ifdef CONFIG_TPL
-SPL_PAYLOAD := tpl/u-boot-with-tpl.bin
+ifneq ($(CONFIG_SPL_PAYLOAD),)
+SPL_PAYLOAD := $(CONFIG_SPL_PAYLOAD:"%"=%)
else
SPL_PAYLOAD := u-boot.bin
endif