Re: missimg system calls

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Atsushi,

On 3/27/07, Atsushi Nemoto <anemo@xxxxxxxxxxxxx> 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


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux