Skip to content

Commit 99bf73e

Browse files
Firoz Khanpaulburton
authored andcommitted
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: Firoz Khan <firoz.khan@linaro.org> Signed-off-by: Paul 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
1 parent 9bcbf97 commit 99bf73e

File tree

9 files changed

+34
-2467
lines changed

9 files changed

+34
-2467
lines changed

arch/mips/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,9 @@ archclean:
430430
$(Q)$(MAKE) $(clean)=arch/mips/boot/tools
431431
$(Q)$(MAKE) $(clean)=arch/mips/lasat
432432

433+
archheaders:
434+
$(Q)$(MAKE) $(build)=arch/mips/kernel/syscalls all
435+
433436
define archhelp
434437
echo ' install - install kernel into $(INSTALL_PATH)'
435438
echo ' vmlinux.ecoff - ECOFF boot image'

arch/mips/include/asm/Kbuild

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# MIPS headers
2+
generated-y += syscall_table_32_o32.h
3+
generated-y += syscall_table_64_n32.h
4+
generated-y += syscall_table_64_n64.h
5+
generated-y += syscall_table_64_o32.h
26
generic-(CONFIG_GENERIC_CSUM) += checksum.h
37
generic-y += current.h
48
generic-y += device.h

arch/mips/include/asm/unistd.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
#define _ASM_UNISTD_H
1414

1515
#include <uapi/asm/unistd.h>
16+
#include <asm/unistd_nr_n32.h>
17+
#include <asm/unistd_nr_n64.h>
18+
#include <asm/unistd_nr_o32.h>
1619

1720
#ifdef CONFIG_MIPS32_N32
1821
#define NR_syscalls (__NR_N32_Linux + __NR_N32_Linux_syscalls)

arch/mips/include/uapi/asm/Kbuild

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# UAPI Header export list
22
include include/uapi/asm-generic/Kbuild.asm
33

4+
generated-y += unistd_n32.h
5+
generated-y += unistd_n64.h
6+
generated-y += unistd_o32.h
7+
generated-y += unistd_nr_n32.h
8+
generated-y += unistd_nr_n64.h
9+
generated-y += unistd_nr_o32.h
410
generic-y += bpf_perf_event.h
511
generic-y += ipcbuf.h

0 commit comments

Comments
 (0)