Makefile 1.7 KB
Newer Older
1 2 3 4
#
# Makefile for the linux kernel.
#

5 6
ifeq ($(CONFIG_PPC64),y)
EXTRA_CFLAGS	+= -mno-minimal-toc
7
CFLAGS_ioctl32.o += -Ifs/
8
endif
S
Stephen Rothwell 已提交
9
ifeq ($(CONFIG_PPC32),y)
10
CFLAGS_prom_init.o      += -fPIC
11
CFLAGS_btext.o		+= -fPIC
S
Stephen Rothwell 已提交
12
endif
13

14
obj-y				:= semaphore.o cputable.o ptrace.o syscalls.o \
S
Stephen Rothwell 已提交
15
				   irq.o signal_32.o pmc.o
16
obj-$(CONFIG_PPC64)		+= setup_64.o binfmt_elf32.o sys_ppc32.o \
17 18 19
				   signal_64.o ptrace32.o systbl.o \
				   paca.o ioctl32.o cpu_setup_power4.o \
				   firmware.o
20 21
obj-$(CONFIG_ALTIVEC)		+= vecemu.o vector.o
obj-$(CONFIG_POWER4)		+= idle_power4.o
S
Stephen Rothwell 已提交
22
obj-$(CONFIG_PPC_OF)		+= of_device.o
23
obj-$(CONFIG_PPC_RTAS)		+= rtas.o
24 25
obj-$(CONFIG_RTAS_FLASH)	+= rtas_flash.o
obj-$(CONFIG_RTAS_PROC)		+= rtas-proc.o
26
obj-$(CONFIG_IBMVIO)		+= vio.o
27
obj-$(CONFIG_GENERIC_TBSYNC)	+= smp-tbsync.o
28 29 30

ifeq ($(CONFIG_PPC_MERGE),y)

31
extra-$(CONFIG_PPC_STD_MMU)	:= head_32.o
S
Stephen Rothwell 已提交
32
extra-$(CONFIG_PPC64)		:= head_64.o
33 34 35 36 37 38
extra-$(CONFIG_40x)		:= head_4xx.o
extra-$(CONFIG_44x)		:= head_44x.o
extra-$(CONFIG_FSL_BOOKE)	:= head_fsl_booke.o
extra-$(CONFIG_8xx)		:= head_8xx.o
extra-y				+= vmlinux.lds

39
obj-y				+= process.o init_task.o time.o \
40
				   prom.o traps.o setup-common.o
41
obj-$(CONFIG_PPC32)		+= entry_32.o setup_32.o misc_32.o systbl.o
42
obj-$(CONFIG_PPC64)		+= misc_64.o
S
Stephen Rothwell 已提交
43
obj-$(CONFIG_PPC_OF)		+= prom_init.o
44
obj-$(CONFIG_MODULES)		+= ppc_ksyms.o
45
obj-$(CONFIG_BOOTX_TEXT)	+= btext.o
46
obj-$(CONFIG_6xx)		+= idle_6xx.o
P
Paul Mackerras 已提交
47
obj-$(CONFIG_SMP)		+= smp.o
S
Stephen Rothwell 已提交
48 49

ifeq ($(CONFIG_PPC_ISERIES),y)
50 51 52
$(obj)/head_64.o: $(obj)/lparmap.s
AFLAGS_head_64.o += -I$(obj)
endif
P
Paul Mackerras 已提交
53 54 55

else
# stuff used from here for ARCH=ppc or ARCH=ppc64
P
Paul Mackerras 已提交
56
smpobj-$(CONFIG_SMP)		+= smp.o
57
obj-$(CONFIG_PPC64)		+= traps.o process.o init_task.o time.o \
P
Paul Mackerras 已提交
58
				   setup-common.o $(smpobj-y)
P
Paul Mackerras 已提交
59 60


S
Stephen Rothwell 已提交
61
endif
62 63

extra-$(CONFIG_PPC_FPU)		+= fpu.o
64
extra-$(CONFIG_PPC64)		+= entry_64.o