[PATCH] usr/: Updated .incbin support
[linux-flexiantxendom0-3.2.10.git] / arch / ppc64 / Makefile
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
4 # this architecture
5 #
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
8 # for more details.
9 #
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
14 #
15
16 KERNELLOAD      := 0xc000000000000000
17
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
22
23 head-y := arch/ppc64/kernel/head.o
24
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/
30
31 boot := arch/ppc64/boot
32
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)/$@
37
38 %_config: arch/ppc64/configs/%_defconfig
39         rm -f .config arch/ppc64/defconfig
40         cp -f arch/ppc64/configs/$(@:config=defconfig) arch/ppc64/defconfig
41
42 archclean:
43         $(Q)$(MAKE) $(clean)=$(boot)
44
45 prepare: include/asm-ppc64/offsets.h
46
47 arch/ppc64/kernel/asm-offsets.s: include/asm include/linux/version.h \
48                                    include/config/MARKER
49
50 include/asm-ppc64/offsets.h: arch/ppc64/kernel/asm-offsets.s
51         $(call filechk,gen-asm-offsets)
52
53 CLEAN_FILES += include/asm-ppc64/offsets.h