android_kernel_motorola_sm6375/scripts/atomic
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Mark Rutland 0cf264b313 locking/atomics: Check atomic headers with sha1sum
We currently check the atomic headers at build-time to ensure they
haven't been modified directly, and these checks require regenerating
the headers in full. As this takes a few seconds, even when
parallelized, this is too slow to run for every kernel build.

Instead, we can generate a hash of each header as we generate them,
which we can cheaply check at build time (~0.16s for all headers).

This patch does so, updating headers with their hashes using the new
gen-atomics.sh script. As some users apparently build the kernel wihout
coreutils, lacking sha1sum, the checks are skipped in this case.
Presumably, most developers have a working coreutils installation.

Signed-off-by: Mark Rutland <[email protected]>
Acked-by: Will Deacon <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Boqun Feng <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Ingo Molnar <[email protected]>
2019-02-13 08:07:31 +01:00
..
fallbacks locking/atomics: Fix scripts/atomic/ script permissions 2018-11-01 12:45:46 +01:00
atomic-tbl.sh locking/atomics: Change 'fold' to 'grep' 2019-02-11 14:27:33 +01:00
atomics.tbl locking/atomics: Fix scripts/atomic/ script permissions 2018-11-01 12:45:46 +01:00
check-atomics.sh locking/atomics: Check atomic headers with sha1sum 2019-02-13 08:07:31 +01:00
gen-atomic-fallback.sh locking/atomics: Fix scripts/atomic/ script permissions 2018-11-01 12:45:46 +01:00
gen-atomic-instrumented.sh locking/atomics: Fix scripts/atomic/ script permissions 2018-11-01 12:45:46 +01:00
gen-atomic-long.sh locking/atomics: Fix scripts/atomic/ script permissions 2018-11-01 12:45:46 +01:00
gen-atomics.sh locking/atomics: Check atomic headers with sha1sum 2019-02-13 08:07:31 +01:00