Makefile (1fbe6f625f69e48c4001051dc1431afc704acfaa) Makefile (9c5f7d39a86316cd13baf973c90ed27f9f1cc979)
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.

--- 49 unchanged lines hidden (view full) ---

58
59ifeq ($(HAS_BIARCH),y)
60override AS += -a$(CONFIG_WORD_SIZE)
61override LD += -m elf$(CONFIG_WORD_SIZE)ppc
62override CC += -m$(CONFIG_WORD_SIZE)
63override AR := GNUTARGET=elf$(CONFIG_WORD_SIZE)-powerpc $(AR)
64endif
65
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.

--- 49 unchanged lines hidden (view full) ---

58
59ifeq ($(HAS_BIARCH),y)
60override AS += -a$(CONFIG_WORD_SIZE)
61override LD += -m elf$(CONFIG_WORD_SIZE)ppc
62override CC += -m$(CONFIG_WORD_SIZE)
63override AR := GNUTARGET=elf$(CONFIG_WORD_SIZE)-powerpc $(AR)
64endif
65
66LDFLAGS_vmlinux-yy := -Bstatic
67LDFLAGS_vmlinux-$(CONFIG_PPC64)$(CONFIG_RELOCATABLE) := -pie
68LDFLAGS_vmlinux := $(LDFLAGS_vmlinux-yy)
66LDFLAGS_vmlinux-y := -Bstatic
67LDFLAGS_vmlinux-$(CONFIG_RELOCATABLE) := -pie
68LDFLAGS_vmlinux := $(LDFLAGS_vmlinux-y)
69
70CFLAGS-$(CONFIG_PPC64) := -mminimal-toc -mtraceback=no -mcall-aixdesc
71CFLAGS-$(CONFIG_PPC32) := -ffixed-r2 -mmultiple
72KBUILD_CPPFLAGS += -Iarch/$(ARCH)
73KBUILD_AFLAGS += -Iarch/$(ARCH)
74KBUILD_CFLAGS += -msoft-float -pipe -Iarch/$(ARCH) $(CFLAGS-y)
75CPP = $(CC) -E $(KBUILD_CFLAGS)
76

--- 49 unchanged lines hidden (view full) ---

126endif
127
128# Work around a gcc code-gen bug with -fno-omit-frame-pointer.
129ifeq ($(CONFIG_FUNCTION_TRACER),y)
130KBUILD_CFLAGS += -mno-sched-epilog
131endif
132
133cpu-as-$(CONFIG_4xx) += -Wa,-m405
69
70CFLAGS-$(CONFIG_PPC64) := -mminimal-toc -mtraceback=no -mcall-aixdesc
71CFLAGS-$(CONFIG_PPC32) := -ffixed-r2 -mmultiple
72KBUILD_CPPFLAGS += -Iarch/$(ARCH)
73KBUILD_AFLAGS += -Iarch/$(ARCH)
74KBUILD_CFLAGS += -msoft-float -pipe -Iarch/$(ARCH) $(CFLAGS-y)
75CPP = $(CC) -E $(KBUILD_CFLAGS)
76

--- 49 unchanged lines hidden (view full) ---

126endif
127
128# Work around a gcc code-gen bug with -fno-omit-frame-pointer.
129ifeq ($(CONFIG_FUNCTION_TRACER),y)
130KBUILD_CFLAGS += -mno-sched-epilog
131endif
132
133cpu-as-$(CONFIG_4xx) += -Wa,-m405
134cpu-as-$(CONFIG_6xx) += -Wa,-maltivec
135cpu-as-$(CONFIG_POWER4) += -Wa,-maltivec
134cpu-as-$(CONFIG_ALTIVEC) += -Wa,-maltivec
136cpu-as-$(CONFIG_E500) += -Wa,-me500
137cpu-as-$(CONFIG_E200) += -Wa,-me200
138
139KBUILD_AFLAGS += $(cpu-as-y)
140KBUILD_CFLAGS += $(cpu-as-y)
141
142head-y := arch/powerpc/kernel/head_$(CONFIG_WORD_SIZE).o
143head-$(CONFIG_8xx) := arch/powerpc/kernel/head_8xx.o

--- 17 unchanged lines hidden (view full) ---

161
162drivers-$(CONFIG_OPROFILE) += arch/powerpc/oprofile/
163
164# Default to zImage, override when needed
165all: zImage
166
167# With make 3.82 we cannot mix normal and wildcard targets
168BOOT_TARGETS1 := zImage zImage.initrd uImage
135cpu-as-$(CONFIG_E500) += -Wa,-me500
136cpu-as-$(CONFIG_E200) += -Wa,-me200
137
138KBUILD_AFLAGS += $(cpu-as-y)
139KBUILD_CFLAGS += $(cpu-as-y)
140
141head-y := arch/powerpc/kernel/head_$(CONFIG_WORD_SIZE).o
142head-$(CONFIG_8xx) := arch/powerpc/kernel/head_8xx.o

--- 17 unchanged lines hidden (view full) ---

160
161drivers-$(CONFIG_OPROFILE) += arch/powerpc/oprofile/
162
163# Default to zImage, override when needed
164all: zImage
165
166# With make 3.82 we cannot mix normal and wildcard targets
167BOOT_TARGETS1 := zImage zImage.initrd uImage
169BOOT_TARGETS2 := zImage% dtbImage% treeImage.% cuImage.% simpleImage.%
168BOOT_TARGETS2 := zImage% dtbImage% treeImage.% cuImage.% simpleImage.% uImage.%
170
171PHONY += $(BOOT_TARGETS1) $(BOOT_TARGETS2)
172
173boot := arch/$(ARCH)/boot
174
175ifeq ($(CONFIG_RELOCATABLE),y)
176quiet_cmd_relocs_check = CALL $<
177 cmd_relocs_check = perl $< "$(OBJDUMP)" "$(obj)/vmlinux"

--- 83 unchanged lines hidden ---
169
170PHONY += $(BOOT_TARGETS1) $(BOOT_TARGETS2)
171
172boot := arch/$(ARCH)/boot
173
174ifeq ($(CONFIG_RELOCATABLE),y)
175quiet_cmd_relocs_check = CALL $<
176 cmd_relocs_check = perl $< "$(OBJDUMP)" "$(obj)/vmlinux"

--- 83 unchanged lines hidden ---