summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-01-16 17:21:34 +0100
committerGitHub <noreply@github.com>2021-01-16 17:21:34 +0100
commit2b5a1402f6b18d6759b57d109b6030c570decf98 (patch)
tree3e6ec6f2c955863afe70cb42f99b734b9fd2824e /tools
parent55eeb476318ae2709636b91640f5d135e8c611ef (diff)
parent35b42e560039fd87d4ae4d99cd54d1d4e89710b1 (diff)
downloadsystemd-2b5a1402f6b18d6759b57d109b6030c570decf98.tar.gz
Merge pull request #18263 from keszybz/syscalls-auto
Generate missing syscalls headers programatically
Diffstat (limited to 'tools')
-rwxr-xr-xtools/autosuspend-update.sh2
-rwxr-xr-xtools/hwdb-update.sh14
-rwxr-xr-xtools/syscall-names-update.sh6
-rwxr-xr-xtools/syscall-table-update.sh10
4 files changed, 18 insertions, 14 deletions
diff --git a/tools/autosuspend-update.sh b/tools/autosuspend-update.sh
index a4f99eb6b3..0e93eab720 100755
--- a/tools/autosuspend-update.sh
+++ b/tools/autosuspend-update.sh
@@ -3,5 +3,5 @@ set -eu
cd "$1"
-(curl -L 'https://chromium.googlesource.com/chromiumos/platform2/+/master/power_manager/udev/gen_autosuspend_rules.py?format=TEXT'; echo) \
+(curl --fail -L 'https://chromium.googlesource.com/chromiumos/platform2/+/master/power_manager/udev/gen_autosuspend_rules.py?format=TEXT'; echo) \
| base64 -d > gen_autosuspend_rules.py
diff --git a/tools/hwdb-update.sh b/tools/hwdb-update.sh
index 39efd75192..42251612dd 100755
--- a/tools/hwdb-update.sh
+++ b/tools/hwdb-update.sh
@@ -15,13 +15,13 @@ if [ "${2:-}" != "-n" ]; then (
[ -z "$permissive" ] || set +e
set -x
- curl -L -o usb.ids 'http://www.linux-usb.org/usb.ids'
- curl -L -o pci.ids 'http://pci-ids.ucw.cz/v2.2/pci.ids'
- curl -L -o ma-large.txt 'http://standards-oui.ieee.org/oui/oui.txt'
- curl -L -o ma-medium.txt 'http://standards-oui.ieee.org/oui28/mam.txt'
- curl -L -o ma-small.txt 'http://standards-oui.ieee.org/oui36/oui36.txt'
- curl -L -o pnp_id_registry.html 'https://uefi.org/uefi-pnp-export'
- curl -L -o acpi_id_registry.html 'https://uefi.org/uefi-acpi-export'
+ curl --fail -L -o usb.ids 'http://www.linux-usb.org/usb.ids'
+ curl --fail -L -o pci.ids 'http://pci-ids.ucw.cz/v2.2/pci.ids'
+ curl --fail -L -o ma-large.txt 'http://standards-oui.ieee.org/oui/oui.txt'
+ curl --fail -L -o ma-medium.txt 'http://standards-oui.ieee.org/oui28/mam.txt'
+ curl --fail -L -o ma-small.txt 'http://standards-oui.ieee.org/oui36/oui36.txt'
+ curl --fail -L -o pnp_id_registry.html 'https://uefi.org/uefi-pnp-export'
+ curl --fail -L -o acpi_id_registry.html 'https://uefi.org/uefi-acpi-export'
) fi
set -x
diff --git a/tools/syscall-names-update.sh b/tools/syscall-names-update.sh
deleted file mode 100755
index c884b93cda..0000000000
--- a/tools/syscall-names-update.sh
+++ /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
index 0000000000..e270246202
--- /dev/null
+++ b/tools/syscall-table-update.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+set -eu
+
+cd "$1" && shift
+
+curl --fail -L -o syscall-names.text 'https://raw.githubusercontent.com/hrw/syscalls-table/master/syscall-names.text'
+
+for arch in "$@"; do
+ curl --fail -L -o syscalls-$arch "https://raw.githubusercontent.com/hrw/syscalls-table/master/tables/syscalls-$arch"
+done