Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+4 -33
-8
arch/h8300/Makefile
··· 61 61 archclean: 62 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 64 vmlinux.srec vmlinux.bin: vmlinux 71 65 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ 72 66 ··· 68 74 echo 'vmlinux.bin - Create raw binary' 69 75 echo 'vmlinux.srec - Create srec binary' 70 76 endef 71 - 72 - CLEAN_FILES += include/asm-$(ARCH)/asm-offsets.h
-10
arch/m68knommu/Makefile
··· 102 102 103 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 105 core-y += arch/m68knommu/kernel/ \ 109 106 arch/m68knommu/mm/ \ 110 107 $(CLASSDIR) \ 111 108 arch/m68knommu/platform/$(PLATFORM)/ 112 109 libs-y += arch/m68knommu/lib/ 113 110 114 - prepare: include/asm-$(ARCH)/asm-offsets.h 115 - 116 111 archclean: 117 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)
+2 -9
arch/sh/Makefile
··· 155 155 prepare: maketools include/asm-sh/.cpu include/asm-sh/.mach 156 156 157 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 159 $(Q)$(MAKE) $(build)=arch/sh/tools include/asm-sh/machtypes.h 160 160 161 161 all: zImage ··· 168 168 archclean: 169 169 $(Q)$(MAKE) $(clean)=$(boot) 170 170 171 - CLEAN_FILES += include/asm-sh/machtypes.h include/asm-sh/asm-offsets.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 - 171 + CLEAN_FILES += include/asm-sh/machtypes.h 179 172 180 173 define archhelp 181 174 @echo ' zImage - Compressed kernel image (arch/sh/boot/zImage)'
+2 -6
arch/sh64/Makefile
··· 73 73 archclean: 74 74 $(Q)$(MAKE) $(clean)=$(boot) 75 75 76 - prepare: include/asm-$(ARCH)/asm-offsets.h 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) 76 + prepare: arch/$(ARCH)/lib/syscalltab.h 81 77 82 78 define filechk_gen-syscalltab 83 79 (set -e; \ ··· 104 108 arch/$(ARCH)/lib/syscalltab.h: arch/sh64/kernel/syscalls.S 105 109 $(call filechk,gen-syscalltab) 106 110 107 - CLEAN_FILES += include/asm-$(ARCH)/asm-offsets.h arch/$(ARCH)/lib/syscalltab.h 111 + CLEAN_FILES += arch/$(ARCH)/lib/syscalltab.h 108 112 109 113 define archhelp 110 114 @echo ' zImage - Compressed kernel image (arch/sh64/boot/zImage)'