diff options
author | Sam Ravnborg <sam@mars.(none)> | 2005-09-09 16:32:31 -0400 |
---|---|---|
committer | Sam Ravnborg <sam@mars.(none)> | 2005-09-09 16:32:31 -0400 |
commit | 048eb582f3f89737d4a29668de9935e6feea7c36 (patch) | |
tree | 515b3a1b72769d181eed020e166ece0d31b77446 /arch/mips/Makefile | |
parent | 39e01cb874cbf694bd0b0c44f54c4f270e2aa556 (diff) |
kbuild: mips use generic asm-offsets.h support
Removed obsolete stuff from arch makefile.
mips had a special rule for generating asm-offsets.h so preserved it
using an architecture specific hook in top-level Kbuild file.
Renamed .h file to asm-offsets.h
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'arch/mips/Makefile')
-rw-r--r-- | arch/mips/Makefile | 35 |
1 files changed, 2 insertions, 33 deletions
diff --git a/arch/mips/Makefile b/arch/mips/Makefile index b0fdaee8d8d9..346e803f153b 100644 --- a/arch/mips/Makefile +++ b/arch/mips/Makefile | |||
@@ -720,38 +720,7 @@ archclean: | |||
720 | @$(MAKE) $(clean)=arch/mips/boot | 720 | @$(MAKE) $(clean)=arch/mips/boot |
721 | @$(MAKE) $(clean)=arch/mips/lasat | 721 | @$(MAKE) $(clean)=arch/mips/lasat |
722 | 722 | ||
723 | # Generate <asm/offset.h | 723 | |
724 | # | 724 | CLEAN_FILES += vmlinux.32 \ |
725 | # The default rule is suffering from funny problems on MIPS so we using our | ||
726 | # own ... | ||
727 | # | ||
728 | # --------------------------------------------------------------------------- | ||
729 | |||
730 | define filechk_gen-asm-offset.h | ||
731 | (set -e; \ | ||
732 | echo "#ifndef _ASM_OFFSET_H"; \ | ||
733 | echo "#define _ASM_OFFSET_H"; \ | ||
734 | echo "/*"; \ | ||
735 | echo " * DO NOT MODIFY."; \ | ||
736 | echo " *"; \ | ||
737 | echo " * This file was generated by arch/$(ARCH)/Makefile"; \ | ||
738 | echo " *"; \ | ||
739 | echo " */"; \ | ||
740 | echo ""; \ | ||
741 | sed -ne "/^@@@/s///p"; \ | ||
742 | echo "#endif /* _ASM_OFFSET_H */" ) | ||
743 | endef | ||
744 | |||
745 | prepare: include/asm-$(ARCH)/offset.h | ||
746 | |||
747 | arch/$(ARCH)/kernel/offset.s: include/asm include/linux/version.h \ | ||
748 | include/config/MARKER | ||
749 | |||
750 | include/asm-$(ARCH)/offset.h: arch/$(ARCH)/kernel/offset.s | ||
751 | $(call filechk,gen-asm-offset.h) | ||
752 | |||
753 | CLEAN_FILES += include/asm-$(ARCH)/offset.h.tmp \ | ||
754 | include/asm-$(ARCH)/offset.h \ | ||
755 | vmlinux.32 \ | ||
756 | vmlinux.64 \ | 725 | vmlinux.64 \ |
757 | vmlinux.ecoff | 726 | vmlinux.ecoff |