X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=scripts%2Fadjust_autoksyms.sh;h=d67830e6e3604f18ef073ca80727af82122d7cde;hb=d6aafcdf110b74f947a234fa7160b61f2ca692d2;hp=513da1a4a2daaf7ed329b816c49d787916e72e3b;hpb=d896b3120b3391a2f95b2b8ec636e3f594d7f9c4;p=mirror_ubuntu-bionic-kernel.git diff --git a/scripts/adjust_autoksyms.sh b/scripts/adjust_autoksyms.sh index 513da1a4a2da..d67830e6e360 100755 --- a/scripts/adjust_autoksyms.sh +++ b/scripts/adjust_autoksyms.sh @@ -84,6 +84,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}