From: Simon Glass Date: Mon, 16 Jan 2017 07:03:28 -0700 Subject: [U-Boot] [PATCH v3 03/62] spl: Makefile: Define SPL_ earlier In-Reply-To: <20170116140427.29283-1-sjg@chromium.org> References: <20170116140427.29283-1-sjg@chromium.org> Message-ID: <20170116140427.29283-4-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 Reviewed-by: Bin Meng --- Changes in v3: None Changes in v2: None scripts/Makefile.spl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/Makefile.spl b/scripts/Makefile.spl index c962bbca2c1..ced10e6f95a 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.11.0.483.g087da7b7c-goog