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 15:05:27 +01:00
parent bf108eb942
commit 84171ba179
2 changed files with 2 additions and 2 deletions
+1 -1
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])
+1 -1
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