From d0669f124d9f9c01501e7897869785b44c1269ec Mon Sep 17 00:00:00 2001 From: Atsushi Nemoto Date: Fri, 11 May 2007 01:02:34 +0900 Subject: [PATCH] --- yaml --- r: 56023 b: refs/heads/master c: fcbee6410d5c4112593e7082fb8d96dfdc6c1c25 h: refs/heads/master i: 56021: 7b03745208dfba34c164bb9c2133ac55227d3624 56019: e5230908da2dc401dc0418faa972b8d7a0094928 56015: fe48aa4d48c8d7a50780e79dd81fd4997f4630c4 v: v3 --- [refs] | 2 +- trunk/arch/mips/Makefile | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 3f7e45fcd8d6..3015db3aea2d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: e8b6d40a007774bde5110c110290f8090c7e48ad +refs/heads/master: fcbee6410d5c4112593e7082fb8d96dfdc6c1c25 diff --git a/trunk/arch/mips/Makefile b/trunk/arch/mips/Makefile index a68d462a415f..f450066b6241 100644 --- a/trunk/arch/mips/Makefile +++ b/trunk/arch/mips/Makefile @@ -709,3 +709,25 @@ archclean: CLEAN_FILES += vmlinux.32 \ vmlinux.64 \ vmlinux.ecoff + +quiet_cmd_syscalls_n32 = CALL-N32 $< + cmd_syscalls_n32 = $(CONFIG_SHELL) $< $(CC) $(c_flags) -mabi=n32 + +quiet_cmd_syscalls_o32 = CALL-O32 $< + cmd_syscalls_o32 = $(CONFIG_SHELL) $< $(CC) $(c_flags) -mabi=32 + +PHONY += missing-syscalls-n32 missing-syscalls-o32 + +missing-syscalls-n32: scripts/checksyscalls.sh FORCE + $(call cmd,syscalls_n32) + +missing-syscalls-o32: scripts/checksyscalls.sh FORCE + $(call cmd,syscalls_o32) + +archprepare: +ifdef CONFIG_MIPS32_N32 + $(Q)$(MAKE) $(build)=arch/mips missing-syscalls-n32 +endif +ifdef CONFIG_MIPS32_O32 + $(Q)$(MAKE) $(build)=arch/mips missing-syscalls-o32 +endif