diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-01-15 17:06:19 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-01-15 18:36:16 +0100 |
commit | 35b42e560039fd87d4ae4d99cd54d1d4e89710b1 (patch) | |
tree | d608d5b27bbdab15becb61c6395e0c1839235d35 /tools | |
parent | 79758570798dd82ab60cdae3f4ae1fa3f48823a1 (diff) | |
download | systemd-35b42e560039fd87d4ae4d99cd54d1d4e89710b1.tar.gz |
src/basic: generate missing syscall headers programatically
Getting the numbers right for all architectures has proven to be a
constant chore. Let's autogenerate the header from the tables that
were imported in one of the previous commits.
Fixes #18074. (Hopefully. I cannot verify this on all architectures.)
To update the lists, or to update the header after template changes:
ninja -C build update-syscall-tables update-syscall-header
Note: the generated file is saved in git. Initially I wanted to only
store the tables in git, and generate the header during each build.
Generation is quick enough, but the header is used in many many
places (wherever missing_syscall.h is included, directly or indirectly),
which means that we would need to declare the dependency in meson, so
the header would be generated early enough. This turned out to be very
noisy. Storing the generated header in version control avoids the hassle.
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions