Skip to content

Commit

Permalink
xtensa: generate uapi header and syscall table header files
Browse files Browse the repository at this point in the history
System call table generation script must be run to gener-
ate unistd_32.h and syscall_table.h files. This patch will
have changes which will invokes the script.

This patch will generate unistd_32.h and syscall_table.h
files by the syscall table generation script invoked by
xtensa/Makefile 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/syscall.c file.

Signed-off-by: Firoz Khan <firoz.khan@linaro.org>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
  • Loading branch information
Firoz Khan authored and Max Filippov committed Dec 3, 2018
1 parent c7914ef commit 5eacadb
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 783 deletions.
3 changes: 3 additions & 0 deletions arch/xtensa/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ boot := arch/xtensa/boot
all Image zImage uImage: vmlinux
$(Q)$(MAKE) $(build)=$(boot) $@

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

define archhelp
@echo '* Image - Kernel ELF image with reset vector'
@echo '* zImage - Compressed kernel image (arch/xtensa/boot/images/zImage.*)'
Expand Down
1 change: 1 addition & 0 deletions arch/xtensa/include/asm/Kbuild
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
generated-y += syscall_table.h
generic-y += bug.h
generic-y += compat.h
generic-y += device.h
Expand Down
1 change: 1 addition & 0 deletions arch/xtensa/include/uapi/asm/Kbuild
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# UAPI Header export list
include include/uapi/asm-generic/Kbuild.asm

generated-y += unistd_32.h
generic-y += bitsperlong.h
generic-y += bpf_perf_event.h
generic-y += errno.h
Expand Down
Loading

0 comments on commit 5eacadb

Please sign in to comment.