Makefile (5ac47f7a6efbd4fa9141c249e8af3f74e7944eb7) | Makefile (1fbe9cf2598dae3bd464d860bd89c67b1ff8682b) |
---|---|
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. --- 53 unchanged lines hidden (view full) --- 62override CC += -m$(CONFIG_WORD_SIZE) 63override AR := GNUTARGET=elf$(CONFIG_WORD_SIZE)-powerpc $(AR) 64endif 65 66LDFLAGS_vmlinux-y := -Bstatic 67LDFLAGS_vmlinux-$(CONFIG_RELOCATABLE) := -pie 68LDFLAGS_vmlinux := $(LDFLAGS_vmlinux-y) 69 | 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. --- 53 unchanged lines hidden (view full) --- 62override CC += -m$(CONFIG_WORD_SIZE) 63override AR := GNUTARGET=elf$(CONFIG_WORD_SIZE)-powerpc $(AR) 64endif 65 66LDFLAGS_vmlinux-y := -Bstatic 67LDFLAGS_vmlinux-$(CONFIG_RELOCATABLE) := -pie 68LDFLAGS_vmlinux := $(LDFLAGS_vmlinux-y) 69 |
70CFLAGS-$(CONFIG_PPC64) := -mminimal-toc -mtraceback=no -mcall-aixdesc | 70ifeq ($(CONFIG_PPC64),y) 71ifeq ($(call cc-option-yn,-mcmodel=medium),y) 72 # -mcmodel=medium breaks modules because it uses 32bit offsets from 73 # the TOC pointer to create pointers where possible. Pointers into the 74 # percpu data area are created by this method. 75 # 76 # The kernel module loader relocates the percpu data section from the 77 # original location (starting with 0xd...) to somewhere in the base 78 # kernel percpu data space (starting with 0xc...). We need a full 79 # 64bit relocation for this to work, hence -mcmodel=large. 80 KBUILD_CFLAGS_MODULE += -mcmodel=large 81else 82 export NO_MINIMAL_TOC := -mno-minimal-toc 83endif 84endif 85 86CFLAGS-$(CONFIG_PPC64) := -mtraceback=no -mcall-aixdesc 87CFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mcmodel=medium,-mminimal-toc) |
71CFLAGS-$(CONFIG_PPC32) := -ffixed-r2 -mmultiple 72 73CFLAGS-$(CONFIG_GENERIC_CPU) += $(call cc-option,-mtune=power7,-mtune=power4) 74CFLAGS-$(CONFIG_CELL_CPU) += $(call cc-option,-mcpu=cell) 75CFLAGS-$(CONFIG_POWER4_CPU) += $(call cc-option,-mcpu=power4) 76CFLAGS-$(CONFIG_POWER5_CPU) += $(call cc-option,-mcpu=power5) 77CFLAGS-$(CONFIG_POWER6_CPU) += $(call cc-option,-mcpu=power6) 78CFLAGS-$(CONFIG_POWER7_CPU) += $(call cc-option,-mcpu=power7) --- 180 unchanged lines hidden --- | 88CFLAGS-$(CONFIG_PPC32) := -ffixed-r2 -mmultiple 89 90CFLAGS-$(CONFIG_GENERIC_CPU) += $(call cc-option,-mtune=power7,-mtune=power4) 91CFLAGS-$(CONFIG_CELL_CPU) += $(call cc-option,-mcpu=cell) 92CFLAGS-$(CONFIG_POWER4_CPU) += $(call cc-option,-mcpu=power4) 93CFLAGS-$(CONFIG_POWER5_CPU) += $(call cc-option,-mcpu=power5) 94CFLAGS-$(CONFIG_POWER6_CPU) += $(call cc-option,-mcpu=power6) 95CFLAGS-$(CONFIG_POWER7_CPU) += $(call cc-option,-mcpu=power7) --- 180 unchanged lines hidden --- |