Commit 63a1a465 authored by Paul Mackerras's avatar Paul Mackerras Committed by Paul Mackerras

PPC32: Rename ppc_defs.h to asm-offsets.h to ease the transition to kbuild-2.5 later.

parent 88489a03
...@@ -111,7 +111,7 @@ $(BOOT_TARGETS): vmlinux ...@@ -111,7 +111,7 @@ $(BOOT_TARGETS): vmlinux
cp -f arch/ppc/configs/$(@:config=defconfig) arch/ppc/defconfig cp -f arch/ppc/configs/$(@:config=defconfig) arch/ppc/defconfig
archclean: archclean:
rm -f arch/ppc/kernel/{mk_defs,ppc_defs.h,find_name} rm -f arch/ppc/kernel/{mk_defs,asm-offsets.h,find_name}
rm -f arch/ppc/iSeries/ReleaseData.h rm -f arch/ppc/iSeries/ReleaseData.h
@$(MAKEBOOT) clean @$(MAKEBOOT) clean
......
...@@ -100,25 +100,22 @@ obj-$(CONFIG_PPC_ISERIES) += iSeries_misc.o ...@@ -100,25 +100,22 @@ obj-$(CONFIG_PPC_ISERIES) += iSeries_misc.o
include $(TOPDIR)/Rules.make include $(TOPDIR)/Rules.make
entry.o: entry.S ppc_defs.h entry.o: entry.S asm-offsets.h
misc.o: misc.S ppc_defs.h misc.o: misc.S asm-offsets.h
l2cr.o: l2cr.S ppc_defs.h l2cr.o: l2cr.S asm-offsets.h
head.o: head.S ppc_defs.h head.o: head.S asm-offsets.h
head_4xx.o: head_4xx.S ppc_defs.h head_4xx.o: head_4xx.S asm-offsets.h
head_8xx.o: head_8xx.S ppc_defs.h head_8xx.o: head_8xx.S asm-offsets.h
iSeries_head.o: iSeries_head.S ppc_defs.h iSeries_head.o: iSeries_head.S asm-offsets.h
iSeries_misc.o: iSeries_misc.S ppc_defs.h iSeries_misc.o: iSeries_misc.S asm-offsets.h
ppc_defs.h: mk_defs.c ppc_defs.head \ asm-offsets.h: mk_defs.c asm-offsets.head \
$(TOPDIR)/include/asm/mmu.h \ $(TOPDIR)/include/asm/mmu.h \
$(TOPDIR)/include/asm/processor.h \ $(TOPDIR)/include/asm/processor.h \
$(TOPDIR)/include/asm/pgtable.h \ $(TOPDIR)/include/asm/pgtable.h \
$(TOPDIR)/include/asm/ptrace.h $(TOPDIR)/include/asm/ptrace.h
$(CC) $(CFLAGS) -S mk_defs.c $(CC) $(CFLAGS) -S mk_defs.c
cp ppc_defs.head ppc_defs.h (cat asm-offsets.head; grep '^#define' mk_defs.s) >asm-offsets.h
# for bk, this way we can write to the file even if it's not checked out
chmod u+w ppc_defs.h
grep '^#define' mk_defs.s >> ppc_defs.h
rm mk_defs.s rm mk_defs.s
find_name : find_name.c find_name : find_name.c
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
#include <asm/cputable.h> #include <asm/cputable.h>
#include <asm/thread_info.h> #include <asm/thread_info.h>
#include <asm/ppc_asm.h> #include <asm/ppc_asm.h>
#include "ppc_defs.h" #include "asm-offsets.h"
#ifdef CONFIG_PPC_ISERIES #ifdef CONFIG_PPC_ISERIES
#include "iSeries_asm.h" #include "iSeries_asm.h"
#endif /* CONFIG_PPC_ISERIES */ #endif /* CONFIG_PPC_ISERIES */
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
#include <asm/cache.h> #include <asm/cache.h>
#include <asm/thread_info.h> #include <asm/thread_info.h>
#include <asm/ppc_asm.h> #include <asm/ppc_asm.h>
#include "ppc_defs.h" #include "asm-offsets.h"
#ifdef CONFIG_APUS #ifdef CONFIG_APUS
#include <asm/amigappc.h> #include <asm/amigappc.h>
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
#include <asm/cputable.h> #include <asm/cputable.h>
#include <asm/thread_info.h> #include <asm/thread_info.h>
#include <asm/ppc_asm.h> #include <asm/ppc_asm.h>
#include "ppc_defs.h" #include "asm-offsets.h"
/* Preprocessor Defines */ /* Preprocessor Defines */
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
#include <asm/cputable.h> #include <asm/cputable.h>
#include <asm/thread_info.h> #include <asm/thread_info.h>
#include <asm/ppc_asm.h> #include <asm/ppc_asm.h>
#include "ppc_defs.h" #include "asm-offsets.h"
.text .text
.globl _stext .globl _stext
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
#include <asm/pgtable.h> #include <asm/pgtable.h>
#include <asm/ppc_asm.h> #include <asm/ppc_asm.h>
#include <asm/thread_info.h> #include <asm/thread_info.h>
#include "ppc_defs.h" #include "asm-offsets.h"
#include "iSeries_asm.h" #include "iSeries_asm.h"
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include <asm/page.h> #include <asm/page.h>
#include <asm/cache.h> #include <asm/cache.h>
#include <asm/ppc_asm.h> #include <asm/ppc_asm.h>
#include "ppc_defs.h" #include "asm-offsets.h"
#include "iSeries_asm.h" #include "iSeries_asm.h"
.text .text
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
#include <asm/mmu.h> #include <asm/mmu.h>
#include <asm/ppc_asm.h> #include <asm/ppc_asm.h>
#include <asm/thread_info.h> #include <asm/thread_info.h>
#include "ppc_defs.h" #include "asm-offsets.h"
.text .text
......
...@@ -15,6 +15,8 @@ ifdef CONFIG_PPC64BRIDGE ...@@ -15,6 +15,8 @@ ifdef CONFIG_PPC64BRIDGE
EXTRA_AFLAGS := -Wa,-mppc64bridge EXTRA_AFLAGS := -Wa,-mppc64bridge
endif endif
AFLAGS_hashtable.o += -I$(TOPDIR)/arch/$(ARCH)/kernel
O_TARGET := mm.o O_TARGET := mm.o
obj-y := fault.o init.o mem_pieces.o extable.o \ obj-y := fault.o init.o mem_pieces.o extable.o \
mmu_context.o pgtable.o mmu_context.o pgtable.o
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
#include <asm/cputable.h> #include <asm/cputable.h>
#include <asm/ppc_asm.h> #include <asm/ppc_asm.h>
#include <asm/thread_info.h> #include <asm/thread_info.h>
#include <kernel/ppc_defs.h> #include "asm-offsets.h"
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
.comm mmu_hash_lock,4 .comm mmu_hash_lock,4
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment