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