1 # This file is included by the global makefile so that you can add your own
2 # architecture-specific flags and dependencies. Remember to do have actions
3 # for "archclean" and "archdep" for cleaning up and making dependencies for
6 # This file is subject to the terms and conditions of the GNU General Public
7 # License. See the file "COPYING" in the main directory of this archive
10 # Copyright (C) 1994 by Linus Torvalds
11 # Changes for PPC by Gary Thomas
12 # Rewritten by Cort Dougan and Paul Mackerras
13 # Adjusted for PPC64 by Tom Gall
16 KERNELLOAD := 0xc000000000000000
18 LDFLAGS := -m elf64ppc
19 LDFLAGS_vmlinux := -Bstatic -e $(KERNELLOAD) -Ttext $(KERNELLOAD)
20 CFLAGS += -msoft-float -pipe -Wno-uninitialized -mminimal-toc \
21 -mtraceback=full -mcpu=power4
23 head-y := arch/ppc64/kernel/head.o
25 libs-y += arch/ppc64/lib/
26 core-y += arch/ppc64/kernel/
27 core-y += arch/ppc64/mm/
28 core-$(CONFIG_XMON) += arch/ppc64/xmon/
29 drivers-$(CONFIG_OPROFILE) += arch/ppc64/oprofile/
31 boot := arch/ppc64/boot
33 boottarget-$(CONFIG_PPC_PSERIES) := zImage zImage.initrd
34 boottarget-$(CONFIG_PPC_ISERIES) := vmlinux.sminitrd vmlinux.initrd vmlinux.sm
35 $(boottarget-y): vmlinux
36 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
38 %_config: arch/ppc64/configs/%_defconfig
39 rm -f .config arch/ppc64/defconfig
40 cp -f arch/ppc64/configs/$(@:config=defconfig) arch/ppc64/defconfig
43 $(Q)$(MAKE) $(clean)=$(boot)
45 prepare: include/asm-ppc64/offsets.h
47 arch/ppc64/kernel/asm-offsets.s: include/asm include/linux/version.h \
50 include/asm-ppc64/offsets.h: arch/ppc64/kernel/asm-offsets.s
51 $(call filechk,gen-asm-offsets)
53 CLEAN_FILES += include/asm-ppc64/offsets.h