Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 99bf73eb authored by Firoz Khan's avatar Firoz Khan Committed by Paul Burton
Browse files

mips: generate uapi header and system call table files



System call table generation script must be run to gener-
ate unistd_(nr_)n64/n32/o32.h and syscall_table_32_o32/
64_n64/64_n32/64-o32.h files. This patch will have changes
which will invokes the script.

This patch will generate unistd_(nr_)n64/n32/o32.h and
syscall_table_32_o32/64_n64/64-n32/64-o32.h files by the
syscall table generation script invoked by parisc/Make-
file and the generated files against the removed files
must be identical.

The generated uapi header file will be included in uapi/-
asm/unistd.h and generated system call table header file
will be included by kernel/scall32-o32/64-n64/64-n32/-
64-o32.Sfile.

Signed-off-by: default avatarFiroz Khan <firoz.khan@linaro.org>
Signed-off-by: default avatarPaul Burton <paul.burton@mips.com>
Cc: linux-mips@vger.kernel.org
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: James Hogan <jhogan@kernel.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Philippe Ombredanne <pombredanne@nexb.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Kate Stewart <kstewart@linuxfoundation.org>
Cc: y2038@lists.linaro.org
Cc: linux-kernel@vger.kernel.org
Cc: linux-arch@vger.kernel.org
Cc: arnd@arndb.de
Cc: deepa.kernel@gmail.com
Cc: marcin.juszkiewicz@linaro.org
parent 9bcbf97c
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -430,6 +430,9 @@ archclean:
	$(Q)$(MAKE) $(clean)=arch/mips/boot/tools
	$(Q)$(MAKE) $(clean)=arch/mips/boot/tools
	$(Q)$(MAKE) $(clean)=arch/mips/lasat
	$(Q)$(MAKE) $(clean)=arch/mips/lasat


archheaders:
	$(Q)$(MAKE) $(build)=arch/mips/kernel/syscalls all

define archhelp
define archhelp
	echo '  install              - install kernel into $(INSTALL_PATH)'
	echo '  install              - install kernel into $(INSTALL_PATH)'
	echo '  vmlinux.ecoff        - ECOFF boot image'
	echo '  vmlinux.ecoff        - ECOFF boot image'
+4 −0
Original line number Original line Diff line number Diff line
# MIPS headers
# MIPS headers
generated-y += syscall_table_32_o32.h
generated-y += syscall_table_64_n32.h
generated-y += syscall_table_64_n64.h
generated-y += syscall_table_64_o32.h
generic-(CONFIG_GENERIC_CSUM) += checksum.h
generic-(CONFIG_GENERIC_CSUM) += checksum.h
generic-y += current.h
generic-y += current.h
generic-y += device.h
generic-y += device.h
+3 −0
Original line number Original line Diff line number Diff line
@@ -13,6 +13,9 @@
#define _ASM_UNISTD_H
#define _ASM_UNISTD_H


#include <uapi/asm/unistd.h>
#include <uapi/asm/unistd.h>
#include <asm/unistd_nr_n32.h>
#include <asm/unistd_nr_n64.h>
#include <asm/unistd_nr_o32.h>


#ifdef CONFIG_MIPS32_N32
#ifdef CONFIG_MIPS32_N32
#define NR_syscalls  (__NR_N32_Linux + __NR_N32_Linux_syscalls)
#define NR_syscalls  (__NR_N32_Linux + __NR_N32_Linux_syscalls)
+6 −0
Original line number Original line Diff line number Diff line
# UAPI Header export list
# UAPI Header export list
include include/uapi/asm-generic/Kbuild.asm
include include/uapi/asm-generic/Kbuild.asm


generated-y += unistd_n32.h
generated-y += unistd_n64.h
generated-y += unistd_o32.h
generated-y += unistd_nr_n32.h
generated-y += unistd_nr_n64.h
generated-y += unistd_nr_o32.h
generic-y += bpf_perf_event.h
generic-y += bpf_perf_event.h
generic-y += ipcbuf.h
generic-y += ipcbuf.h
+6 −1064

File changed.

Preview size limit exceeded, changes collapsed.

Loading