Commit cca6e6f5 authored by Sam Ravnborg's avatar Sam Ravnborg

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: default avatarSam Ravnborg <sam@ravnborg.org>
parent 86feeaa8
...@@ -61,12 +61,6 @@ archmrproper: ...@@ -61,12 +61,6 @@ archmrproper:
archclean: archclean:
$(Q)$(MAKE) $(clean)=$(boot) $(Q)$(MAKE) $(clean)=$(boot)
prepare: include/asm-$(ARCH)/asm-offsets.h
include/asm-$(ARCH)/asm-offsets.h: arch/$(ARCH)/kernel/asm-offsets.s \
include/asm include/linux/version.h
$(call filechk,gen-asm-offsets)
vmlinux.srec vmlinux.bin: vmlinux vmlinux.srec vmlinux.bin: vmlinux
$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
...@@ -74,5 +68,3 @@ define archhelp ...@@ -74,5 +68,3 @@ define archhelp
echo 'vmlinux.bin - Create raw binary' echo 'vmlinux.bin - Create raw binary'
echo 'vmlinux.srec - Create srec binary' echo 'vmlinux.srec - Create srec binary'
endef endef
CLEAN_FILES += include/asm-$(ARCH)/asm-offsets.h
...@@ -102,21 +102,11 @@ CFLAGS += -DUTS_SYSNAME=\"uClinux\" ...@@ -102,21 +102,11 @@ CFLAGS += -DUTS_SYSNAME=\"uClinux\"
head-y := arch/m68knommu/platform/$(cpuclass-y)/head.o head-y := arch/m68knommu/platform/$(cpuclass-y)/head.o
CLEAN_FILES := include/asm-$(ARCH)/asm-offsets.h \
arch/$(ARCH)/kernel/asm-offsets.s
core-y += arch/m68knommu/kernel/ \ core-y += arch/m68knommu/kernel/ \
arch/m68knommu/mm/ \ arch/m68knommu/mm/ \
$(CLASSDIR) \ $(CLASSDIR) \
arch/m68knommu/platform/$(PLATFORM)/ arch/m68knommu/platform/$(PLATFORM)/
libs-y += arch/m68knommu/lib/ libs-y += arch/m68knommu/lib/
prepare: include/asm-$(ARCH)/asm-offsets.h
archclean: archclean:
$(Q)$(MAKE) $(clean)=arch/m68knommu/boot $(Q)$(MAKE) $(clean)=arch/m68knommu/boot
include/asm-$(ARCH)/asm-offsets.h: arch/$(ARCH)/kernel/asm-offsets.s \
include/asm include/linux/version.h \
include/config/MARKER
$(call filechk,gen-asm-offsets)
...@@ -155,7 +155,7 @@ endif ...@@ -155,7 +155,7 @@ endif
prepare: maketools include/asm-sh/.cpu include/asm-sh/.mach prepare: maketools include/asm-sh/.cpu include/asm-sh/.mach
.PHONY: maketools FORCE .PHONY: maketools FORCE
maketools: include/asm-sh/asm-offsets.h include/linux/version.h FORCE maketools: include/linux/version.h FORCE
$(Q)$(MAKE) $(build)=arch/sh/tools include/asm-sh/machtypes.h $(Q)$(MAKE) $(build)=arch/sh/tools include/asm-sh/machtypes.h
all: zImage all: zImage
...@@ -168,14 +168,7 @@ compressed: zImage ...@@ -168,14 +168,7 @@ compressed: zImage
archclean: archclean:
$(Q)$(MAKE) $(clean)=$(boot) $(Q)$(MAKE) $(clean)=$(boot)
CLEAN_FILES += include/asm-sh/machtypes.h include/asm-sh/asm-offsets.h CLEAN_FILES += include/asm-sh/machtypes.h
arch/sh/kernel/asm-offsets.s: include/asm include/linux/version.h \
include/asm-sh/.cpu include/asm-sh/.mach
include/asm-sh/asm-offsets.h: arch/sh/kernel/asm-offsets.s
$(call filechk,gen-asm-offsets)
define archhelp define archhelp
@echo ' zImage - Compressed kernel image (arch/sh/boot/zImage)' @echo ' zImage - Compressed kernel image (arch/sh/boot/zImage)'
......
...@@ -73,11 +73,7 @@ compressed: zImage ...@@ -73,11 +73,7 @@ compressed: zImage
archclean: archclean:
$(Q)$(MAKE) $(clean)=$(boot) $(Q)$(MAKE) $(clean)=$(boot)
prepare: include/asm-$(ARCH)/asm-offsets.h arch/$(ARCH)/lib/syscalltab.h prepare: arch/$(ARCH)/lib/syscalltab.h
include/asm-$(ARCH)/asm-offsets.h: arch/$(ARCH)/kernel/asm-offsets.s \
include/asm include/linux/version.h
$(call filechk,gen-asm-offsets)
define filechk_gen-syscalltab define filechk_gen-syscalltab
(set -e; \ (set -e; \
...@@ -108,7 +104,7 @@ endef ...@@ -108,7 +104,7 @@ endef
arch/$(ARCH)/lib/syscalltab.h: arch/sh64/kernel/syscalls.S arch/$(ARCH)/lib/syscalltab.h: arch/sh64/kernel/syscalls.S
$(call filechk,gen-syscalltab) $(call filechk,gen-syscalltab)
CLEAN_FILES += include/asm-$(ARCH)/asm-offsets.h arch/$(ARCH)/lib/syscalltab.h CLEAN_FILES += arch/$(ARCH)/lib/syscalltab.h
define archhelp define archhelp
@echo ' zImage - Compressed kernel image (arch/sh64/boot/zImage)' @echo ' zImage - Compressed kernel image (arch/sh64/boot/zImage)'
......
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