]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: download full syscall tables from hrw/syscalls-table
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 15 Jan 2021 10:43:47 +0000 (11:43 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 15 Jan 2021 17:35:02 +0000 (18:35 +0100)
The target is renamed to 'update-syscall-tables'. (Other targets
with similar names will be added later.)

meson.build
src/basic/meson.build
src/basic/syscall-names.text [moved from src/shared/syscall-names.text with 100% similarity]
src/shared/meson.build
tools/syscall-names-update.sh [deleted file]
tools/syscall-table-update.sh [new file with mode: 0755]

index a8afa0dd2f75af5b69a8bdf470a9655446d12fa2..fc538c2c38faca660dafa462b7d71ba416da0c47 100644 (file)
@@ -1617,6 +1617,16 @@ includes = include_directories('src/basic',
 add_project_arguments('-include', 'config.h', language : 'c')
 
 generate_gperfs = find_program('tools/generate-gperfs.py')
+autosuspend_update_sh = find_program('tools/autosuspend-update.sh')
+hwdb_update_sh = find_program('tools/hwdb-update.sh')
+make_autosuspend_rules_py = find_program('tools/make-autosuspend-rules.py')
+make_directive_index_py = find_program('tools/make-directive-index.py')
+make_man_index_py = find_program('tools/make-man-index.py')
+syscall_table_update_sh = find_program('tools/syscall-table-update.sh')
+xml_helper_py = find_program('tools/xml_helper.py')
+update_dbus_docs_py = find_program('tools/update-dbus-docs.py')
+
+############################################################
 
 subdir('po')
 subdir('catalog')
@@ -1685,17 +1695,6 @@ install_libsystemd_static = static_library(
 
 ############################################################
 
-autosuspend_update_sh = find_program('tools/autosuspend-update.sh')
-hwdb_update_sh = find_program('tools/hwdb-update.sh')
-make_autosuspend_rules_py = find_program('tools/make-autosuspend-rules.py')
-make_directive_index_py = find_program('tools/make-directive-index.py')
-make_man_index_py = find_program('tools/make-man-index.py')
-syscall_names_update_sh = find_program('tools/syscall-names-update.sh')
-xml_helper_py = find_program('tools/xml_helper.py')
-update_dbus_docs_py = find_program('tools/update-dbus-docs.py')
-
-############################################################
-
 # binaries that have --help and are intended for use by humans,
 # usually, but not always, installed in /bin.
 public_programs = []
index 11bf4b16aa20876d15663377c9305056ee659f4c..84e5ad481fd62dd41fb47068750dffd7e4bc0a40 100644 (file)
@@ -356,3 +356,29 @@ libbasic_gcrypt = static_library(
         include_directories : includes,
         dependencies : [libgcrypt],
         c_args : ['-fvisibility=default'])
+
+############################################################
+
+arch_list = [
+        'alpha',
+        'arc',
+        'arm',
+        'arm64',
+        'i386',
+        'ia64',
+        'm68k',
+        'mips64',
+        'mips64n32',
+        'mipso32',
+        'powerpc',
+        'powerpc64',
+        's390',
+        's390x',
+        'sparc',
+        'x86_64']
+
+run_target(
+        'update-syscall-tables',
+        command : [syscall_table_update_sh, meson.current_source_dir()] + arch_list)
+
+syscall_names_text = files('syscall-names.text')
index ac78c9f818096aba0e146c1e98e6a5b9ddc16c6d..7f522bc27e3b94c8d6367e082d30960f45cd0e34 100644 (file)
@@ -283,7 +283,7 @@ generate_syscall_list = find_program('generate-syscall-list.py')
 fname = 'syscall-list.h'
 syscall_list_h = custom_target(
         fname,
-        input : 'syscall-names.text',
+        input : syscall_names_text,
         output : fname,
         command : [generate_syscall_list,
                    '@INPUT@'],
@@ -405,9 +405,3 @@ libshared = shared_library(
         dependencies : libshared_deps,
         install : true,
         install_dir : rootlibexecdir)
-
-############################################################
-
-run_target(
-        'syscall-names-update',
-        command : [syscall_names_update_sh, meson.current_source_dir()])
diff --git a/tools/syscall-names-update.sh b/tools/syscall-names-update.sh
deleted file mode 100755 (executable)
index c884b93..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh
-set -eu
-
-cd "$1"
-
-curl -L -o syscall-names.text 'https://raw.githubusercontent.com/hrw/syscalls-table/master/syscall-names.text'
diff --git a/tools/syscall-table-update.sh b/tools/syscall-table-update.sh
new file mode 100755 (executable)
index 0000000..15b7792
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh
+set -eu
+
+cd "$1" && shift
+
+curl -L -o syscall-names.text 'https://raw.githubusercontent.com/hrw/syscalls-table/master/syscall-names.text'
+
+for arch in "$@"; do
+    curl -L -o syscalls-$arch "https://raw.githubusercontent.com/hrw/syscalls-table/master/tables/syscalls-$arch"
+done