[PATCH] Create include/asm-powerpc

The ppc and ppc64 trees are hopefully going to merge over time, so this
patch begins the process by creating a place for the merging of the
header files.

Create include/asm-powerpc (and move linkage.h into it from
asm-{ppc,ppc64} since we don't like empty directories). Modify the
ppc and ppc64 Makefiles to cope.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>

authored by

Stephen Rothwell and committed by
Paul Mackerras
45e2a6e4 fb120da6

+19 -7
+10 -1
arch/ppc/Makefile
··· 21 endif 22 23 LDFLAGS_vmlinux := -Ttext $(KERNELLOAD) -Bstatic 24 - CPPFLAGS += -Iarch/$(ARCH) 25 AFLAGS += -Iarch/$(ARCH) 26 CFLAGS += -Iarch/$(ARCH) -msoft-float -pipe \ 27 -ffixed-r2 -mmultiple 28 CPP = $(CC) -E $(CFLAGS) 29 30 CHECKFLAGS += -D__powerpc__ 31 ··· 103 104 archclean: 105 $(Q)$(MAKE) $(clean)=arch/ppc/boot 106 107 prepare: include/asm-$(ARCH)/offsets.h checkbin 108 ··· 112 113 include/asm-$(ARCH)/offsets.h: arch/$(ARCH)/kernel/asm-offsets.s 114 $(call filechk,gen-asm-offsets) 115 116 # Use the file '.tmp_gas_check' for binutils tests, as gas won't output 117 # to stdout and these checks are run even on install targets.
··· 21 endif 22 23 LDFLAGS_vmlinux := -Ttext $(KERNELLOAD) -Bstatic 24 + CPPFLAGS += -Iarch/$(ARCH) -Iinclude3 25 AFLAGS += -Iarch/$(ARCH) 26 CFLAGS += -Iarch/$(ARCH) -msoft-float -pipe \ 27 -ffixed-r2 -mmultiple 28 CPP = $(CC) -E $(CFLAGS) 29 + # Temporary hack until we have migrated to asm-powerpc 30 + LINUXINCLUDE += -Iinclude3 31 32 CHECKFLAGS += -D__powerpc__ 33 ··· 101 102 archclean: 103 $(Q)$(MAKE) $(clean)=arch/ppc/boot 104 + $(Q)rm -rf include3 105 106 prepare: include/asm-$(ARCH)/offsets.h checkbin 107 ··· 109 110 include/asm-$(ARCH)/offsets.h: arch/$(ARCH)/kernel/asm-offsets.s 111 $(call filechk,gen-asm-offsets) 112 + 113 + # Temporary hack until we have migrated to asm-powerpc 114 + include/asm: include3/asm 115 + include3/asm: 116 + $(Q)if [ ! -d include3 ]; then mkdir -p include3; fi 117 + $(Q)ln -fsn $(srctree)/include/asm-powerpc include3/asm 118 119 # Use the file '.tmp_gas_check' for binutils tests, as gas won't output 120 # to stdout and these checks are run even on install targets.
+9
arch/ppc64/Makefile
··· 55 LDFLAGS_vmlinux := -Bstatic -e $(KERNELLOAD) -Ttext $(KERNELLOAD) 56 CFLAGS += -msoft-float -pipe -mminimal-toc -mtraceback=none \ 57 -mcall-aixdesc 58 59 GCC_VERSION := $(call cc-version) 60 GCC_BROKEN_VEC := $(shell if [ $(GCC_VERSION) -lt 0400 ] ; then echo "y"; fi ;) ··· 114 115 archclean: 116 $(Q)$(MAKE) $(clean)=$(boot) 117 118 prepare: include/asm-ppc64/offsets.h 119 ··· 123 124 include/asm-ppc64/offsets.h: arch/ppc64/kernel/asm-offsets.s 125 $(call filechk,gen-asm-offsets) 126 127 define archhelp 128 echo '* zImage - Compressed kernel image (arch/$(ARCH)/boot/zImage)'
··· 55 LDFLAGS_vmlinux := -Bstatic -e $(KERNELLOAD) -Ttext $(KERNELLOAD) 56 CFLAGS += -msoft-float -pipe -mminimal-toc -mtraceback=none \ 57 -mcall-aixdesc 58 + # Temporary hack until we have migrated to asm-powerpc 59 + CPPFLAGS += -Iinclude3 60 61 GCC_VERSION := $(call cc-version) 62 GCC_BROKEN_VEC := $(shell if [ $(GCC_VERSION) -lt 0400 ] ; then echo "y"; fi ;) ··· 112 113 archclean: 114 $(Q)$(MAKE) $(clean)=$(boot) 115 + $(Q)rm -rf include3 116 117 prepare: include/asm-ppc64/offsets.h 118 ··· 120 121 include/asm-ppc64/offsets.h: arch/ppc64/kernel/asm-offsets.s 122 $(call filechk,gen-asm-offsets) 123 + 124 + # Temporary hack until we have migrated to asm-powerpc 125 + include/asm: include3/asm 126 + include3/asm: 127 + $(Q)if [ ! -d include3 ]; then mkdir -p include3; fi; 128 + $(Q)ln -fsn $(srctree)/include/asm-powerpc include3/asm 129 130 define archhelp 131 echo '* zImage - Compressed kernel image (arch/$(ARCH)/boot/zImage)'
include/asm-ppc/linkage.h include/asm-powerpc/linkage.h
-6
include/asm-ppc64/linkage.h
··· 1 - #ifndef __ASM_LINKAGE_H 2 - #define __ASM_LINKAGE_H 3 - 4 - /* Nothing to see here... */ 5 - 6 - #endif
···