Commit | Line | Data |
---|---|---|
14cf11af PM |
1 | # |
2 | # Makefile for the linux kernel. | |
3 | # | |
4 | ||
bd142b70 SR |
5 | ifeq ($(CONFIG_PPC64),y) |
6 | EXTRA_CFLAGS += -mno-minimal-toc | |
7 | endif | |
cabb5587 | 8 | ifeq ($(CONFIG_PPC32),y) |
9b6b563c | 9 | CFLAGS_prom_init.o += -fPIC |
b3491269 | 10 | CFLAGS_btext.o += -fPIC |
cabb5587 | 11 | endif |
9b6b563c | 12 | |
70d64cea | 13 | extra-$(CONFIG_PPC_STD_MMU) := head_32.o |
cabb5587 | 14 | extra-$(CONFIG_PPC64) := head_64.o |
14cf11af PM |
15 | extra-$(CONFIG_40x) := head_4xx.o |
16 | extra-$(CONFIG_44x) := head_44x.o | |
17 | extra-$(CONFIG_FSL_BOOKE) := head_fsl_booke.o | |
18 | extra-$(CONFIG_8xx) := head_8xx.o | |
19 | extra-$(CONFIG_6xx) += idle_6xx.o | |
9994a338 | 20 | extra-$(CONFIG_PPC64) += entry_64.o |
14cf11af PM |
21 | extra-$(CONFIG_PPC_FPU) += fpu.o |
22 | extra-y += vmlinux.lds | |
23 | ||
9994a338 PM |
24 | obj-y += traps.o prom.o semaphore.o |
25 | obj-$(CONFIG_PPC32) += entry_32.o setup_32.o misc_32.o | |
bd142b70 | 26 | obj-$(CONFIG_PPC64) += idle_power4.o |
9994a338 | 27 | obj-$(CONFIG_PPC64) += misc_64.o |
bd142b70 | 28 | ifeq ($(CONFIG_PPC32),y) |
b3491269 | 29 | obj-$(CONFIG_PPC_OF) += prom_init.o of_device.o |
20c8c210 | 30 | obj-$(CONFIG_MODULES) += ppc_ksyms.o |
bd142b70 | 31 | endif |
14cf11af | 32 | obj-$(CONFIG_ALTIVEC) += vecemu.o vector.o |
9b6b563c | 33 | obj-$(CONFIG_BOOTX_TEXT) += btext.o |
cabb5587 SR |
34 | |
35 | ifeq ($(CONFIG_PPC_ISERIES),y) | |
bc6f8a4b PM |
36 | $(obj)/head_64.o: $(obj)/lparmap.s |
37 | AFLAGS_head_64.o += -I$(obj) | |
38 | endif | |
cabb5587 | 39 | endif |