diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2009-07-24 07:33:02 -0400 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2009-07-24 07:33:02 -0400 |
commit | 16c79651a5ee1ad7e4fca65a7c5309dfca89ed28 (patch) | |
tree | d34470a098ee2d2aa6af7e111547f9c6599395b5 /arch/arm/Makefile | |
parent | e2ed3be7319f2734fcd9c7638888501934c22751 (diff) |
Thumb-2: Add Thumb-2 support to the build files
This patch adds the necessary entries to the Makefile and Kconfig
files for building the Thumb-2 kernel.
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm/Makefile')
-rw-r--r-- | arch/arm/Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 3505572a21e6..e150f232458d 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile | |||
@@ -93,9 +93,16 @@ ifeq ($(CONFIG_ARM_UNWIND),y) | |||
93 | CFLAGS_ABI +=-funwind-tables | 93 | CFLAGS_ABI +=-funwind-tables |
94 | endif | 94 | endif |
95 | 95 | ||
96 | ifeq ($(CONFIG_THUMB2_KERNEL),y) | ||
97 | AFLAGS_AUTOIT :=$(call as-option,-Wa$(comma)-mimplicit-it=thumb,-Wa$(comma)-mauto-it) | ||
98 | AFLAGS_NOWARN :=$(call as-option,-Wa$(comma)-mno-warn-deprecated,-Wa$(comma)-W) | ||
99 | CFLAGS_THUMB2 :=-mthumb $(AFLAGS_AUTOIT) $(AFLAGS_NOWARN) | ||
100 | AFLAGS_THUMB2 :=$(CFLAGS_THUMB2) -Wa$(comma)-mthumb | ||
101 | endif | ||
102 | |||
96 | # Need -Uarm for gcc < 3.x | 103 | # Need -Uarm for gcc < 3.x |
97 | KBUILD_CFLAGS +=$(CFLAGS_ABI) $(arch-y) $(tune-y) $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,)) -msoft-float -Uarm | 104 | KBUILD_CFLAGS +=$(CFLAGS_ABI) $(CFLAGS_THUMB2) $(arch-y) $(tune-y) $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,)) -msoft-float -Uarm |
98 | KBUILD_AFLAGS +=$(CFLAGS_ABI) $(arch-y) $(tune-y) -include asm/unified.h -msoft-float | 105 | KBUILD_AFLAGS +=$(CFLAGS_ABI) $(AFLAGS_THUMB2) $(arch-y) $(tune-y) -include asm/unified.h -msoft-float |
99 | 106 | ||
100 | CHECKFLAGS += -D__arm__ | 107 | CHECKFLAGS += -D__arm__ |
101 | 108 | ||