aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/clang-tools/gen_compile_commands.py
diff options
context:
space:
mode:
authorOwen Rafferty <[email protected]>2022-08-31 20:57:08 +0000
committerMasahiro Yamada <[email protected]>2022-09-28 19:40:15 +0000
commit033a52d033607dab1c9b93962921dc6a9a9146b3 (patch)
tree52e63ec6397b42b31f8f66ef6af5ceea9fb36b45 /scripts/clang-tools/gen_compile_commands.py
parentRevert "kbuild: Make scripts/compile.h when sh != bash" (diff)
downloadkernel-033a52d033607dab1c9b93962921dc6a9a9146b3.tar.gz
kernel-033a52d033607dab1c9b93962921dc6a9a9146b3.zip
kbuild: rewrite check-local-export in sh/awk
Remove the bash build dependency for those who otherwise do not have it installed. This also provides a significant speedup: $ make defconfig $ make yes2modconfig ... $ find . -name "*.o" | grep -v vmlinux | wc 3169 3169 89615 $ export NM=nm $ time sh -c 'find . -name "*.o" | grep -v vmlinux | xargs -n1 ./scripts/check-local-export' Without patch: 0m15.90s real 0m12.17s user 0m05.28s system With patch: dash + nawk 0m02.16s real 0m02.92s user 0m00.34s system dash + busybox awk 0m02.36s real 0m03.36s user 0m00.34s system dash + gawk 0m02.07s real 0m03.26s user 0m00.32s system bash + gawk 0m03.55s real 0m05.00s user 0m00.54s system Signed-off-by: Owen Rafferty <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]>
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions