arm64: configs: g12a: Move CONFIG_THERMAL_DEFAULT_GOV_POWER_ALLOCATOR
[GitHub/LineageOS/G12/android_kernel_amlogic_linux-4.9.git] / scripts / adjust_autoksyms.sh
index 8dc1918b6783dd337590f97b5aa33be5125980ea..564db3542ec206b79723510939cb473302e5eb6e 100755 (executable)
@@ -83,6 +83,13 @@ while read sympath; do
        depfile="include/config/ksym/${sympath}.h"
        mkdir -p "$(dirname "$depfile")"
        touch "$depfile"
+       # Filesystems with coarse time precision may create timestamps
+       # equal to the one from a file that was very recently built and that
+       # needs to be rebuild. Let's guard against that by making sure our
+       # dep files are always newer than the first file we created here.
+       while [ ! "$depfile" -nt "$new_ksyms_file" ]; do
+               touch "$depfile"
+       done
        echo $((count += 1))
 done | tail -1 )
 changed=${changed:-0}