aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/mkcompile_h
diff options
context:
space:
mode:
authorMichal Marek <mmarek@suse.cz>2011-03-31 11:13:55 -0400
committerMichal Marek <mmarek@suse.cz>2011-04-18 08:25:51 -0400
commit061296dc2c14f852604fc6849669fe0b78bb1eda (patch)
tree8bde5594d6c6de527d14ccbf0d4577c329ddaecd /scripts/mkcompile_h
parent09ff9fecc039d60fff6c11d47522af61e89fff56 (diff)
kbuild: Drop unused LINUX_COMPILE_TIME and LINUX_COMPILE_DOMAIN macros
Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts/mkcompile_h')
-rwxr-xr-xscripts/mkcompile_h16
1 files changed, 2 insertions, 14 deletions
diff --git a/scripts/mkcompile_h b/scripts/mkcompile_h
index 50ad317a4bf9..82416a81df5e 100755
--- a/scripts/mkcompile_h
+++ b/scripts/mkcompile_h
@@ -63,21 +63,9 @@ UTS_TRUNCATE="cut -b -$UTS_LEN"
63 63
64 echo \#define UTS_VERSION \"`echo $UTS_VERSION | $UTS_TRUNCATE`\" 64 echo \#define UTS_VERSION \"`echo $UTS_VERSION | $UTS_TRUNCATE`\"
65 65
66 echo \#define LINUX_COMPILE_TIME \"`date +%T`\"
67 echo \#define LINUX_COMPILE_BY \"`whoami`\" 66 echo \#define LINUX_COMPILE_BY \"`whoami`\"
68 echo \#define LINUX_COMPILE_HOST \"`hostname | $UTS_TRUNCATE`\" 67 echo \#define LINUX_COMPILE_HOST \"`hostname | $UTS_TRUNCATE`\"
69 68
70 domain=`dnsdomainname 2> /dev/null`
71 if [ -z "$domain" ]; then
72 domain=`domainname 2> /dev/null`
73 fi
74
75 if [ -n "$domain" ]; then
76 echo \#define LINUX_COMPILE_DOMAIN \"`echo $domain | $UTS_TRUNCATE`\"
77 else
78 echo \#define LINUX_COMPILE_DOMAIN
79 fi
80
81 echo \#define LINUX_COMPILER \"`$CC -v 2>&1 | tail -n 1`\" 69 echo \#define LINUX_COMPILER \"`$CC -v 2>&1 | tail -n 1`\"
82) > .tmpcompile 70) > .tmpcompile
83 71
@@ -91,8 +79,8 @@ UTS_TRUNCATE="cut -b -$UTS_LEN"
91# first line. 79# first line.
92 80
93if [ -r $TARGET ] && \ 81if [ -r $TARGET ] && \
94 grep -v 'UTS_VERSION\|LINUX_COMPILE_TIME' $TARGET > .tmpver.1 && \ 82 grep -v 'UTS_VERSION' $TARGET > .tmpver.1 && \
95 grep -v 'UTS_VERSION\|LINUX_COMPILE_TIME' .tmpcompile > .tmpver.2 && \ 83 grep -v 'UTS_VERSION' .tmpcompile > .tmpver.2 && \
96 cmp -s .tmpver.1 .tmpver.2; then 84 cmp -s .tmpver.1 .tmpver.2; then
97 rm -f .tmpcompile 85 rm -f .tmpcompile
98else 86else