Paul Mackerras | 14cf11a | 2005-09-26 16:04:21 +1000 | [diff] [blame] | 1 | # |
| 2 | # Makefile for the linux kernel. |
| 3 | # |
| 4 | |
Stephen Rothwell | bd142b7 | 2005-09-30 13:51:25 +1000 | [diff] [blame] | 5 | ifeq ($(CONFIG_PPC64),y) |
| 6 | EXTRA_CFLAGS += -mno-minimal-toc |
| 7 | endif |
Stephen Rothwell | cabb558 | 2005-09-30 16:16:52 +1000 | [diff] [blame] | 8 | ifeq ($(CONFIG_PPC32),y) |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 9 | CFLAGS_prom_init.o += -fPIC |
Paul Mackerras | b349126 | 2005-10-06 13:24:50 +1000 | [diff] [blame] | 10 | CFLAGS_btext.o += -fPIC |
Stephen Rothwell | cabb558 | 2005-09-30 16:16:52 +1000 | [diff] [blame] | 11 | endif |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 12 | |
Paul Mackerras | 77f543c | 2005-10-18 14:19:41 +1000 | [diff] [blame] | 13 | obj-y := semaphore.o cputable.o ptrace.o syscalls.o \ |
David Gibson | f7f6f4f | 2005-10-19 14:53:32 +1000 | [diff] [blame] | 14 | signal_32.o pmc.o |
Paul Mackerras | fda262b | 2005-10-27 20:20:42 +1000 | [diff] [blame] | 15 | obj-$(CONFIG_PPC64) += setup_64.o binfmt_elf32.o sys_ppc32.o \ |
Stephen Rothwell | 62f4f47 | 2005-11-03 15:26:23 +1100 | [diff] [blame] | 16 | signal_64.o ptrace32.o systbl.o |
Paul Mackerras | 40ef8cb | 2005-10-10 22:50:37 +1000 | [diff] [blame] | 17 | obj-$(CONFIG_ALTIVEC) += vecemu.o vector.o |
| 18 | obj-$(CONFIG_POWER4) += idle_power4.o |
Stephen Rothwell | eec5ef9 | 2005-10-13 15:16:25 +1000 | [diff] [blame] | 19 | obj-$(CONFIG_PPC_OF) += of_device.o |
Paul Mackerras | 033ef33 | 2005-10-26 17:05:24 +1000 | [diff] [blame] | 20 | obj-$(CONFIG_PPC_RTAS) += rtas.o |
Paul Mackerras | f4fcbbe | 2005-11-03 14:41:19 +1100 | [diff] [blame] | 21 | obj-$(CONFIG_RTAS_FLASH) += rtas_flash.o |
| 22 | obj-$(CONFIG_RTAS_PROC) += rtas-proc.o |
Stephen Rothwell | 5804601 | 2005-10-24 14:22:37 +1000 | [diff] [blame] | 23 | obj-$(CONFIG_IBMVIO) += vio.o |
Paul Mackerras | 8ad200d | 2005-11-04 13:28:58 +1100 | [diff] [blame^] | 24 | obj-$(CONFIG_GENERIC_TBSYNC) += smp-tbsync.o |
Paul Mackerras | 40ef8cb | 2005-10-10 22:50:37 +1000 | [diff] [blame] | 25 | |
| 26 | ifeq ($(CONFIG_PPC_MERGE),y) |
| 27 | |
Paul Mackerras | 70d64ce | 2005-10-10 21:52:43 +1000 | [diff] [blame] | 28 | extra-$(CONFIG_PPC_STD_MMU) := head_32.o |
Stephen Rothwell | cabb558 | 2005-09-30 16:16:52 +1000 | [diff] [blame] | 29 | extra-$(CONFIG_PPC64) := head_64.o |
Paul Mackerras | 14cf11a | 2005-09-26 16:04:21 +1000 | [diff] [blame] | 30 | extra-$(CONFIG_40x) := head_4xx.o |
| 31 | extra-$(CONFIG_44x) := head_44x.o |
| 32 | extra-$(CONFIG_FSL_BOOKE) := head_fsl_booke.o |
| 33 | extra-$(CONFIG_8xx) := head_8xx.o |
Paul Mackerras | 14cf11a | 2005-09-26 16:04:21 +1000 | [diff] [blame] | 34 | extra-y += vmlinux.lds |
| 35 | |
Paul Mackerras | f2783c1 | 2005-10-20 09:23:26 +1000 | [diff] [blame] | 36 | obj-y += process.o init_task.o time.o \ |
Stephen Rothwell | 640768e | 2005-10-28 12:51:45 +1000 | [diff] [blame] | 37 | prom.o traps.o setup-common.o |
Paul Mackerras | 22b2803 | 2005-10-28 13:50:39 +1000 | [diff] [blame] | 38 | obj-$(CONFIG_PPC32) += entry_32.o setup_32.o misc_32.o systbl.o |
Paul Mackerras | fda262b | 2005-10-27 20:20:42 +1000 | [diff] [blame] | 39 | obj-$(CONFIG_PPC64) += misc_64.o |
Stephen Rothwell | eec5ef9 | 2005-10-13 15:16:25 +1000 | [diff] [blame] | 40 | obj-$(CONFIG_PPC_OF) += prom_init.o |
Paul Mackerras | 20c8c21 | 2005-09-28 20:28:14 +1000 | [diff] [blame] | 41 | obj-$(CONFIG_MODULES) += ppc_ksyms.o |
Paul Mackerras | 9b6b563 | 2005-10-06 12:06:20 +1000 | [diff] [blame] | 42 | obj-$(CONFIG_BOOTX_TEXT) += btext.o |
Kumar Gala | e6b4fe9 | 2005-10-27 08:54:36 -0500 | [diff] [blame] | 43 | obj-$(CONFIG_6xx) += idle_6xx.o |
Stephen Rothwell | cabb558 | 2005-09-30 16:16:52 +1000 | [diff] [blame] | 44 | |
| 45 | ifeq ($(CONFIG_PPC_ISERIES),y) |
Paul Mackerras | bc6f8a4 | 2005-10-10 22:45:07 +1000 | [diff] [blame] | 46 | $(obj)/head_64.o: $(obj)/lparmap.s |
| 47 | AFLAGS_head_64.o += -I$(obj) |
| 48 | endif |
Paul Mackerras | fd582ec | 2005-10-11 22:08:12 +1000 | [diff] [blame] | 49 | |
| 50 | else |
| 51 | # stuff used from here for ARCH=ppc or ARCH=ppc64 |
Paul Mackerras | 9675c7e | 2005-10-28 08:30:25 +1000 | [diff] [blame] | 52 | obj-$(CONFIG_PPC64) += traps.o process.o init_task.o time.o \ |
| 53 | setup-common.o |
Paul Mackerras | fd582ec | 2005-10-11 22:08:12 +1000 | [diff] [blame] | 54 | |
Paul Mackerras | fd582ec | 2005-10-11 22:08:12 +1000 | [diff] [blame] | 55 | |
Stephen Rothwell | cabb558 | 2005-09-30 16:16:52 +1000 | [diff] [blame] | 56 | endif |
David Gibson | 25c8a78 | 2005-10-27 16:27:25 +1000 | [diff] [blame] | 57 | |
| 58 | extra-$(CONFIG_PPC_FPU) += fpu.o |
Stephen Rothwell | 640768e | 2005-10-28 12:51:45 +1000 | [diff] [blame] | 59 | extra-$(CONFIG_PPC64) += entry_64.o |