diff options
author | Atsushi Nemoto <anemo@mba.ocn.ne.jp> | 2007-05-29 11:38:07 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-07-10 12:32:55 -0400 |
commit | e48ce6b8df5b51af3f38b20bb3d008dff69ff64e (patch) | |
tree | fb8e3a263f7c20aa7619aa49da3ae726ed2ad67c /arch/mips/Makefile | |
parent | d7eb079fc8e68899fd099ad0b5b8095193a8c025 (diff) |
[MIPS] Simplify missing-syscalls for N32 and O32
Use standard missing-syscalls with EXTRA_CFLAGS instead of duplicating
the command. And move the archprepare rule before the archclean rule.
Suggested by Franck Bui-Huu. Also add "echo" to show the target ABI.
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/Makefile')
-rw-r--r-- | arch/mips/Makefile | 32 |
1 files changed, 10 insertions, 22 deletions
diff --git a/arch/mips/Makefile b/arch/mips/Makefile index f450066b6241..2b19605b7382 100644 --- a/arch/mips/Makefile +++ b/arch/mips/Makefile | |||
@@ -702,6 +702,16 @@ vmlinux.srec: $(vmlinux-32) | |||
702 | CLEAN_FILES += vmlinux.ecoff \ | 702 | CLEAN_FILES += vmlinux.ecoff \ |
703 | vmlinux.srec | 703 | vmlinux.srec |
704 | 704 | ||
705 | archprepare: | ||
706 | ifdef CONFIG_MIPS32_N32 | ||
707 | @echo ' Checking missing-syscalls for N32' | ||
708 | $(Q)$(MAKE) $(build)=. missing-syscalls EXTRA_CFLAGS="-mabi=n32" | ||
709 | endif | ||
710 | ifdef CONFIG_MIPS32_O32 | ||
711 | @echo ' Checking missing-syscalls for O32' | ||
712 | $(Q)$(MAKE) $(build)=. missing-syscalls EXTRA_CFLAGS="-mabi=32" | ||
713 | endif | ||
714 | |||
705 | archclean: | 715 | archclean: |
706 | @$(MAKE) $(clean)=arch/mips/boot | 716 | @$(MAKE) $(clean)=arch/mips/boot |
707 | @$(MAKE) $(clean)=arch/mips/lasat | 717 | @$(MAKE) $(clean)=arch/mips/lasat |
@@ -709,25 +719,3 @@ archclean: | |||
709 | CLEAN_FILES += vmlinux.32 \ | 719 | CLEAN_FILES += vmlinux.32 \ |
710 | vmlinux.64 \ | 720 | vmlinux.64 \ |
711 | vmlinux.ecoff | 721 | vmlinux.ecoff |
712 | |||
713 | quiet_cmd_syscalls_n32 = CALL-N32 $< | ||
714 | cmd_syscalls_n32 = $(CONFIG_SHELL) $< $(CC) $(c_flags) -mabi=n32 | ||
715 | |||
716 | quiet_cmd_syscalls_o32 = CALL-O32 $< | ||
717 | cmd_syscalls_o32 = $(CONFIG_SHELL) $< $(CC) $(c_flags) -mabi=32 | ||
718 | |||
719 | PHONY += missing-syscalls-n32 missing-syscalls-o32 | ||
720 | |||
721 | missing-syscalls-n32: scripts/checksyscalls.sh FORCE | ||
722 | $(call cmd,syscalls_n32) | ||
723 | |||
724 | missing-syscalls-o32: scripts/checksyscalls.sh FORCE | ||
725 | $(call cmd,syscalls_o32) | ||
726 | |||
727 | archprepare: | ||
728 | ifdef CONFIG_MIPS32_N32 | ||
729 | $(Q)$(MAKE) $(build)=arch/mips missing-syscalls-n32 | ||
730 | endif | ||
731 | ifdef CONFIG_MIPS32_O32 | ||
732 | $(Q)$(MAKE) $(build)=arch/mips missing-syscalls-o32 | ||
733 | endif | ||