mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 21:38:32 +08:00
[PATCH] powerpc: remove arch/powerpc/include hack for 64 bit
With the removal of include/asm-powerpc, we no longer need arch/powerpc/include/asm for the 64 bit build. We also do not need -Iarch/powerpc for the 64 bit build either. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
parent
91f14480a5
commit
55bb239e54
@ -61,15 +61,17 @@ endif
|
|||||||
LDFLAGS_vmlinux := -Bstatic
|
LDFLAGS_vmlinux := -Bstatic
|
||||||
|
|
||||||
# The -Iarch/$(ARCH)/include is temporary while we are merging
|
# The -Iarch/$(ARCH)/include is temporary while we are merging
|
||||||
CPPFLAGS += -Iarch/$(ARCH) -Iarch/$(ARCH)/include
|
CPPFLAGS-$(CONFIG_PPC32) := -Iarch/$(ARCH) -Iarch/$(ARCH)/include
|
||||||
AFLAGS += -Iarch/$(ARCH)
|
AFLAGS-$(CONFIG_PPC32) := -Iarch/$(ARCH)
|
||||||
CFLAGS += -Iarch/$(ARCH) -msoft-float -pipe
|
|
||||||
CFLAGS-$(CONFIG_PPC64) := -mminimal-toc -mtraceback=none -mcall-aixdesc
|
CFLAGS-$(CONFIG_PPC64) := -mminimal-toc -mtraceback=none -mcall-aixdesc
|
||||||
CFLAGS-$(CONFIG_PPC32) := -ffixed-r2 -mmultiple
|
CFLAGS-$(CONFIG_PPC32) := -Iarch/$(ARCH) -ffixed-r2 -mmultiple
|
||||||
CFLAGS += $(CFLAGS-y)
|
CPPFLAGS += $(CPPFLAGS-y)
|
||||||
|
AFLAGS += $(AFLAGS-y)
|
||||||
|
CFLAGS += -msoft-float -pipe $(CFLAGS-y)
|
||||||
CPP = $(CC) -E $(CFLAGS)
|
CPP = $(CC) -E $(CFLAGS)
|
||||||
# Temporary hack until we have migrated to asm-powerpc
|
# Temporary hack until we have migrated to asm-powerpc
|
||||||
LINUXINCLUDE += -Iarch/$(ARCH)/include
|
LINUXINCLUDE-$(CONFIG_PPC32) := -Iarch/$(ARCH)/include
|
||||||
|
LINUXINCLUDE += $(LINUXINCLUDE-y)
|
||||||
|
|
||||||
CHECKFLAGS += -m$(SZ) -D__powerpc__ -D__powerpc$(SZ)__
|
CHECKFLAGS += -m$(SZ) -D__powerpc__ -D__powerpc$(SZ)__
|
||||||
|
|
||||||
@ -173,11 +175,13 @@ archclean:
|
|||||||
|
|
||||||
archprepare: checkbin
|
archprepare: checkbin
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_PPC32),y)
|
||||||
# Temporary hack until we have migrated to asm-powerpc
|
# Temporary hack until we have migrated to asm-powerpc
|
||||||
include/asm: arch/$(ARCH)/include/asm
|
include/asm: arch/$(ARCH)/include/asm
|
||||||
arch/$(ARCH)/include/asm: FORCE
|
arch/$(ARCH)/include/asm: FORCE
|
||||||
$(Q)if [ ! -d arch/$(ARCH)/include ]; then mkdir -p arch/$(ARCH)/include; fi
|
$(Q)if [ ! -d arch/$(ARCH)/include ]; then mkdir -p arch/$(ARCH)/include; fi
|
||||||
$(Q)ln -fsn $(srctree)/include/asm-$(OLDARCH) arch/$(ARCH)/include/asm
|
$(Q)ln -fsn $(srctree)/include/asm-$(OLDARCH) arch/$(ARCH)/include/asm
|
||||||
|
endif
|
||||||
|
|
||||||
# Use the file '.tmp_gas_check' for binutils tests, as gas won't output
|
# Use the file '.tmp_gas_check' for binutils tests, as gas won't output
|
||||||
# to stdout and these checks are run even on install targets.
|
# to stdout and these checks are run even on install targets.
|
||||||
|
Loading…
Reference in New Issue
Block a user