]> rtime.felk.cvut.cz Git - lisovros/linux_canprio.git/commitdiff
[ARM] 3982/2: Explicitly select 32-bit ARM ISA (-marm)
authorGeorge G. Davis <gdavis@mvista.com>
Tue, 5 Dec 2006 17:28:04 +0000 (18:28 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 7 Dec 2006 16:01:11 +0000 (16:01 +0000)
Do not assume that the ARM GCC toolchain defaults to building for the
32-bit ARM ISA (-marm) case. Instead, explicitly select -marm in CFLAGS
since the toolchain default can be for the 16-bit Thumb ISA (-mthumb) in
some odd/rare cases.

Signed-off-by: George G. Davis <gdavis@mvista.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/Makefile

index 6f4f8bf3607168e4b7df0c213a676ac7d68e8521..b6001f97c80ca183bd87f250c108eb17f11865d2 100644 (file)
@@ -15,6 +15,8 @@ CPPFLAGS_vmlinux.lds = -DTEXT_OFFSET=$(TEXT_OFFSET)
 OBJCOPYFLAGS   :=-O binary -R .note -R .comment -S
 GZFLAGS                :=-9
 #CFLAGS                +=-pipe
+# Explicitly specifiy 32-bit ARM ISA since toolchain default can be -mthumb:
+CFLAGS         +=$(call cc-option,-marm,)
 
 # Do not use arch/arm/defconfig - it's always outdated.
 # Select a platform tht is kept up-to-date