Skip to content

Instantly share code, notes, and snippets.

@nemith
Created July 26, 2012 19:18
Show Gist options
  • Select an option

  • Save nemith/3183930 to your computer and use it in GitHub Desktop.

Select an option

Save nemith/3183930 to your computer and use it in GitHub Desktop.
diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile
index 6d72578..f4e5243 100644
--- a/arch/arm/mach-omap2/Makefile
+++ b/arch/arm/mach-omap2/Makefile
@@ -30,7 +30,7 @@ obj-$(CONFIG_HOTPLUG_CPU) += omap-hotplug.o
obj-$(CONFIG_ARCH_OMAP4) += omap44xx-smc.o omap4-common.o \
omap-wakeupgen.o
-plus_sec := $(call as-instr,.arch_extension sec,+sec)
+plus_sec := +sec
AFLAGS_omap-headsmp.o :=-Wa,-march=armv7-a$(plus_sec)
AFLAGS_omap44xx-smc.o :=-Wa,-march=armv7-a$(plus_sec)
diff --git a/security/smc/Makefile b/security/smc/Makefile
index 58c89ec..b2cf7ad 100644
--- a/security/smc/Makefile
+++ b/security/smc/Makefile
@@ -22,7 +22,7 @@ ifdef S_VERSION_BUILD
EXTRA_CFLAGS += -DS_VERSION_BUILD=$(S_VERSION_BUILD)
endif
-plus_sec := $(call as-instr,.arch_extension sec,+sec)
+plus_sec := +sec
EXTRA_CFLAGS += -Iarch/arm/mach-omap2
EXTRA_CFLAGS += -Iarch/arm/plat-omap/include/plat
@@ -48,5 +48,5 @@ AFLAGS_bridge_pub2sec.o +=-Wa,-march=armv7-a$(plus_sec)
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)
+plus_sec := +sec
AFLAGS_bridge_pub2sec.o :=-Wa,-march=armv7-a$(plus_sec)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment