diff options
| author | Sam Ravnborg <sam@mars.(none)> | 2005-09-09 14:28:49 -0400 |
|---|---|---|
| committer | Sam Ravnborg <sam@mars.(none)> | 2005-09-09 14:28:49 -0400 |
| commit | cca6e6f5f473ec63e85c87dfc77279ce1ca114e6 (patch) | |
| tree | 93fb15884d526cd5de8b3b726a893d6b6ca8eea4 | |
| parent | 86feeaa8120bb1b0ab21efed49e9754039395ef1 (diff) | |
kbuild: h8300,m68knommu,sh,sh64 use generic asm-offsets.h support
h8300, m68knommu, sh and sh64 all used the name asm-offsets.h so minimal
changes required.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
| -rw-r--r-- | arch/h8300/Makefile | 8 | ||||
| -rw-r--r-- | arch/m68knommu/Makefile | 10 | ||||
| -rw-r--r-- | arch/sh/Makefile | 11 | ||||
| -rw-r--r-- | arch/sh64/Makefile | 8 |
4 files changed, 4 insertions, 33 deletions
diff --git a/arch/h8300/Makefile b/arch/h8300/Makefile index c9b80cffd71d..40b3f56f3666 100644 --- a/arch/h8300/Makefile +++ b/arch/h8300/Makefile | |||
| @@ -61,12 +61,6 @@ archmrproper: | |||
| 61 | archclean: | 61 | archclean: |
| 62 | $(Q)$(MAKE) $(clean)=$(boot) | 62 | $(Q)$(MAKE) $(clean)=$(boot) |
| 63 | 63 | ||
| 64 | prepare: include/asm-$(ARCH)/asm-offsets.h | ||
| 65 | |||
| 66 | include/asm-$(ARCH)/asm-offsets.h: arch/$(ARCH)/kernel/asm-offsets.s \ | ||
| 67 | include/asm include/linux/version.h | ||
| 68 | $(call filechk,gen-asm-offsets) | ||
| 69 | |||
| 70 | vmlinux.srec vmlinux.bin: vmlinux | 64 | vmlinux.srec vmlinux.bin: vmlinux |
| 71 | $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ | 65 | $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ |
| 72 | 66 | ||
| @@ -74,5 +68,3 @@ define archhelp | |||
| 74 | echo 'vmlinux.bin - Create raw binary' | 68 | echo 'vmlinux.bin - Create raw binary' |
| 75 | echo 'vmlinux.srec - Create srec binary' | 69 | echo 'vmlinux.srec - Create srec binary' |
| 76 | endef | 70 | endef |
| 77 | |||
| 78 | CLEAN_FILES += include/asm-$(ARCH)/asm-offsets.h | ||
diff --git a/arch/m68knommu/Makefile b/arch/m68knommu/Makefile index 7ce5e55b2401..b8fdf191b8f6 100644 --- a/arch/m68knommu/Makefile +++ b/arch/m68knommu/Makefile | |||
| @@ -102,21 +102,11 @@ CFLAGS += -DUTS_SYSNAME=\"uClinux\" | |||
| 102 | 102 | ||
| 103 | head-y := arch/m68knommu/platform/$(cpuclass-y)/head.o | 103 | head-y := arch/m68knommu/platform/$(cpuclass-y)/head.o |
| 104 | 104 | ||
| 105 | CLEAN_FILES := include/asm-$(ARCH)/asm-offsets.h \ | ||
| 106 | arch/$(ARCH)/kernel/asm-offsets.s | ||
| 107 | |||
| 108 | core-y += arch/m68knommu/kernel/ \ | 105 | core-y += arch/m68knommu/kernel/ \ |
| 109 | arch/m68knommu/mm/ \ | 106 | arch/m68knommu/mm/ \ |
| 110 | $(CLASSDIR) \ | 107 | $(CLASSDIR) \ |
| 111 | arch/m68knommu/platform/$(PLATFORM)/ | 108 | arch/m68knommu/platform/$(PLATFORM)/ |
| 112 | libs-y += arch/m68knommu/lib/ | 109 | libs-y += arch/m68knommu/lib/ |
| 113 | 110 | ||
| 114 | prepare: include/asm-$(ARCH)/asm-offsets.h | ||
| 115 | |||
| 116 | archclean: | 111 | archclean: |
| 117 | $(Q)$(MAKE) $(clean)=arch/m68knommu/boot | 112 | $(Q)$(MAKE) $(clean)=arch/m68knommu/boot |
| 118 | |||
| 119 | include/asm-$(ARCH)/asm-offsets.h: arch/$(ARCH)/kernel/asm-offsets.s \ | ||
| 120 | include/asm include/linux/version.h \ | ||
| 121 | include/config/MARKER | ||
| 122 | $(call filechk,gen-asm-offsets) | ||
diff --git a/arch/sh/Makefile b/arch/sh/Makefile index b5635635b5ee..19f00d57acf0 100644 --- a/arch/sh/Makefile +++ b/arch/sh/Makefile | |||
| @@ -155,7 +155,7 @@ endif | |||
| 155 | prepare: maketools include/asm-sh/.cpu include/asm-sh/.mach | 155 | prepare: maketools include/asm-sh/.cpu include/asm-sh/.mach |
| 156 | 156 | ||
| 157 | .PHONY: maketools FORCE | 157 | .PHONY: maketools FORCE |
| 158 | maketools: include/asm-sh/asm-offsets.h include/linux/version.h FORCE | 158 | maketools: include/linux/version.h FORCE |
| 159 | $(Q)$(MAKE) $(build)=arch/sh/tools include/asm-sh/machtypes.h | 159 | $(Q)$(MAKE) $(build)=arch/sh/tools include/asm-sh/machtypes.h |
| 160 | 160 | ||
| 161 | all: zImage | 161 | all: zImage |
| @@ -168,14 +168,7 @@ compressed: zImage | |||
| 168 | archclean: | 168 | archclean: |
| 169 | $(Q)$(MAKE) $(clean)=$(boot) | 169 | $(Q)$(MAKE) $(clean)=$(boot) |
| 170 | 170 | ||
| 171 | CLEAN_FILES += include/asm-sh/machtypes.h include/asm-sh/asm-offsets.h | 171 | CLEAN_FILES += include/asm-sh/machtypes.h |
| 172 | |||
| 173 | arch/sh/kernel/asm-offsets.s: include/asm include/linux/version.h \ | ||
| 174 | include/asm-sh/.cpu include/asm-sh/.mach | ||
| 175 | |||
| 176 | include/asm-sh/asm-offsets.h: arch/sh/kernel/asm-offsets.s | ||
| 177 | $(call filechk,gen-asm-offsets) | ||
| 178 | |||
| 179 | 172 | ||
| 180 | define archhelp | 173 | define archhelp |
| 181 | @echo ' zImage - Compressed kernel image (arch/sh/boot/zImage)' | 174 | @echo ' zImage - Compressed kernel image (arch/sh/boot/zImage)' |
diff --git a/arch/sh64/Makefile b/arch/sh64/Makefile index b4fd8e13fea9..39073734a476 100644 --- a/arch/sh64/Makefile +++ b/arch/sh64/Makefile | |||
| @@ -73,11 +73,7 @@ compressed: zImage | |||
| 73 | archclean: | 73 | archclean: |
| 74 | $(Q)$(MAKE) $(clean)=$(boot) | 74 | $(Q)$(MAKE) $(clean)=$(boot) |
| 75 | 75 | ||
| 76 | prepare: include/asm-$(ARCH)/asm-offsets.h arch/$(ARCH)/lib/syscalltab.h | 76 | prepare: arch/$(ARCH)/lib/syscalltab.h |
| 77 | |||
| 78 | include/asm-$(ARCH)/asm-offsets.h: arch/$(ARCH)/kernel/asm-offsets.s \ | ||
| 79 | include/asm include/linux/version.h | ||
| 80 | $(call filechk,gen-asm-offsets) | ||
| 81 | 77 | ||
| 82 | define filechk_gen-syscalltab | 78 | define filechk_gen-syscalltab |
| 83 | (set -e; \ | 79 | (set -e; \ |
| @@ -108,7 +104,7 @@ endef | |||
| 108 | arch/$(ARCH)/lib/syscalltab.h: arch/sh64/kernel/syscalls.S | 104 | arch/$(ARCH)/lib/syscalltab.h: arch/sh64/kernel/syscalls.S |
| 109 | $(call filechk,gen-syscalltab) | 105 | $(call filechk,gen-syscalltab) |
| 110 | 106 | ||
| 111 | CLEAN_FILES += include/asm-$(ARCH)/asm-offsets.h arch/$(ARCH)/lib/syscalltab.h | 107 | CLEAN_FILES += arch/$(ARCH)/lib/syscalltab.h |
| 112 | 108 | ||
| 113 | define archhelp | 109 | define archhelp |
| 114 | @echo ' zImage - Compressed kernel image (arch/sh64/boot/zImage)' | 110 | @echo ' zImage - Compressed kernel image (arch/sh64/boot/zImage)' |
