meson: add instructions for adding new arch to syscall.h

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2025-07-25 17:53:48 +02:00
parent 92716a079f
commit 5e405f612e
3 changed files with 9 additions and 1 deletions
@@ -39,6 +39,9 @@ HEADER = '''\
*
* Use 'ninja -C build update-syscall-tables' to download new syscall tables,
* and 'ninja -C build update-syscall-header' to regenerate this file.
*
* To add a new architecture, extend the arch_list list in meson.build
* and the template in generate-syscall.py and then run the above commands.
*/
#pragma once
+3 -1
View File
@@ -31,7 +31,9 @@ syscall_list_txt = files('syscall-list.txt')
syscall_lists = []
foreach arch: arch_list
syscall_lists += files('syscalls-@0@.txt'.format(arch))
# We don't use files() here so that the 'update-syscall-tables' call
# above can run if arch_list is extended.
syscall_lists += meson.current_source_dir() / 'syscalls-@0@.txt'.format(arch)
endforeach
generate_syscall_py = find_program('generate-syscall.py')
+3
View File
@@ -3,6 +3,9 @@
*
* Use 'ninja -C build update-syscall-tables' to download new syscall tables,
* and 'ninja -C build update-syscall-header' to regenerate this file.
*
* To add a new architecture, extend the arch_list list in meson.build
* and the template in generate-syscall.py and then run the above commands.
*/
#pragma once