From: Tom Rini Date: Wed, 31 May 2017 09:10:28 -0400 Subject: [U-Boot] [PATCH v2] armv7m: Fix larger builds In-Reply-To: <1496215625-25664-1-git-send-email-phil.edworthy@renesas.com> References: <1496215625-25664-1-git-send-email-phil.edworthy@renesas.com> Message-ID: <20170531131028.GX10782@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, May 31, 2017 at 08:27:05AM +0100, Phil Edworthy wrote: > The branch instruction only has an 11-bit relative target address, which > is sometimes not enough. > > Signed-off-by: Phil Edworthy > --- > v2: > - Use W(b) instead of ldr+mov. Using this macro requires > CONFIG_ARM_ASM_UNIFIED and CONFIG_THUMB2_KERNEL to be defined. > --- > arch/arm/cpu/armv7m/Makefile | 3 +++ > arch/arm/cpu/armv7m/start.S | 4 +++- > 2 files changed, 6 insertions(+), 1 deletion(-) > > diff --git a/arch/arm/cpu/armv7m/Makefile b/arch/arm/cpu/armv7m/Makefile > index 257fc7f..df1fc95 100644 > --- a/arch/arm/cpu/armv7m/Makefile > +++ b/arch/arm/cpu/armv7m/Makefile > @@ -8,3 +8,6 @@ > extra-y := start.o > obj-y += cpu.o cache.o mpu.o > obj-$(CONFIG_SYS_ARCH_TIMER) += systick-timer.o > + > +asflags-y += -DCONFIG_ARM_ASM_UNIFIED > +asflags-y += -DCONFIG_THUMB2_KERNEL Lets move these two symbols to Kconfig and select them on CPU_V7M, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: