From: Simon Glass <sjg@chromium.org>
Date: Mon, 16 Jan 2017 14:03:28 +0000 (-0700)
Subject: spl: Makefile: Define SPL_ earlier
X-Git-Tag: v2025.01-rc5-pxa1908~7585
X-Git-Url: http://git.dujemihanovic.xyz/img/static/html/index.html?a=commitdiff_plain;h=d688bd728f2238256a8f4728cf75a711ae38608f;p=u-boot.git

spl: Makefile: Define SPL_ earlier

This Makefile variable can be used in the architecture's main Makefile but
at present it is not set up until later. Set it just before this Makefile is
included.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
---

diff --git a/scripts/Makefile.spl b/scripts/Makefile.spl
index c962bbca2c..ced10e6f95 100644
--- a/scripts/Makefile.spl
+++ b/scripts/Makefile.spl
@@ -35,6 +35,12 @@ else
 SPL_BIN := u-boot-spl
 endif
 
+ifdef CONFIG_SPL_BUILD
+SPL_ := SPL_
+else
+SPL_ :=
+endif
+
 include $(srctree)/config.mk
 include $(srctree)/arch/$(ARCH)/Makefile