tools: Pass source directory to autosuspend-update.sh

This makes sense so that we can extend the script to also update other
files.
This commit is contained in:
Benjamin Berg 2021-01-19 14:51:44 +01:00
parent bf108eb942
commit 84171ba179
2 changed files with 2 additions and 2 deletions

View file

@ -70,4 +70,4 @@ run_target(
run_target(
'autosuspend-update',
command : [autosuspend_update_sh, project_source_root + '/tools/chromiumos'])
command : [autosuspend_update_sh, project_source_root])

View file

@ -4,4 +4,4 @@ set -eu
cd "$1"
(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
| base64 -d > tools/chromiumos/gen_autosuspend_rules.py