Makefile (82ffd0454bd9bd57780966d47bfd56d579dd4fb3) | Makefile (ed1cd6deb013a11959d17a94e35ce159197632da) |
---|---|
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. --- 199 unchanged lines hidden (view full) --- 208else 209CFLAGS-$(CONFIG_E500) += $(call cc-option,-mcpu=8540 -msoft-float,-mcpu=powerpc) 210endif 211endif 212 213asinstr := $(call as-instr,lis 9$(comma)foo@high,-DHAVE_AS_ATHIGH=1) 214 215KBUILD_CPPFLAGS += -Iarch/$(ARCH) $(asinstr) | 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. --- 199 unchanged lines hidden (view full) --- 208else 209CFLAGS-$(CONFIG_E500) += $(call cc-option,-mcpu=8540 -msoft-float,-mcpu=powerpc) 210endif 211endif 212 213asinstr := $(call as-instr,lis 9$(comma)foo@high,-DHAVE_AS_ATHIGH=1) 214 215KBUILD_CPPFLAGS += -Iarch/$(ARCH) $(asinstr) |
216KBUILD_AFLAGS += -Iarch/$(ARCH) $(AFLAGS-y) | 216KBUILD_AFLAGS += $(AFLAGS-y) |
217KBUILD_CFLAGS += $(call cc-option,-msoft-float) | 217KBUILD_CFLAGS += $(call cc-option,-msoft-float) |
218KBUILD_CFLAGS += -pipe -Iarch/$(ARCH) $(CFLAGS-y) | 218KBUILD_CFLAGS += -pipe $(CFLAGS-y) |
219CPP = $(CC) -E $(KBUILD_CFLAGS) 220 221CHECKFLAGS += -m$(BITS) -D__powerpc__ -D__powerpc$(BITS)__ 222ifdef CONFIG_CPU_BIG_ENDIAN 223CHECKFLAGS += -D__BIG_ENDIAN__ 224else 225CHECKFLAGS += -D__LITTLE_ENDIAN__ 226endif --- 195 unchanged lines hidden (view full) --- 422stack_protector_prepare: prepare0 423ifdef CONFIG_PPC64 424 $(eval KBUILD_CFLAGS += -mstack-protector-guard-offset=$(shell awk '{if ($$2 == "PACA_CANARY") print $$3;}' include/generated/asm-offsets.h)) 425else 426 $(eval KBUILD_CFLAGS += -mstack-protector-guard-offset=$(shell awk '{if ($$2 == "TASK_CANARY") print $$3;}' include/generated/asm-offsets.h)) 427endif 428endif 429 | 219CPP = $(CC) -E $(KBUILD_CFLAGS) 220 221CHECKFLAGS += -m$(BITS) -D__powerpc__ -D__powerpc$(BITS)__ 222ifdef CONFIG_CPU_BIG_ENDIAN 223CHECKFLAGS += -D__BIG_ENDIAN__ 224else 225CHECKFLAGS += -D__LITTLE_ENDIAN__ 226endif --- 195 unchanged lines hidden (view full) --- 422stack_protector_prepare: prepare0 423ifdef CONFIG_PPC64 424 $(eval KBUILD_CFLAGS += -mstack-protector-guard-offset=$(shell awk '{if ($$2 == "PACA_CANARY") print $$3;}' include/generated/asm-offsets.h)) 425else 426 $(eval KBUILD_CFLAGS += -mstack-protector-guard-offset=$(shell awk '{if ($$2 == "TASK_CANARY") print $$3;}' include/generated/asm-offsets.h)) 427endif 428endif 429 |
430ifdef CONFIG_SMP 431prepare: task_cpu_prepare 432 433task_cpu_prepare: prepare0 434 $(eval KBUILD_CFLAGS += -D_TASK_CPU=$(shell awk '{if ($$2 == "TI_CPU") print $$3;}' include/generated/asm-offsets.h)) 435endif 436 |
|
430# Check toolchain versions: 431# - gcc-4.6 is the minimum kernel-wide version so nothing required. 432checkbin: 433 @if test "x${CONFIG_CPU_LITTLE_ENDIAN}" = "xy" \ 434 && $(LD) --version | head -1 | grep ' 2\.24$$' >/dev/null ; then \ 435 echo -n '*** binutils 2.24 miscompiles weak symbols ' ; \ 436 echo 'in some circumstances.' ; \ 437 echo -n '*** Please use a different binutils version.' ; \ 438 false ; \ 439 fi | 437# Check toolchain versions: 438# - gcc-4.6 is the minimum kernel-wide version so nothing required. 439checkbin: 440 @if test "x${CONFIG_CPU_LITTLE_ENDIAN}" = "xy" \ 441 && $(LD) --version | head -1 | grep ' 2\.24$$' >/dev/null ; then \ 442 echo -n '*** binutils 2.24 miscompiles weak symbols ' ; \ 443 echo 'in some circumstances.' ; \ 444 echo -n '*** Please use a different binutils version.' ; \ 445 false ; \ 446 fi |