diff options
Diffstat (limited to 'arch/ppc64/Makefile')
-rw-r--r-- | arch/ppc64/Makefile | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/arch/ppc64/Makefile b/arch/ppc64/Makefile index 521c2a5a2862..fdbd6f44adc0 100644 --- a/arch/ppc64/Makefile +++ b/arch/ppc64/Makefile | |||
@@ -75,17 +75,25 @@ 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) |
81 | 84 | ||
82 | head-y := arch/ppc64/kernel/head.o | 85 | head-y := arch/ppc64/kernel/head.o |
86 | head-y += arch/powerpc/kernel/fpu.o | ||
87 | head-y += arch/powerpc/kernel/entry_64.o | ||
83 | 88 | ||
84 | libs-y += arch/ppc64/lib/ | 89 | libs-y += arch/ppc64/lib/ |
85 | core-y += arch/ppc64/kernel/ | 90 | core-y += arch/ppc64/kernel/ arch/powerpc/kernel/ |
86 | core-y += arch/ppc64/mm/ | 91 | core-y += arch/powerpc/mm/ |
87 | core-$(CONFIG_XMON) += arch/ppc64/xmon/ | 92 | core-y += arch/powerpc/sysdev/ |
88 | drivers-$(CONFIG_OPROFILE) += arch/ppc64/oprofile/ | 93 | core-y += arch/powerpc/platforms/ |
94 | core-y += arch/powerpc/lib/ | ||
95 | core-$(CONFIG_XMON) += arch/powerpc/xmon/ | ||
96 | drivers-$(CONFIG_OPROFILE) += arch/powerpc/oprofile/ | ||
89 | 97 | ||
90 | boot := arch/ppc64/boot | 98 | boot := arch/ppc64/boot |
91 | 99 | ||
@@ -100,7 +108,7 @@ $(boottargets-y): vmlinux | |||
100 | bootimage-$(CONFIG_PPC_PSERIES) := $(boot)/zImage | 108 | bootimage-$(CONFIG_PPC_PSERIES) := $(boot)/zImage |
101 | bootimage-$(CONFIG_PPC_PMAC) := vmlinux | 109 | bootimage-$(CONFIG_PPC_PMAC) := vmlinux |
102 | bootimage-$(CONFIG_PPC_MAPLE) := $(boot)/zImage | 110 | bootimage-$(CONFIG_PPC_MAPLE) := $(boot)/zImage |
103 | bootimage-$(CONFIG_PPC_BPA) := zImage | 111 | bootimage-$(CONFIG_PPC_BPA) := $(boot)/zImage |
104 | bootimage-$(CONFIG_PPC_ISERIES) := vmlinux | 112 | bootimage-$(CONFIG_PPC_ISERIES) := vmlinux |
105 | BOOTIMAGE := $(bootimage-y) | 113 | BOOTIMAGE := $(bootimage-y) |
106 | install: vmlinux | 114 | install: vmlinux |