[U-Boot] [PATCH 10/82] spl: Makefile: Define SPL_ earlier

Simon Glass sjg at chromium.org
Mon Sep 26 05:33:13 CEST 2016


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 at chromium.org>
---

 scripts/Makefile.spl | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/scripts/Makefile.spl b/scripts/Makefile.spl
index a5e0423..4a961f7 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
 
-- 
2.8.0.rc3.226.g39d4020



More information about the U-Boot mailing list