summaryrefslogtreecommitdiffstats
path: root/arch/ppc/Makefile
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1998-03-17 22:05:47 +0000
committerRalf Baechle <ralf@linux-mips.org>1998-03-17 22:05:47 +0000
commit27cfca1ec98e91261b1a5355d10a8996464b63af (patch)
tree8e895a53e372fa682b4c0a585b9377d67ed70d0e /arch/ppc/Makefile
parent6a76fb7214c477ccf6582bd79c5b4ccc4f9c41b1 (diff)
Look Ma' what I found on my harddisk ...
o New faster syscalls for 2.1.x, too o Upgrade to 2.1.89. Don't try to run this. It's flaky as hell. But feel free to debug ...
Diffstat (limited to 'arch/ppc/Makefile')
-rw-r--r--arch/ppc/Makefile39
1 files changed, 26 insertions, 13 deletions
diff --git a/arch/ppc/Makefile b/arch/ppc/Makefile
index 6c81701d9..832513c8d 100644
--- a/arch/ppc/Makefile
+++ b/arch/ppc/Makefile
@@ -12,10 +12,13 @@
# Rewritten by Cort Dougan and Paul Mackerras
#
-ifeq ($(CONFIG_PMAC),y)
-KERNELBASE =0xc0000000
-else
+ifdef CONFIG_CHRP
+# XXX for now
KERNELBASE =0x90000000
+KERNELLOAD =0x90010000
+else
+KERNELBASE =0xc0000000
+KERNELLOAD =0xc0000000
endif
# PowerPC (cross) tools
@@ -26,10 +29,11 @@ CHECKS = checks
endif
ASFLAGS =
-LINKFLAGS = -T arch/ppc/vmlinux.lds -Ttext $(KERNELBASE) -Bstatic
+LINKFLAGS = -T arch/ppc/vmlinux.lds -Ttext $(KERNELLOAD) -Bstatic
CFLAGSINC = -D__KERNEL__ -I$(TOPDIR)/include -D__powerpc__
CFLAGS := $(CFLAGS) -D__powerpc__ -fsigned-char -msoft-float -pipe \
- -fno-builtin -ffixed-r2 -Wno-uninitialized -mmultiple -mstring
+ -fno-builtin -ffixed-r2 -Wno-uninitialized -mmultiple -mstring \
+ -DKERNELBASE=$(KERNELBASE)
CPP = $(CC) -E $(CFLAGS)
ifdef CONFIG_601
@@ -56,30 +60,39 @@ SUBDIRS += arch/ppc/xmon
CORE_FILES += arch/ppc/xmon/x.o
endif
-ifdef CONFIG_PMAC
-MAKEBOOT = $(MAKE) -C arch/$(ARCH)/coffboot
-else
-# PReP and CHRP systems
MAKEBOOT = $(MAKE) -C arch/$(ARCH)/boot
-endif
+MAKECOFFBOOT = $(MAKE) -C arch/$(ARCH)/coffboot
+MAKECHRPBOOT = $(MAKE) -C arch/$(ARCH)/chrpboot
checks:
@$(MAKE) -C arch/$(ARCH)/kernel checks
BOOT_TARGETS = netboot znetboot zImage floppy install \
- vmlinux.coff znetboot.initrd zImage.initrd
+ vmlinux.coff znetboot.initrd zImage.initrd vmlinux.coff.initrd
$(BOOT_TARGETS): $(CHECKS) vmlinux
+ @$(MAKECOFFBOOT) $@
@$(MAKEBOOT) $@
+ @$(MAKECHRPBOOT) $@
+
+pmac_config:
+ rm -f .config arch/ppc/defconfig
+ ln -s pmac_defconfig arch/ppc/defconfig
+
+prep_config:
+ rm -f .config arch/ppc/defconfig
+ ln -s prep_defconfig arch/ppc/defconfig
tags:
etags */*.c include/{asm,linux}/*.h arch/ppc/kernel/*.{c,h}
archclean:
- rm -f arch/ppc/kernel/mk_defs arch/ppc/kernel/ppc_defs.h
- rm -f arch/ppc/kernel/checks
+ rm -f arch/ppc/kernel/{mk_defs,ppc_defs.h,find_name,checks}
+ @$(MAKECOFFBOOT) clean
@$(MAKEBOOT) clean
+ @$(MAKECHRPBOOT) clean
archdep:
$(MAKEBOOT) fastdep
+ $(MAKECHRPBOOT) fastdep