diff options
-rw-r--r-- | arch/ppc/Makefile | 4 | ||||
-rw-r--r-- | arch/ppc64/Makefile | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/arch/ppc/Makefile b/arch/ppc/Makefile index 121d2347b89f..94d5716fa7c3 100644 --- a/arch/ppc/Makefile +++ b/arch/ppc/Makefile | |||
@@ -26,6 +26,10 @@ CPPFLAGS += -Iarch/$(ARCH) -Iarch/$(ARCH)/include | |||
26 | AFLAGS += -Iarch/$(ARCH) | 26 | AFLAGS += -Iarch/$(ARCH) |
27 | CFLAGS += -Iarch/$(ARCH) -msoft-float -pipe \ | 27 | CFLAGS += -Iarch/$(ARCH) -msoft-float -pipe \ |
28 | -ffixed-r2 -mmultiple | 28 | -ffixed-r2 -mmultiple |
29 | |||
30 | # No AltiVec instruction when building kernel | ||
31 | CFLAGS += $(call cc-option, -mno-altivec) | ||
32 | |||
29 | CPP = $(CC) -E $(CFLAGS) | 33 | CPP = $(CC) -E $(CFLAGS) |
30 | # Temporary hack until we have migrated to asm-powerpc | 34 | # Temporary hack until we have migrated to asm-powerpc |
31 | LINUXINCLUDE += -Iarch/$(ARCH)/include | 35 | LINUXINCLUDE += -Iarch/$(ARCH)/include |
diff --git a/arch/ppc64/Makefile b/arch/ppc64/Makefile index 743f0dbdebf3..db1b25cdb5be 100644 --- a/arch/ppc64/Makefile +++ b/arch/ppc64/Makefile | |||
@@ -75,6 +75,9 @@ else | |||
75 | CFLAGS += $(call cc-option,-mtune=power4) | 75 | CFLAGS += $(call cc-option,-mtune=power4) |
76 | endif | 76 | endif |
77 | 77 | ||
78 | # No AltiVec instruction when building kernel | ||
79 | CFLAGS += $(call cc-option, -mno-altivec) | ||
80 | |||
78 | # Enable unit-at-a-time mode when possible. It shrinks the | 81 | # Enable unit-at-a-time mode when possible. It shrinks the |
79 | # kernel considerably. | 82 | # kernel considerably. |
80 | CFLAGS += $(call cc-option,-funit-at-a-time) | 83 | CFLAGS += $(call cc-option,-funit-at-a-time) |