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

[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>

authored by

Atsushi Nemoto and committed by
Ralf Baechle
e48ce6b8 d7eb079f

+10 -22
+10 -22
arch/mips/Makefile
··· 702 702 CLEAN_FILES += vmlinux.ecoff \ 703 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 715 archclean: 706 716 @$(MAKE) $(clean)=arch/mips/boot 707 717 @$(MAKE) $(clean)=arch/mips/lasat ··· 719 709 CLEAN_FILES += vmlinux.32 \ 720 710 vmlinux.64 \ 721 711 vmlinux.ecoff 722 - 723 - quiet_cmd_syscalls_n32 = CALL-N32 $< 724 - cmd_syscalls_n32 = $(CONFIG_SHELL) $< $(CC) $(c_flags) -mabi=n32 725 - 726 - quiet_cmd_syscalls_o32 = CALL-O32 $< 727 - cmd_syscalls_o32 = $(CONFIG_SHELL) $< $(CC) $(c_flags) -mabi=32 728 - 729 - PHONY += missing-syscalls-n32 missing-syscalls-o32 730 - 731 - missing-syscalls-n32: scripts/checksyscalls.sh FORCE 732 - $(call cmd,syscalls_n32) 733 - 734 - missing-syscalls-o32: scripts/checksyscalls.sh FORCE 735 - $(call cmd,syscalls_o32) 736 - 737 - archprepare: 738 - ifdef CONFIG_MIPS32_N32 739 - $(Q)$(MAKE) $(build)=arch/mips missing-syscalls-n32 740 - endif 741 - ifdef CONFIG_MIPS32_O32 742 - $(Q)$(MAKE) $(build)=arch/mips missing-syscalls-o32 743 - endif