arm: omap3: Compile clock.c with -marm option to unbreak OMAP3530
[platform/kernel/u-boot.git] / arch / arm / mach-omap2 / omap3 / Makefile
index b2fce96..06cc9f2 100644 (file)
@@ -5,6 +5,9 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
+# If clock.c is compiled for Thumb2, then it fails on OMAP3530
+CFLAGS_clock.o += -marm
+
 obj-y  := lowlevel_init.o
 
 obj-y  += board.o