kbuild: optimize headers_* targets
authorSam Ravnborg <sam@ravnborg.org>
Sun, 15 Jun 2008 19:41:09 +0000 (21:41 +0200)
committerSam Ravnborg <sam@ravnborg.org>
Fri, 25 Jul 2008 20:12:16 +0000 (22:12 +0200)
commit7712401ae9006fc9d9b9a3e7861dc73781429a89
treecb0989cc5a1db8b7e4f490eef8e33225a2e40e93
parent88181ec30f58a28cd78b26aaac38bef4062b23dc
kbuild: optimize headers_* targets

Move the core functionality of headers_install
and headers_check to two small perl scripts.
The makefile is adapted to use the perl scrip and
changed to operate on all files in a directory.
So if one file is changed then all files in the
directory is processed.

perl were chosen for the helper scripts because this
is pure text processing which perl is good at and
especially the headers_check.pl script are expected to
see changes / new checks implmented.

The speed is ~300% faster on this box.
And the output generated to the screen is now down to
two lines per directory (one for install, one for check)
so it is easier to scroll back after a kernel build.

The perl scripts has been brought to sanity by patient
feedback from: Vegard Nossum <vegard.nossum@gmail.com>

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
scripts/Makefile.headersinst
scripts/hdrcheck.sh [deleted file]
scripts/headers_check.pl [new file with mode: 0644]
scripts/headers_install.pl [new file with mode: 0644]