linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* arm: mvebu: Fix compile for multiplatform when ARMv6 is selected
@ 2013-01-11 20:05 Tony Lindgren
  2013-01-11 20:18 ` Olof Johansson
  0 siblings, 1 reply; 3+ messages in thread
From: Tony Lindgren @ 2013-01-11 20:05 UTC (permalink / raw)
  To: linux-arm-kernel

Some systems compile in both ARMv6 and ARMv7 into multiplatform
configurations. This means the default compiler flags are for ARMv6,
and we will get:

arch/arm/mach-mvebu/coherency_ll.S: Assembler messages:
arch/arm/mach-mvebu/coherency_ll.S:45: Error: selected processor does not support `dsb'

Fix this by specifying ARMv7 flags for coherency_ll.o.

Signed-off-by: Tony Lindgren <tony@atomide.com>

--- a/arch/arm/mach-mvebu/Makefile
+++ b/arch/arm/mach-mvebu/Makefile
@@ -1,6 +1,8 @@
 ccflags-$(CONFIG_ARCH_MULTIPLATFORM) := -I$(srctree)/$(src)/include \
 	-I$(srctree)/arch/arm/plat-orion/include
 
+AFLAGS_coherency_ll.o		:= -Wa,-march=armv7-a
+
 obj-y += system-controller.o
 obj-$(CONFIG_MACH_ARMADA_370_XP) += armada-370-xp.o irq-armada-370-xp.o addr-map.o coherency.o coherency_ll.o pmsu.o
 obj-$(CONFIG_SMP)                += platsmp.o headsmp.o

^ permalink raw reply	[flat|nested] 3+ messages in thread

* arm: mvebu: Fix compile for multiplatform when ARMv6 is selected
  2013-01-11 20:05 arm: mvebu: Fix compile for multiplatform when ARMv6 is selected Tony Lindgren
@ 2013-01-11 20:18 ` Olof Johansson
  2013-01-11 20:24   ` Jason Cooper
  0 siblings, 1 reply; 3+ messages in thread
From: Olof Johansson @ 2013-01-11 20:18 UTC (permalink / raw)
  To: linux-arm-kernel

On Fri, Jan 11, 2013 at 12:05:31PM -0800, Tony Lindgren wrote:
> Some systems compile in both ARMv6 and ARMv7 into multiplatform
> configurations. This means the default compiler flags are for ARMv6,
> and we will get:
> 
> arch/arm/mach-mvebu/coherency_ll.S: Assembler messages:
> arch/arm/mach-mvebu/coherency_ll.S:45: Error: selected processor does not support `dsb'
> 
> Fix this by specifying ARMv7 flags for coherency_ll.o.
> 
> Signed-off-by: Tony Lindgren <tony@atomide.com>

Applied to fixes, I don't expect Jason or others to complain about this
so I took the liberty. :)


-Olof

^ permalink raw reply	[flat|nested] 3+ messages in thread

* arm: mvebu: Fix compile for multiplatform when ARMv6 is selected
  2013-01-11 20:18 ` Olof Johansson
@ 2013-01-11 20:24   ` Jason Cooper
  0 siblings, 0 replies; 3+ messages in thread
From: Jason Cooper @ 2013-01-11 20:24 UTC (permalink / raw)
  To: linux-arm-kernel

On Fri, Jan 11, 2013 at 12:18:50PM -0800, Olof Johansson wrote:
> On Fri, Jan 11, 2013 at 12:05:31PM -0800, Tony Lindgren wrote:
> > Some systems compile in both ARMv6 and ARMv7 into multiplatform
> > configurations. This means the default compiler flags are for ARMv6,
> > and we will get:
> > 
> > arch/arm/mach-mvebu/coherency_ll.S: Assembler messages:
> > arch/arm/mach-mvebu/coherency_ll.S:45: Error: selected processor does not support `dsb'
> > 
> > Fix this by specifying ARMv7 flags for coherency_ll.o.
> > 
> > Signed-off-by: Tony Lindgren <tony@atomide.com>
> 
> Applied to fixes, I don't expect Jason or others to complain about this
> so I took the liberty. :)

Complaint-withheld-by: Jason Cooper <jason@lakedaemon.net>

;-)

Jason.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-01-11 20:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-11 20:05 arm: mvebu: Fix compile for multiplatform when ARMv6 is selected Tony Lindgren
2013-01-11 20:18 ` Olof Johansson
2013-01-11 20:24   ` Jason Cooper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).