I just hit an issue cross-compiling the linux-linaro-2.6.37.git source.
I'm seeing errors for arch/arm/mach-omap2/sleep34xx.S like:

 Error: selected processor does not support ARM mode `smc #1'

It appears to be related to commit:

 98be69a ARM: omap3: Remove hand-encoded SMC instructions

After doing a little searching, I stumbled across something similar from
John Rigby:

 http://marc.info/?l=linux-omap&m=129118316614865&w=2

I "fixed" the problem on my system with this patch:

diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile
index f6614a6..985bc89 100644
--- a/arch/arm/mach-omap2/Makefile
+++ b/arch/arm/mach-omap2/Makefile
@@ -68,7 +68,7 @@ obj-$(CONFIG_OMAP_SMARTREFLEX)          += sr_device.o
smartre
 obj-$(CONFIG_OMAP_SMARTREFLEX_CLASS3)  += smartreflex-class3.o

 AFLAGS_sleep24xx.o                     :=-Wa,-march=armv6
-AFLAGS_sleep34xx.o                     :=-Wa,-march=armv7-a
+AFLAGS_sleep34xx.o                     :=-Wa,-march=armv7-a$(plus_sec)

 ifeq ($(CONFIG_PM_VERBOSE),y)
 CFLAGS_pm_bus.o                                += -DDEBUG

My question: Is this patch actually needed for cross-compiling our
kernel, or is there some additional argument I need to pass to Make when
building my kernel?

FYI - My current command line looks like:
 make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- O=out V=1 uImage modules

-andy

_______________________________________________
linaro-dev mailing list
linaro-dev@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-dev

Reply via email to