What kernel project does this apply to? You might want to submit a patch to that instead of android-kernel. SMC driver is not part of even omap.git from android.googlesource. Thought it is in android-omap-tuna-3.0. There you can find below patch merged "Wed Feb 15 22:46:44 2012 -0800" to make the change to the Makefile instead of inline: diff --git a/security/smc/Makefile b/security/smc/Makefile --- a/security/smc/Makefile +++ b/security/smc/Makefile @@ -43,3 +43,6 @@ tf_driver-objs += tf_teec.o obj-$(CONFIG_SECURITY_MIDDLEWARE_COMPONENT) += tf_driver.o obj-$(CONFIG_SECURITY_MIDDLEWARE_COMPONENT) += rproc_drm.o + +plus_sec := $(call as-instr,.arch_extension sec,+sec) +AFLAGS_bridge_pub2sec.o :=-Wa,-march=armv7-a$(plus_sec)
On Monday, July 23, 2012 2:25:52 PM UTC-5, William Roberts wrote: > > Forwarding a patch we used on SEAndroid kernel to fix a compiler issue > with gcc 4.6 > > ---------- Forwarded message ---------- > From: William Roberts > Date: Thu, Jul 19, 2012 at 10:28 PM > Subject: [PATCH] Fix for build error no support ARM mode `smc #0' > To: bill.c.roberts <[email protected]> > Cc: William Roberts > > > Fixes build bug > security/smc/bridge_pub2sec.S:95: Error: selected processor does not > support ARM mode `smc #0' > --- > security/smc/bridge_pub2sec.S | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/security/smc/bridge_pub2sec.S b/security/smc/bridge_pub2sec.S > index 15cd3b7..30b8b35 100644 > --- a/security/smc/bridge_pub2sec.S > +++ b/security/smc/bridge_pub2sec.S > @@ -74,6 +74,7 @@ return_from_irq: > b label_smc > > label_smc: > + .arch_extension sec > INVALIDATE_BTB > dsb > dmb > -- > 1.7.0.4 > > > > > -- > Respectfully, > > William C Roberts > > > -- unsubscribe: [email protected] website: http://groups.google.com/group/android-kernel
