diff options
Diffstat (limited to 'arch/powerpc/Makefile')
-rw-r--r-- | arch/powerpc/Makefile | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile index ab5cfe8ef988..e2ec4a91ccef 100644 --- a/arch/powerpc/Makefile +++ b/arch/powerpc/Makefile | |||
@@ -71,13 +71,11 @@ endif | |||
71 | 71 | ||
72 | LDFLAGS_vmlinux := -Bstatic | 72 | LDFLAGS_vmlinux := -Bstatic |
73 | 73 | ||
74 | CPPFLAGS-$(CONFIG_PPC32) := -Iarch/$(ARCH) | ||
75 | AFLAGS-$(CONFIG_PPC32) := -Iarch/$(ARCH) | ||
76 | CFLAGS-$(CONFIG_PPC64) := -mminimal-toc -mtraceback=none -mcall-aixdesc | 74 | CFLAGS-$(CONFIG_PPC64) := -mminimal-toc -mtraceback=none -mcall-aixdesc |
77 | CFLAGS-$(CONFIG_PPC32) := -Iarch/$(ARCH) -ffixed-r2 -mmultiple | 75 | CFLAGS-$(CONFIG_PPC32) := -ffixed-r2 -mmultiple |
78 | KBUILD_CPPFLAGS += $(CPPFLAGS-y) | 76 | KBUILD_CPPFLAGS += -Iarch/$(ARCH) |
79 | KBUILD_AFLAGS += $(AFLAGS-y) | 77 | KBUILD_AFLAGS += -Iarch/$(ARCH) |
80 | KBUILD_CFLAGS += -msoft-float -pipe $(CFLAGS-y) | 78 | KBUILD_CFLAGS += -msoft-float -pipe -Iarch/$(ARCH) $(CFLAGS-y) |
81 | CPP = $(CC) -E $(KBUILD_CFLAGS) | 79 | CPP = $(CC) -E $(KBUILD_CFLAGS) |
82 | 80 | ||
83 | CHECKFLAGS += -m$(CONFIG_WORD_SIZE) -D__powerpc__ -D__powerpc$(CONFIG_WORD_SIZE)__ | 81 | CHECKFLAGS += -m$(CONFIG_WORD_SIZE) -D__powerpc__ -D__powerpc$(CONFIG_WORD_SIZE)__ |
@@ -164,7 +162,7 @@ boot := arch/$(ARCH)/boot | |||
164 | $(BOOT_TARGETS): vmlinux | 162 | $(BOOT_TARGETS): vmlinux |
165 | $(Q)$(MAKE) ARCH=ppc64 $(build)=$(boot) $(patsubst %,$(boot)/%,$@) | 163 | $(Q)$(MAKE) ARCH=ppc64 $(build)=$(boot) $(patsubst %,$(boot)/%,$@) |
166 | 164 | ||
167 | bootwrapper_install: | 165 | bootwrapper_install %.dtb: |
168 | $(Q)$(MAKE) ARCH=ppc64 $(build)=$(boot) $(patsubst %,$(boot)/%,$@) | 166 | $(Q)$(MAKE) ARCH=ppc64 $(build)=$(boot) $(patsubst %,$(boot)/%,$@) |
169 | 167 | ||
170 | define archhelp | 168 | define archhelp |