diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2005-08-28 23:15:50 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-08-29 23:32:04 -0400 |
commit | 45e2a6e4e5e22acd4321f69e84b726c2a568dacf (patch) | |
tree | 91e1efaf3a713487ffae8e9def01ed6bd550e560 /arch/ppc/Makefile | |
parent | fb120da678c517f72d4b39932062c2191827b331 (diff) |
[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>
Diffstat (limited to 'arch/ppc/Makefile')
-rw-r--r-- | arch/ppc/Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/arch/ppc/Makefile b/arch/ppc/Makefile index f9b0d778dd82..d1b6e6dcb504 100644 --- a/arch/ppc/Makefile +++ b/arch/ppc/Makefile | |||
@@ -21,11 +21,13 @@ CC := $(CC) -m32 | |||
21 | endif | 21 | endif |
22 | 22 | ||
23 | LDFLAGS_vmlinux := -Ttext $(KERNELLOAD) -Bstatic | 23 | LDFLAGS_vmlinux := -Ttext $(KERNELLOAD) -Bstatic |
24 | CPPFLAGS += -Iarch/$(ARCH) | 24 | CPPFLAGS += -Iarch/$(ARCH) -Iinclude3 |
25 | AFLAGS += -Iarch/$(ARCH) | 25 | AFLAGS += -Iarch/$(ARCH) |
26 | CFLAGS += -Iarch/$(ARCH) -msoft-float -pipe \ | 26 | CFLAGS += -Iarch/$(ARCH) -msoft-float -pipe \ |
27 | -ffixed-r2 -mmultiple | 27 | -ffixed-r2 -mmultiple |
28 | CPP = $(CC) -E $(CFLAGS) | 28 | CPP = $(CC) -E $(CFLAGS) |
29 | # Temporary hack until we have migrated to asm-powerpc | ||
30 | LINUXINCLUDE += -Iinclude3 | ||
29 | 31 | ||
30 | CHECKFLAGS += -D__powerpc__ | 32 | CHECKFLAGS += -D__powerpc__ |
31 | 33 | ||
@@ -101,6 +103,7 @@ endef | |||
101 | 103 | ||
102 | archclean: | 104 | archclean: |
103 | $(Q)$(MAKE) $(clean)=arch/ppc/boot | 105 | $(Q)$(MAKE) $(clean)=arch/ppc/boot |
106 | $(Q)rm -rf include3 | ||
104 | 107 | ||
105 | prepare: include/asm-$(ARCH)/offsets.h checkbin | 108 | prepare: include/asm-$(ARCH)/offsets.h checkbin |
106 | 109 | ||
@@ -110,6 +113,12 @@ arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \ | |||
110 | include/asm-$(ARCH)/offsets.h: arch/$(ARCH)/kernel/asm-offsets.s | 113 | include/asm-$(ARCH)/offsets.h: arch/$(ARCH)/kernel/asm-offsets.s |
111 | $(call filechk,gen-asm-offsets) | 114 | $(call filechk,gen-asm-offsets) |
112 | 115 | ||
116 | # Temporary hack until we have migrated to asm-powerpc | ||
117 | include/asm: include3/asm | ||
118 | include3/asm: | ||
119 | $(Q)if [ ! -d include3 ]; then mkdir -p include3; fi | ||
120 | $(Q)ln -fsn $(srctree)/include/asm-powerpc include3/asm | ||
121 | |||
113 | # Use the file '.tmp_gas_check' for binutils tests, as gas won't output | 122 | # Use the file '.tmp_gas_check' for binutils tests, as gas won't output |
114 | # to stdout and these checks are run even on install targets. | 123 | # to stdout and these checks are run even on install targets. |
115 | TOUT := .tmp_gas_check | 124 | TOUT := .tmp_gas_check |