Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
X
xcap-capability-linux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
xcap
xcap-capability-linux
Commits
061296dc
Commit
061296dc
authored
13 years ago
by
Michal Marek
Browse files
Options
Downloads
Patches
Plain Diff
kbuild: Drop unused LINUX_COMPILE_TIME and LINUX_COMPILE_DOMAIN macros
Signed-off-by:
Michal Marek
<
mmarek@suse.cz
>
parent
09ff9fec
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/mkcompile_h
+2
-14
2 additions, 14 deletions
scripts/mkcompile_h
with
2 additions
and
14 deletions
scripts/mkcompile_h
+
2
−
14
View file @
061296dc
...
...
@@ -63,21 +63,9 @@ UTS_TRUNCATE="cut -b -$UTS_LEN"
echo
\#
define UTS_VERSION
\"
`
echo
$UTS_VERSION
|
$UTS_TRUNCATE
`
\"
echo
\#
define LINUX_COMPILE_TIME
\"
`
date
+%T
`
\"
echo
\#
define LINUX_COMPILE_BY
\"
`
whoami
`
\"
echo
\#
define LINUX_COMPILE_HOST
\"
`
hostname
|
$UTS_TRUNCATE
`
\"
domain
=
`
dnsdomainname 2> /dev/null
`
if
[
-z
"
$domain
"
]
;
then
domain
=
`
domainname 2> /dev/null
`
fi
if
[
-n
"
$domain
"
]
;
then
echo
\#
define LINUX_COMPILE_DOMAIN
\"
`
echo
$domain
|
$UTS_TRUNCATE
`
\"
else
echo
\#
define LINUX_COMPILE_DOMAIN
fi
echo
\#
define LINUX_COMPILER
\"
`
$CC
-v
2>&1 |
tail
-n
1
`
\"
)
>
.tmpcompile
...
...
@@ -91,8 +79,8 @@ UTS_TRUNCATE="cut -b -$UTS_LEN"
# first line.
if
[
-r
$TARGET
]
&&
\
grep
-v
'UTS_VERSION
\|LINUX_COMPILE_TIME
'
$TARGET
>
.tmpver.1
&&
\
grep
-v
'UTS_VERSION
\|LINUX_COMPILE_TIME
'
.tmpcompile
>
.tmpver.2
&&
\
grep
-v
'UTS_VERSION'
$TARGET
>
.tmpver.1
&&
\
grep
-v
'UTS_VERSION'
.tmpcompile
>
.tmpver.2
&&
\
cmp
-s
.tmpver.1 .tmpver.2
;
then
rm
-f
.tmpcompile
else
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment