diff options
Diffstat (limited to 'arch/powerpc/Makefile')
-rw-r--r-- | arch/powerpc/Makefile | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile index 92751ca6f8b1..eb1224c24e3e 100644 --- a/arch/powerpc/Makefile +++ b/arch/powerpc/Makefile | |||
@@ -121,16 +121,17 @@ head-$(CONFIG_FSL_BOOKE) := arch/powerpc/kernel/head_fsl_booke.o | |||
121 | 121 | ||
122 | ifeq ($(CONFIG_PPC32),y) | 122 | ifeq ($(CONFIG_PPC32),y) |
123 | head-$(CONFIG_6xx) += arch/powerpc/kernel/idle_6xx.o | 123 | head-$(CONFIG_6xx) += arch/powerpc/kernel/idle_6xx.o |
124 | head-$(CONFIG_POWER4) += arch/powerpc/kernel/idle_power4.o | ||
125 | head-$(CONFIG_PPC_FPU) += arch/powerpc/kernel/fpu.o | 124 | head-$(CONFIG_PPC_FPU) += arch/powerpc/kernel/fpu.o |
126 | endif | 125 | endif |
127 | 126 | ||
128 | core-y += arch/powerpc/kernel/ \ | 127 | core-y += arch/powerpc/kernel/ |
129 | arch/$(OLDARCH)/kernel/ \ | 128 | core-y += arch/$(OLDARCH)/kernel/ |
130 | arch/powerpc/mm/ \ | 129 | core-$(CONFIG_PPC32) += arch/powerpc/mm/ |
131 | arch/powerpc/lib/ \ | 130 | core-$(CONFIG_PPC64) += arch/$(OLDARCH)/mm/ |
132 | arch/powerpc/sysdev/ \ | 131 | core-$(CONFIG_PPC32) += arch/powerpc/lib/ |
133 | arch/powerpc/platforms/ | 132 | libs-$(CONFIG_PPC64) += arch/$(OLDARCH)/lib/ |
133 | core-y += arch/powerpc/sysdev/ | ||
134 | core-y += arch/powerpc/platforms/ | ||
134 | core-$(CONFIG_PPC32) += arch/ppc/syslib/ | 135 | core-$(CONFIG_PPC32) += arch/ppc/syslib/ |
135 | core-$(CONFIG_MATH_EMULATION) += arch/ppc/math-emu/ | 136 | core-$(CONFIG_MATH_EMULATION) += arch/ppc/math-emu/ |
136 | core-$(CONFIG_XMON) += arch/powerpc/xmon/ | 137 | core-$(CONFIG_XMON) += arch/powerpc/xmon/ |
@@ -141,17 +142,20 @@ drivers-$(CONFIG_CPM2) += arch/ppc/8260_io/ | |||
141 | 142 | ||
142 | drivers-$(CONFIG_OPROFILE) += arch/powerpc/oprofile/ | 143 | drivers-$(CONFIG_OPROFILE) += arch/powerpc/oprofile/ |
143 | 144 | ||
144 | BOOT_TARGETS = zImage zImage.initrd znetboot znetboot.initrd vmlinux.sm | 145 | defaultimage-$(CONFIG_PPC32) := uImage zImage |
145 | 146 | defaultimage-$(CONFIG_PPC_ISERIES) := vmlinux | |
146 | .PHONY: $(BOOT_TARGETS) | 147 | KBUILD_IMAGE := $(defaultimage-y) |
147 | 148 | all: $(KBUILD_IMAGE) | |
148 | all: uImage zImage | ||
149 | 149 | ||
150 | CPPFLAGS_vmlinux.lds := -Upowerpc | 150 | CPPFLAGS_vmlinux.lds := -Upowerpc |
151 | 151 | ||
152 | # All the instructions talk about "make bzImage". | 152 | # All the instructions talk about "make bzImage". |
153 | bzImage: zImage | 153 | bzImage: zImage |
154 | 154 | ||
155 | BOOT_TARGETS = zImage zImage.initrd znetboot znetboot.initrd vmlinux.sm | ||
156 | |||
157 | .PHONY: $(BOOT_TARGETS) | ||
158 | |||
155 | boot := arch/$(OLDARCH)/boot | 159 | boot := arch/$(OLDARCH)/boot |
156 | 160 | ||
157 | $(BOOT_TARGETS): vmlinux | 161 | $(BOOT_TARGETS): vmlinux |