summaryrefslogtreecommitdiff
path: root/scripts/mkcompile_h
diff options
context:
space:
mode:
authorSam Ravnborg <sam@mars.ravnborg.org>2003-03-07 23:55:37 +0100
committerSam Ravnborg <sam@mars.ravnborg.org>2003-03-07 23:55:37 +0100
commit6374f6494302d8a12463dcc98a5aead6c4898155 (patch)
tree2270877acc4495f7acfdf63ef37348693d02d836 /scripts/mkcompile_h
parent5667cc2b4b5cbcff13b9c5df836e435961d3b405 (diff)
kbuild: Do not clutter output with make -jN
Added a new rule filechk used to check when a generated file actually is changed. If there is no actual changes the file is left without updating the timestamp. When building a kernel from scratch two printouts occurs: CHK file-to-generate UPD file-to-generate The first line tell that kbuild checks the file, second line tell that the file is being updated (or created). On successive runs only the first line is printed. Output is the same in verbose and non-verbose mode. This replaces the former update-if-changed which has been deleted. generate-asm-offsets.h has been renamed as well. All users are updated in next patch. Output when generating compile.h follow above style
Diffstat (limited to 'scripts/mkcompile_h')
-rwxr-xr-xscripts/mkcompile_h7
1 files changed, 3 insertions, 4 deletions
diff --git a/scripts/mkcompile_h b/scripts/mkcompile_h
index e3247cb98d3b..85f6a6f94aa9 100755
--- a/scripts/mkcompile_h
+++ b/scripts/mkcompile_h
@@ -10,7 +10,7 @@ CC=$4
# do "compiled by root"
if [ -r $TARGET -a ! -O include/linux/autoconf.h ]; then
- echo ' (not modified)'
+ echo " SKIPPED $TARGET"
exit 0
fi
@@ -70,10 +70,9 @@ if [ -r $TARGET ] && \
grep -v 'UTS_VERSION\|LINUX_COMPILE_TIME' $TARGET > .tmpver.1 && \
grep -v 'UTS_VERSION\|LINUX_COMPILE_TIME' .tmpcompile > .tmpver.2 && \
cmp -s .tmpver.1 .tmpver.2; then
- echo ' (unchanged)'
rm -f .tmpcompile
else
- echo ' (updated)'
+ echo " UPD $TARGET"
mv -f .tmpcompile $TARGET
fi
-#rm -f .tmpver.1 .tmpver.2
+rm -f .tmpver.1 .tmpver.2