From: Tom Warren Date: Wed, 20 Dec 2017 16:10:01 +0000 Subject: [U-Boot] [PATCH 1/4] ARM: tegra: don't use CONFIG_SPL_TEXT_BASE when no SPL In-Reply-To: <20171220013037.24485-1-swarren@wwwdotorg.org> References: <20171220013037.24485-1-swarren@wwwdotorg.org> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Stephen, > -----Original Message----- > From: Stephen Warren [mailto:swarren at wwwdotorg.org] > Sent: Tuesday, December 19, 2017 6:31 PM > To: Tom Warren > Cc: Simon Glass ; Tom Rini ; u- > boot at lists.denx.de; Stephen Warren > Subject: [PATCH 1/4] ARM: tegra: don't use CONFIG_SPL_TEXT_BASE when no > SPL > > From: Stephen Warren > > 64-bit Tegra don't use SPL, and soon won't define CONFIG_SPL_TEXT_BASE > when building. Fix the binman .dts file so that it doesn't use undefined values. > > Signed-off-by: Stephen Warren > --- > arch/arm/dts/tegra-u-boot.dtsi | 15 +++++++++------ > 1 file changed, 9 insertions(+), 6 deletions(-) > This series: Reviewed-by: Tom Warren I'll wait a bit for other reviews & apply it to u-boot-tegra today or tomorrow. Tom > diff --git a/arch/arm/dts/tegra-u-boot.dtsi b/arch/arm/dts/tegra-u-boot.dtsi > index cde591c5fca4..4f692ee97572 100644 > --- a/arch/arm/dts/tegra-u-boot.dtsi > +++ b/arch/arm/dts/tegra-u-boot.dtsi > @@ -1,5 +1,11 @@ > #include > > +#ifdef CONFIG_SPL_TEXT_BASE > +#define U_BOOT_OFFSET (CONFIG_SYS_TEXT_BASE - > CONFIG_SPL_TEXT_BASE) > +#else #define U_BOOT_OFFSET 0 #endif > + > / { > binman { > multiple-images; > @@ -9,8 +15,7 @@ > u-boot-spl { > }; > u-boot { > - pos = <(CONFIG_SYS_TEXT_BASE - > - CONFIG_SPL_TEXT_BASE)>; > + pos = <(U_BOOT_OFFSET)>; > }; > }; > > @@ -21,8 +26,7 @@ > u-boot-spl { > }; > u-boot { > - pos = <(CONFIG_SYS_TEXT_BASE - > - CONFIG_SPL_TEXT_BASE)>; > + pos = <(U_BOOT_OFFSET)>; > }; > }; > > @@ -32,8 +36,7 @@ > u-boot-spl { > }; > u-boot-nodtb { > - pos = <(CONFIG_SYS_TEXT_BASE - > - CONFIG_SPL_TEXT_BASE)>; > + pos = <(U_BOOT_OFFSET)>; > }; > }; > }; > -- > 2.15.1 -- nvpublic