1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00

meson: add target to update the chromiumos rules

There is no change in the file right now, but the download seems to work
OK.

It's funny that the biggest company in the world cannot provide a
download link in plain text.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2019-11-15 11:32:24 +01:00
parent 67f5b9e06e
commit 62d3999518
4 changed files with 12 additions and 0 deletions

View File

@ -47,3 +47,7 @@ endif
run_target(
'hwdb-update',
command : [hwdb_update_sh, meson.current_source_dir()])
run_target(
'autosuspend-update',
command : [autosuspend_update_sh, project_source_root + '/tools/chromiumos'])

View File

@ -2930,6 +2930,7 @@ make_directive_index_py = find_program('tools/make-directive-index.py')
make_man_index_py = find_program('tools/make-man-index.py')
xml_helper_py = find_program('tools/xml_helper.py')
hwdb_update_sh = find_program('tools/meson-hwdb-update.sh')
autosuspend_update_sh = find_program('tools/meson-autosuspend-update.sh')
subdir('sysctl.d')
subdir('sysusers.d')

0
tools/chromiumos/gen_autosuspend_rules.py Executable file → Normal file
View File

View File

@ -0,0 +1,7 @@
#!/bin/sh
set -eu
cd "$1"
(curl -L 'https://chromium.googlesource.com/chromiumos/platform2/+/master/power_manager/udev/gen_autosuspend_rules.py?format=TEXT'; echo) \
| base64 -d > gen_autosuspend_rules.py