patch-2.4.20 linux-2.4.20/arch/ppc/kernel/Makefile
Next file: linux-2.4.20/arch/ppc/kernel/apus_pci.c
Previous file: linux-2.4.20/arch/ppc/defconfig
Back to the patch index
Back to the overall index
- Lines: 107
- Date:
Thu Nov 28 15:53:11 2002
- Orig file:
linux-2.4.19/arch/ppc/kernel/Makefile
- Orig date:
Fri Aug 2 17:39:43 2002
diff -urN linux-2.4.19/arch/ppc/kernel/Makefile linux-2.4.20/arch/ppc/kernel/Makefile
@@ -1,4 +1,4 @@
-# BK Id: SCCS/s.Makefile 1.41 04/16/02 20:08:22 paulus
+# BK Id: %F% %I% %G% %U% %#%
#
#
# Makefile for the linux kernel.
@@ -14,9 +14,9 @@
ifdef CONFIG_PPC64BRIDGE
EXTRA_AFLAGS := -Wa,-mppc64bridge
endif
-
-# Extra CFLAGS so we don't have to do relative includes
-CFLAGS_pmac_setup.o += -I$(TOPDIR)/arch/$(ARCH)/mm -I$(TOPDIR)/drivers/scsi
+ifdef CONFIG_4xx
+EXTRA_AFLAGS := -Wa,-m405
+endif
# Code in these files is used before the kernel is moved to its final position
CFLAGS_prom_init.o += -mrelocatable-lib
@@ -24,6 +24,7 @@
# Start off with 'head.o', change as needed.
HEAD-y := head.o
+HEAD-$(CONFIG_6xx) += idle_6xx.o
HEAD-$(CONFIG_4xx) := head_4xx.o
HEAD-$(CONFIG_8xx) := head_8xx.o
@@ -31,7 +32,7 @@
O_TARGET := kernel.o
-export-objs := ppc_ksyms.o prep_setup.o time.o
+export-objs := ppc_ksyms.o time.o
obj-y := entry.o traps.o irq.o idle.o time.o misc.o \
process.o signal.o ptrace.o align.o \
@@ -39,17 +40,12 @@
cputable.o ppc_htab.o
obj-$(CONFIG_6xx) += l2cr.o
obj-$(CONFIG_MODULES) += ppc_ksyms.o
-obj-$(CONFIG_POWER4) += xics.o
-obj-$(CONFIG_PCI) += pci.o pci-dma.o
+obj-$(CONFIG_PCI) += pci.o
+obj-$(CONFIG_PCI) += pci-dma.o
obj-$(CONFIG_KGDB) += ppc-stub.o
obj-$(CONFIG_SMP) += smp.o
-obj-$(CONFIG_4xx) += ppc4xx_pic.o
-obj-$(CONFIG_OAK) += oak_setup.o
-obj-$(CONFIG_WALNUT) += walnut_setup.o
obj-$(CONFIG_TAU) += temp.o
-ifeq ($(CONFIG_WALNUT),y)
-obj-$(CONFIG_PCI) += galaxy_pci.o
-endif
+obj-$(CONFIG_4xx) += ppc4xx_pic.o
obj-$(CONFIG_8xx) += m8xx_setup.o ppc8xx_pic.o
ifeq ($(CONFIG_8xx),y)
obj-$(CONFIG_PCI) += qspan_pci.o
@@ -58,30 +54,14 @@
endif
endif
obj-$(CONFIG_MBX) += i8259.o
-obj-$(CONFIG_APUS) += apus_setup.o
-ifeq ($(CONFIG_APUS),y)
-obj-$(CONFIG_PCI) += apus_pci.o
-endif
-obj-$(CONFIG_ALL_PPC) += pmac_pic.o pmac_setup.o pmac_time.o prom.o \
- prom_init.o pmac_feature.o pmac_pci.o \
- chrp_setup.o chrp_time.o chrp_pci.o \
- open_pic.o indirect_pci.o i8259.o \
- prep_pci.o prep_time.o prep_nvram.o \
- prep_setup.o
-obj-$(CONFIG_NVRAM) += pmac_nvram.o
-obj-$(CONFIG_PMAC_BACKLIGHT) += pmac_backlight.o
-obj-$(CONFIG_PMAC_PBOOK) += sleep.o
-obj-$(CONFIG_PREP_RESIDUAL) += residual.o
-obj-$(CONFIG_PPC_RTAS) += error_log.o proc_rtas.o
-obj-$(CONFIG_GEMINI) += gemini_prom.o gemini_pci.o gemini_setup.o \
- open_pic.o
+obj-$(CONFIG_ALL_PPC) += prom_init.o prom.o open_pic.o \
+ indirect_pci.o i8259.o prep_nvram.o
+obj-$(CONFIG_GEMINI) += open_pic.o
+obj-$(CONFIG_PAL4) += indirect_pci.o pci_auto.o todc_time.o
+obj-$(CONFIG_SPRUCE) += indirect_pci.o pci_auto.o todc_time.o
obj-$(CONFIG_8260) += m8260_setup.o ppc8260_pic.o
obj-$(CONFIG_BOOTX_TEXT) += btext.o
-ifeq ($(CONFIG_SMP),y)
-obj-$(CONFIG_ALL_PPC) += pmac_smp.o chrp_smp.o
-endif
-
include $(TOPDIR)/Rules.make
entry.o: entry.S ppc_defs.h
@@ -90,7 +70,7 @@
head.o: head.S ppc_defs.h
head_4xx.o: head_4xx.S ppc_defs.h
head_8xx.o: head_8xx.S ppc_defs.h
-gemini_prom.o: gemini_prom.S ppc_defs.h
+idle_6xx.o: idle_6xx.S ppc_defs.h
ppc_defs.h: mk_defs.c ppc_defs.head \
$(TOPDIR)/include/asm/mmu.h \
@@ -110,4 +90,3 @@
checks: checks.c
$(HOSTCC) -I$(HPATH) $(HOSTCFLAGS) -D__KERNEL__ -fno-builtin -o checks checks.c
./checks
-
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)