]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: add instructions for adding new arch to syscall.h
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 25 Jul 2025 15:35:34 +0000 (17:35 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 25 Jul 2025 15:53:48 +0000 (17:53 +0200)
src/include/override/sys/generate-syscall.py
src/include/override/sys/meson.build
src/include/override/sys/syscall.h

index 2a03623dbbd1ea5ed4caf3b104d4138bf590242a..8110d21ae8ba86395ec51baaf011f1e27f1e7322 100644 (file)
@@ -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
 
index b66f9d055fd7a05e8f1962559688ac480acce576..1768650b3488c0c8e349fce47cf39973cf89c8f9 100644 (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')
index f069e5f3c2f2fe3d20851c0de9439d959d0dc5ad..f01803bae221b74445c5aa0db96393d812ffdfa7 100644 (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