linux-mips
[Top] [All Lists]

Re: missimg system calls

To: "Atsushi Nemoto" <anemo@mba.ocn.ne.jp>
Subject: Re: missimg system calls
From: "Franck Bui-Huu" <vagabon.xyz@gmail.com>
Date: Wed, 28 Mar 2007 13:01:30 +0200
Cc: linux-mips@linux-mips.org
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=RUkX/MrdznrA2PSTvMVKxSPVpAN1k3CrAzQV41PKdm/TUfpS+I+ka52KZUI3NYpbBsTjvaG7kEAJWg6G4f/lkWZ1RuhCmMoFTLvjRps56r0MUibQUi6qJ8MKhVKwNnKjEW1Ph//7zn9NZ7KE9ajUCpTyl/EV/cFxAeiIjSZMIbo=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=S0HvZlzlyBJPdd8Nsi6GlGkUSTHNER28qde1vC8ur4ul1uTHfs6rJN2wFL1bnvF4/+1ljJhr9aS8kAvFbu9hR+cUBUQUedQKm4KjXkQzLamvCT37+dnnJlZVaP1NGHKpMqbK0GGjP4deh/kVZ9c4L6dMX5MmlrJGQgKWAbP4guM=
In-reply-to: <20070328.011100.07456480.anemo@mba.ocn.ne.jp>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20070328.011100.07456480.anemo@mba.ocn.ne.jp>
Sender: linux-mips-bounce@linux-mips.org
Hi Atsushi,

On 3/27/07, Atsushi Nemoto <anemo@mba.ocn.ne.jp> wrote:

diff --git a/arch/mips/kernel/Makefile b/arch/mips/kernel/Makefile
index 4924626..d6abdc5 100644
--- a/arch/mips/kernel/Makefile
+++ b/arch/mips/kernel/Makefile
@@ -4,6 +4,17 @@

 extra-y                := head.o init_task.o vmlinux.lds

+ifdef CONFIG_MIPS32_N32
+missing_syscalls_n32.o: missing_syscalls_n32.c
+CFLAGS_missing_syscalls_n32.o = -mabi=n32
+always += missing_syscalls_n32.o
+endif
+ifdef CONFIG_MIPS32_O32
+missing_syscalls_o32.o: missing_syscalls_o32.c
+CFLAGS_missing_syscalls_o32.o = -mabi=32
+always += missing_syscalls_o32.o
+endif
+
 obj-y          += cpu-probe.o branch.o entry.o genex.o irq.o process.o \
                   ptrace.o reset.o semaphore.o setup.o signal.o syscall.o \
                   time.o topology.o traps.o unaligned.o

Isn't this simpler ?

-- >8 --
diff --git a/arch/mips/kernel/Makefile b/arch/mips/kernel/Makefile
index 4924626..2408432 100644
--- a/arch/mips/kernel/Makefile
+++ b/arch/mips/kernel/Makefile
@@ -67,4 +67,10 @@ obj-$(CONFIG_I8253)          += i8253.o
obj-$(CONFIG_KEXEC)             += machine_kexec.o relocate_kernel.o
obj-$(CONFIG_EARLY_PRINTK)      += early_printk.o

+obj-$(CONFIG_MIPS32_N32)       += missing_syscalls_n32.o
+obj-$(CONFIG_MIPS32_O32)       += missing_syscalls_o32.o
+
+CFLAGS_missing_syscalls_n32.o = -mabi=n32
+CFLAGS_missing_syscalls_o32.o = -mabi=32
+
CFLAGS_cpu-bugs64.o     = $(shell if $(CC) $(CFLAGS) -Wa,-mdaddi -c -o
/dev/null -xc /dev/null >/dev/null 2>&1; then echo
"-DHAVE_AS_SET_DADDI"; fi)

--
              Franck

<Prev in Thread] Current Thread [Next in Thread>