From mboxrd@z Thu Jan 1 00:00:00 1970 From: Felipe Balbi Subject: Re: Build breakage with omap2plus_defconfig Date: Fri, 7 Jan 2011 14:59:30 +0200 Message-ID: <20110107125929.GD9592@legolas.emea.dhcp.ti.com> References: <20110107123859.GA9592@legolas.emea.dhcp.ti.com> <8663c7bb00ba574693af177a10e24043@mail.gmail.com> Reply-To: balbi@ti.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from na3sys009aog104.obsmtp.com ([74.125.149.73]:56721 "EHLO na3sys009aog104.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752641Ab1AGM7e (ORCPT ); Fri, 7 Jan 2011 07:59:34 -0500 Received: by mail-ew0-f43.google.com with SMTP id 22so8241337ewy.2 for ; Fri, 07 Jan 2011 04:59:33 -0800 (PST) Content-Disposition: inline In-Reply-To: <8663c7bb00ba574693af177a10e24043@mail.gmail.com> Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: Santosh Shilimkar Cc: balbi@ti.com, Russell King , Tony Lindgren , Linux OMAP Mailing List , Linux ARM Kernel Mailing List On Fri, Jan 07, 2011 at 06:18:51PM +0530, Santosh Shilimkar wrote: > > -----Original Message----- > > From: linux-omap-owner@vger.kernel.org [mailto:linux-omap- > > owner@vger.kernel.org] On Behalf Of Felipe Balbi > > Sent: Friday, January 07, 2011 6:09 PM > > To: Russell King; Tony Lindgren > > Cc: Linux OMAP Mailing List; Linux ARM Kernel Mailing List > > Subject: Build breakage with omap2plus_defconfig > > > > Hi all, > > > > Today's Linus' tree (01539ba2a706ab7d35fc0667dff919ade7f87d63) fails > > to > > build with omap2plus_defconfig: > > > > $ crossmake > > CHK include/linux/version.h > > CHK include/generated/utsrelease.h > > make[1]: `include/generated/mach-types.h' is up to date. > > CALL scripts/checksyscalls.sh > > CHK include/generated/compile.h > > CC arch/arm/kernel/swp_emulate.o > > /tmp/cc2V7p5j.s: Assembler messages: > > /tmp/cc2V7p5j.s:161: Error: selected processor does not support ARM > > mode `ldrexb r3,[r4]' > > /tmp/cc2V7p5j.s:162: Error: selected processor does not support ARM > > mode `strexb r0,r2,[r4]' > > Well it's not toolchain issue but the omap2plus_defconfig which > selects ARMv6 and ARMV7 together. > > If you remove ARCH_OMAP2 from build, it will go through. I like Catalin's approach: diff --git a/arch/arm/mm/Kconfig b/arch/arm/mm/Kconfig index 49db8b3..0fe2389 100644 --- a/arch/arm/mm/Kconfig +++ b/arch/arm/mm/Kconfig @@ -644,7 +644,7 @@ config ARM_THUMBEE config SWP_EMULATE bool "Emulate SWP/SWPB instructions" - depends on CPU_V7 + depends on CPU_V7 && !CPU_V6 select HAVE_PROC_CPU if PROC_FS default y if SMP help Simple. -- balbi