powerpc: Add -mno-altivec for ARCH=powerpc builds
[firefly-linux-kernel-4.4.55.git] / arch / powerpc / Makefile
index dedf1219761a195662ea15d2541764cb23077bae..2f4cce06a7e55cd2888c983b01352ce650aa52ec 100644 (file)
@@ -93,6 +93,9 @@ else
 endif
 endif
 
+# No AltiVec instruction when building kernel
+CFLAGS += $(call cc-option,-mno-altivec)
+
 # Enable unit-at-a-time mode when possible. It shrinks the
 # kernel considerably.
 CFLAGS += $(call cc-option,-funit-at-a-time)
@@ -131,7 +134,7 @@ core-y                              += arch/powerpc/kernel/ \
                                   arch/powerpc/sysdev/ \
                                   arch/powerpc/platforms/
 core-$(CONFIG_MATH_EMULATION)  += arch/ppc/math-emu/
-#core-$(CONFIG_XMON)           += arch/powerpc/xmon/
+core-$(CONFIG_XMON)            += arch/powerpc/xmon/
 core-$(CONFIG_APUS)            += arch/ppc/amiga/
 drivers-$(CONFIG_8xx)          += arch/ppc/8xx_io/
 drivers-$(CONFIG_4xx)          += arch/ppc/4xx_io/