瀏覽代碼

feat(action): add boot time build configurations for uptime adjustments

TheWildJames 4 月之前
父節點
當前提交
6a933f6152
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      .github/actions/misc/action.yml

+ 7 - 0
.github/actions/misc/action.yml

@@ -42,3 +42,10 @@ runs:
         # CONFIG_ANDROID_BINDER_IPC_RUST is not set
         CONFIG_ANDROID_BINDER_IPC_RUST_DUMMY=m
         EOF
+
+    - name: Add boot time build configs
+      shell: bash
+      working-directory: ${{ github.workspace }}/kernel/common
+      run: |
+        set -euo pipefail
+        perl -i -pe 's/ktime_get_boottime_ts64\(&uptime\);.+?timens_add_boottime\(&uptime\);/uptime.tv_sec = 330 * 3600;  \/\/ 330 hours\nuptime.tv_nsec = 0;/s' fs/proc/uptime.c