diff options
| author | Sam Ravnborg <sam@mars.(none)> | 2005-09-09 15:08:59 -0400 |
|---|---|---|
| committer | Sam Ravnborg <sam@mars.(none)> | 2005-09-09 15:08:59 -0400 |
| commit | e6ae744dd2eae8e00af328b11b1fe77cb0931136 (patch) | |
| tree | 726e20fb0950b9a51f602b2b805d016e813ce38a | |
| parent | 0013a85454c281faaf064ccb576e373a2881aac8 (diff) | |
kbuild: arm - use generic asm-offsets.h support
Delete obsoleted stuff from arch Makefile and rename
constants.h to asm-offsets.h
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
28 files changed, 29 insertions, 34 deletions
diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 67f1453ade05..e625ac66f49b 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile | |||
| @@ -178,7 +178,7 @@ endif | |||
| 178 | prepare: maketools include/asm-arm/.arch | 178 | prepare: maketools include/asm-arm/.arch |
| 179 | 179 | ||
| 180 | .PHONY: maketools FORCE | 180 | .PHONY: maketools FORCE |
| 181 | maketools: include/asm-arm/constants.h include/linux/version.h FORCE | 181 | maketools: include/linux/version.h FORCE |
| 182 | $(Q)$(MAKE) $(build)=arch/arm/tools include/asm-arm/mach-types.h | 182 | $(Q)$(MAKE) $(build)=arch/arm/tools include/asm-arm/mach-types.h |
| 183 | 183 | ||
| 184 | # Convert bzImage to zImage | 184 | # Convert bzImage to zImage |
| @@ -190,7 +190,7 @@ zImage Image xipImage bootpImage uImage: vmlinux | |||
| 190 | zinstall install: vmlinux | 190 | zinstall install: vmlinux |
| 191 | $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $@ | 191 | $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $@ |
| 192 | 192 | ||
| 193 | CLEAN_FILES += include/asm-arm/constants.h* include/asm-arm/mach-types.h \ | 193 | CLEAN_FILES += include/asm-arm/mach-types.h \ |
| 194 | include/asm-arm/arch include/asm-arm/.arch | 194 | include/asm-arm/arch include/asm-arm/.arch |
| 195 | 195 | ||
| 196 | # We use MRPROPER_FILES and CLEAN_FILES now | 196 | # We use MRPROPER_FILES and CLEAN_FILES now |
| @@ -201,11 +201,6 @@ archclean: | |||
| 201 | bp:; $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $(boot)/bootpImage | 201 | bp:; $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $(boot)/bootpImage |
| 202 | i zi:; $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $@ | 202 | i zi:; $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $@ |
| 203 | 203 | ||
| 204 | arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \ | ||
| 205 | include/asm-arm/.arch | ||
| 206 | |||
| 207 | include/asm-$(ARCH)/constants.h: arch/$(ARCH)/kernel/asm-offsets.s | ||
| 208 | $(call filechk,gen-asm-offsets) | ||
| 209 | 204 | ||
| 210 | define archhelp | 205 | define archhelp |
| 211 | echo '* zImage - Compressed kernel image (arch/$(ARCH)/boot/zImage)' | 206 | echo '* zImage - Compressed kernel image (arch/$(ARCH)/boot/zImage)' |
diff --git a/arch/arm/kernel/entry-header.S b/arch/arm/kernel/entry-header.S index afef21273963..648cfff93138 100644 --- a/arch/arm/kernel/entry-header.S +++ b/arch/arm/kernel/entry-header.S | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | #include <linux/linkage.h> | 3 | #include <linux/linkage.h> |
| 4 | 4 | ||
| 5 | #include <asm/assembler.h> | 5 | #include <asm/assembler.h> |
| 6 | #include <asm/constants.h> | 6 | #include <asm/asm-offsets.h> |
| 7 | #include <asm/errno.h> | 7 | #include <asm/errno.h> |
| 8 | #include <asm/thread_info.h> | 8 | #include <asm/thread_info.h> |
| 9 | 9 | ||
diff --git a/arch/arm/kernel/head.S b/arch/arm/kernel/head.S index 1155cf07c871..539626351348 100644 --- a/arch/arm/kernel/head.S +++ b/arch/arm/kernel/head.S | |||
| @@ -20,7 +20,7 @@ | |||
| 20 | #include <asm/mach-types.h> | 20 | #include <asm/mach-types.h> |
| 21 | #include <asm/procinfo.h> | 21 | #include <asm/procinfo.h> |
| 22 | #include <asm/ptrace.h> | 22 | #include <asm/ptrace.h> |
| 23 | #include <asm/constants.h> | 23 | #include <asm/asm-offsets.h> |
| 24 | #include <asm/thread_info.h> | 24 | #include <asm/thread_info.h> |
| 25 | #include <asm/system.h> | 25 | #include <asm/system.h> |
| 26 | 26 | ||
diff --git a/arch/arm/kernel/iwmmxt.S b/arch/arm/kernel/iwmmxt.S index 8f74e24536ba..24c7b0477a09 100644 --- a/arch/arm/kernel/iwmmxt.S +++ b/arch/arm/kernel/iwmmxt.S | |||
| @@ -17,7 +17,7 @@ | |||
| 17 | #include <linux/linkage.h> | 17 | #include <linux/linkage.h> |
| 18 | #include <asm/ptrace.h> | 18 | #include <asm/ptrace.h> |
| 19 | #include <asm/thread_info.h> | 19 | #include <asm/thread_info.h> |
| 20 | #include <asm/constants.h> | 20 | #include <asm/asm-offsets.h> |
| 21 | 21 | ||
| 22 | #define MMX_WR0 (0x00) | 22 | #define MMX_WR0 (0x00) |
| 23 | #define MMX_WR1 (0x08) | 23 | #define MMX_WR1 (0x08) |
diff --git a/arch/arm/lib/copy_page.S b/arch/arm/lib/copy_page.S index 4c38abdbe497..68117968482b 100644 --- a/arch/arm/lib/copy_page.S +++ b/arch/arm/lib/copy_page.S | |||
| @@ -11,7 +11,7 @@ | |||
| 11 | */ | 11 | */ |
| 12 | #include <linux/linkage.h> | 12 | #include <linux/linkage.h> |
| 13 | #include <asm/assembler.h> | 13 | #include <asm/assembler.h> |
| 14 | #include <asm/constants.h> | 14 | #include <asm/asm-offsets.h> |
| 15 | 15 | ||
| 16 | #define COPY_COUNT (PAGE_SZ/64 PLD( -1 )) | 16 | #define COPY_COUNT (PAGE_SZ/64 PLD( -1 )) |
| 17 | 17 | ||
diff --git a/arch/arm/lib/csumpartialcopyuser.S b/arch/arm/lib/csumpartialcopyuser.S index 46a2dc962e9d..333bca292de9 100644 --- a/arch/arm/lib/csumpartialcopyuser.S +++ b/arch/arm/lib/csumpartialcopyuser.S | |||
| @@ -13,7 +13,7 @@ | |||
| 13 | #include <linux/linkage.h> | 13 | #include <linux/linkage.h> |
| 14 | #include <asm/assembler.h> | 14 | #include <asm/assembler.h> |
| 15 | #include <asm/errno.h> | 15 | #include <asm/errno.h> |
| 16 | #include <asm/constants.h> | 16 | #include <asm/asm-offsets.h> |
| 17 | 17 | ||
| 18 | .text | 18 | .text |
| 19 | 19 | ||
diff --git a/arch/arm/lib/getuser.S b/arch/arm/lib/getuser.S index 64aa6f4fe5e4..d204018070a4 100644 --- a/arch/arm/lib/getuser.S +++ b/arch/arm/lib/getuser.S | |||
| @@ -26,7 +26,7 @@ | |||
| 26 | * Note that ADDR_LIMIT is either 0 or 0xc0000000. | 26 | * Note that ADDR_LIMIT is either 0 or 0xc0000000. |
| 27 | * Note also that it is intended that __get_user_bad is not global. | 27 | * Note also that it is intended that __get_user_bad is not global. |
| 28 | */ | 28 | */ |
| 29 | #include <asm/constants.h> | 29 | #include <asm/asm-offsets.h> |
| 30 | #include <asm/thread_info.h> | 30 | #include <asm/thread_info.h> |
| 31 | #include <asm/errno.h> | 31 | #include <asm/errno.h> |
| 32 | 32 | ||
diff --git a/arch/arm/lib/putuser.S b/arch/arm/lib/putuser.S index b09398d95aac..4593e9c07f05 100644 --- a/arch/arm/lib/putuser.S +++ b/arch/arm/lib/putuser.S | |||
| @@ -26,7 +26,7 @@ | |||
| 26 | * Note that ADDR_LIMIT is either 0 or 0xc0000000 | 26 | * Note that ADDR_LIMIT is either 0 or 0xc0000000 |
| 27 | * Note also that it is intended that __put_user_bad is not global. | 27 | * Note also that it is intended that __put_user_bad is not global. |
| 28 | */ | 28 | */ |
| 29 | #include <asm/constants.h> | 29 | #include <asm/asm-offsets.h> |
| 30 | #include <asm/thread_info.h> | 30 | #include <asm/thread_info.h> |
| 31 | #include <asm/errno.h> | 31 | #include <asm/errno.h> |
| 32 | 32 | ||
diff --git a/arch/arm/mm/copypage-v3.S b/arch/arm/mm/copypage-v3.S index 4940f1908316..3c58ebbf0359 100644 --- a/arch/arm/mm/copypage-v3.S +++ b/arch/arm/mm/copypage-v3.S | |||
| @@ -12,7 +12,7 @@ | |||
| 12 | #include <linux/linkage.h> | 12 | #include <linux/linkage.h> |
| 13 | #include <linux/init.h> | 13 | #include <linux/init.h> |
| 14 | #include <asm/assembler.h> | 14 | #include <asm/assembler.h> |
| 15 | #include <asm/constants.h> | 15 | #include <asm/asm-offsets.h> |
| 16 | 16 | ||
| 17 | .text | 17 | .text |
| 18 | .align 5 | 18 | .align 5 |
diff --git a/arch/arm/mm/copypage-v4wb.S b/arch/arm/mm/copypage-v4wb.S index b94c345ceb94..83117354b1cd 100644 --- a/arch/arm/mm/copypage-v4wb.S +++ b/arch/arm/mm/copypage-v4wb.S | |||
| @@ -11,7 +11,7 @@ | |||
| 11 | */ | 11 | */ |
| 12 | #include <linux/linkage.h> | 12 | #include <linux/linkage.h> |
| 13 | #include <linux/init.h> | 13 | #include <linux/init.h> |
| 14 | #include <asm/constants.h> | 14 | #include <asm/asm-offsets.h> |
