diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2008-04-15 15:52:20 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-04-16 17:46:12 -0400 |
commit | 1993cbf4ae7d30f9a417e143c1344466f2e2ae2e (patch) | |
tree | 3730d7c48284ce3d53e516b443e3ef4c83f8edfb | |
parent | 38521a23a99232e14d7454ab59d23565c626ea33 (diff) |
[POWERPC] Provide access to arch/powerpc include path on ppc64
There does not appear to be any reason that we shouldn't just have
-Iarch/$(ARCH) on both ppc32 and ppc64 builds.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
-rw-r--r-- | arch/powerpc/Makefile | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile index dd8082522da3..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)__ |