diff options
author | Paul Mundt <lethal@linux-sh.org> | 2012-06-18 00:48:08 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-06-18 14:10:58 -0400 |
commit | a1f42beb8e287482d1a802731d4fb7e2bdc2c703 (patch) | |
tree | 30c23c1eee0428da0aa6391874f9c9712b96c0c2 /Makefile | |
parent | 39a50b42f7026027b54131291ad0f350100eac95 (diff) |
Makefile: fix up CROSS_COMPILE and READABLE_ASM interaction.
When the READABLE_ASM cc-option tests were added they were done so prior
to the arch Makefile include, resulting in cc-option being run on the
host cc instead of the factoring in the cross prefix set up by the
architecture.
This bumps the include back up so that cc-option actually runs on the
compiler that we're building with.
Cc: Andi Kleen <andi@firstfloor.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -561,6 +561,8 @@ else | |||
561 | KBUILD_CFLAGS += -O2 | 561 | KBUILD_CFLAGS += -O2 |
562 | endif | 562 | endif |
563 | 563 | ||
564 | include $(srctree)/arch/$(SRCARCH)/Makefile | ||
565 | |||
564 | ifdef CONFIG_READABLE_ASM | 566 | ifdef CONFIG_READABLE_ASM |
565 | # Disable optimizations that make assembler listings hard to read. | 567 | # Disable optimizations that make assembler listings hard to read. |
566 | # reorder blocks reorders the control in the function | 568 | # reorder blocks reorders the control in the function |
@@ -571,8 +573,6 @@ KBUILD_CFLAGS += $(call cc-option,-fno-reorder-blocks,) \ | |||
571 | $(call cc-option,-fno-partial-inlining) | 573 | $(call cc-option,-fno-partial-inlining) |
572 | endif | 574 | endif |
573 | 575 | ||
574 | include $(srctree)/arch/$(SRCARCH)/Makefile | ||
575 | |||
576 | ifneq ($(CONFIG_FRAME_WARN),0) | 576 | ifneq ($(CONFIG_FRAME_WARN),0) |
577 | KBUILD_CFLAGS += $(call cc-option,-Wframe-larger-than=${CONFIG_FRAME_WARN}) | 577 | KBUILD_CFLAGS += $(call cc-option,-Wframe-larger-than=${CONFIG_FRAME_WARN}) |
578 | endif | 578 | endif |