Merge "Build a thumb2 kernel and config option to turn for cortexa8"
diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index c93d06c..8fd3623 100644
--- a/arch/arm/Makefile
+++ b/arch/arm/Makefile
@@ -90,6 +90,7 @@
 tune-$(CONFIG_CPU_FEROCEON)	:=$(call cc-option,-mtune=marvell-f,-mtune=xscale)
 tune-$(CONFIG_CPU_V6)		:=$(call cc-option,-mtune=arm1136j-s,-mtune=strongarm)
 tune-$(CONFIG_CPU_V6K)		:=$(call cc-option,-mtune=arm1136j-s,-mtune=strongarm)
+tune-$(CONFIG_CPU_CORETEXA8)    :=-mtune=cortex-a8
 
 ifeq ($(CONFIG_AEABI),y)
 CFLAGS_ABI	:=-mabi=aapcs-linux -mno-thumb-interwork
diff --git a/arch/arm/configs/gfrg200_defconfig b/arch/arm/configs/gfrg200_defconfig
index e4606c8..7379dbd 100644
--- a/arch/arm/configs/gfrg200_defconfig
+++ b/arch/arm/configs/gfrg200_defconfig
@@ -312,3 +312,5 @@
 # CONFIG_CRYPTO_ANSI_CPRNG is not set
 CONFIG_CRC_CCITT=m
 CONFIG_AVERAGE=y
+CONFIG_THUMB2_KERNEL=y
+CONFIG_CPU_CORETEXA8=y
diff --git a/arch/arm/mm/Kconfig b/arch/arm/mm/Kconfig
index ca9764e..734f7dc 100644
--- a/arch/arm/mm/Kconfig
+++ b/arch/arm/mm/Kconfig
@@ -429,6 +429,9 @@
 	select CPU_COPY_V6 if MMU
 	select CPU_TLB_V7 if MMU
 
+config CPU_CORETEXA8
+	bool "Enables some compiler optimizations for coretexa8"
+
 # Figure out what processor architecture version we should be using.
 # This defines the compiler instruction set which depends on the machine type.
 config CPU_32v3