Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.4.19 /arch/ppc64/Makefile

Filename:/arch/ppc64/Makefile
Lines Added:80
Lines Deleted:0
Also changed in: (Previous) 2.4.19-rc5  2.4.19-rc4  2.4.19-rc3  2.4.19-rc2  2.4.19-rc1  2.4.19-pre10 
(Following) 2.4.20-pre5  2.4.20-pre6  2.4.20-pre7  2.4.20-pre8  2.4.20-pre9  2.4.20-pre10 

Location
[  2.4.19
  [  arch
    [  ppc64
       o  Makefile

Patch

diff -urN linux-2.4.18/arch/ppc64/Makefile linux-2.4.19/arch/ppc64/Makefile
--- linux-2.4.18/arch/ppc64/Makefile   Wed Dec 31 16:00:00 1969
+++ linux-2.4.19/arch/ppc64/Makefile   Fri Aug  2 17:39:43 2002
@@ -0,0 +1,80 @@
+# This file is included by the global makefile so that you can add your own
+# architecture-specific flags and dependencies. Remember to do have actions
+# for "archclean" and "archdep" for cleaning up and making dependencies for
+# this architecture
+#
+# This file is subject to the terms and conditions of the GNU General Public
+# License.  See the file "COPYING" in the main directory of this archive
+# for more details.
+#
+# Copyright (C) 1994 by Linus Torvalds
+# Changes for PPC by Gary Thomas
+# Rewritten by Cort Dougan and Paul Mackerras
+# Adjusted for PPC64 by Tom Gall
+#
+
+KERNELLOAD   =0xc000000000000000
+
+ifeq ($(shell uname -m),ppc64)
+CHECKS      = checks
+endif
+
+LINKFLAGS   = -T arch/ppc64/vmlinux.lds -Bstatic \
+      -e $(KERNELLOAD) -Ttext $(KERNELLOAD)
+CFLAGS      := $(CFLAGS) -fsigned-char -msoft-float -pipe \
+      -Wno-uninitialized -mminimal-toc -fno-builtin
+CPP      = $(CC) -E $(CFLAGS)
+
+
+HEAD := arch/ppc64/kernel/head.o
+
+ARCH_SUBDIRS = arch/ppc64/kernel arch/ppc64/mm arch/ppc64/lib
+SUBDIRS := $(SUBDIRS) $(ARCH_SUBDIRS)
+ARCHIVES := arch/ppc64/kernel/kernel.o arch/ppc64/mm/mm.o arch/ppc64/lib/lib.o $(ARCHIVES)
+CORE_FILES := arch/ppc64/kernel/kernel.o arch/ppc64/mm/mm.o arch/ppc64/lib/lib.o $(CORE_FILES)
+
+ifdef CONFIG_XMON
+SUBDIRS += arch/ppc64/xmon
+CORE_FILES += arch/ppc64/xmon/x.o
+endif
+ifdef CONFIG_KDB
+SUBDIRS += arch/ppc64/kdb
+CORE_FILES += arch/ppc64/kdb/kdba.o
+endif
+
+MAKEBOOT = $(MAKE) -C arch/$(ARCH)/boot
+
+checks:
+   @$(MAKE) -C arch/$(ARCH)/kernel checks
+
+ifdef CONFIG_PPC_PSERIES
+BOOT_TARGETS = zImage znetboot.initrd zImage.initrd
+endif
+
+ifdef CONFIG_PPC_ISERIES
+BOOT_TARGETS = vmlinux.sminitrd vmlinux.initrd vmlinux.sm
+endif
+
+$(BOOT_TARGETS): vmlinux
+   @$(MAKEBOOT) $@
+
+znetboot: vmlinux
+ifdef CONFIG_SMP
+   cp -f vmlinux /tftpboot/vmlinux.smp
+else
+   cp -f vmlinux /tftpboot/vmlinux
+endif
+   @$(MAKEBOOT) $@
+
+%_config: arch/ppc64/configs/%_defconfig
+   rm -f .config arch/ppc64/defconfig
+   cp -f arch/ppc64/configs/$(@:config=defconfig) arch/ppc64/defconfig
+
+archclean:
+   rm -f arch/ppc64/kernel/{ppc_defs.h,checks,mk_defs.s,mk_defs_out.c,mk_defs_tpl}
+   @$(MAKEBOOT) clean
+
+archmrproper:
+
+archdep:
+   $(MAKEBOOT) fastdep


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.