* what is the purpose of "LOCALVERSION" variable in scripts/setlocalversion?
@ 2016-04-09 11:01 Robert P. J. Day
2016-04-09 11:17 ` Chinmay V S
0 siblings, 1 reply; 2+ messages in thread
From: Robert P. J. Day @ 2016-04-09 11:01 UTC (permalink / raw)
To: kernelnewbies
i was perusing "scripts/setlocalversion" to see the variations for
setting the kernel version, and i ran across this snippet:
# CONFIG_LOCALVERSION and LOCALVERSION (if set)
res="${res}${CONFIG_LOCALVERSION}${LOCALVERSION}"
i'm well aware of the kernel *config* option CONFIG_LOCALVERSION, but
i was unaware of the apparently independent variable "LOCALVERSION"
which is used in that assignment.
there's precious little mention of that variable ... under what
circumstances does one set it? is it meant to be set in the user's
environment and simply inherited that way? is anyone here using it on
a regular basis?
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
^ permalink raw reply [flat|nested] 2+ messages in thread
* what is the purpose of "LOCALVERSION" variable in scripts/setlocalversion?
2016-04-09 11:01 what is the purpose of "LOCALVERSION" variable in scripts/setlocalversion? Robert P. J. Day
@ 2016-04-09 11:17 ` Chinmay V S
0 siblings, 0 replies; 2+ messages in thread
From: Chinmay V S @ 2016-04-09 11:17 UTC (permalink / raw)
To: kernelnewbies
> i was unaware of the apparently independent variable "LOCALVERSION"
> which is used in that assignment.
>
> there's precious little mention of that variable ... under what
> circumstances does one set it?
I have sometimes seen a "+" or a short-commit-sha appended when
building kernel in a local git repository with uncommitted/committed
changes.
Also i suppose one could run make LOCALVERSION=<unique-string-here> to
help identify a kernel image by the embedded <unique-string> if
required at a later time.
As the image name is one of the first things to be printed in the
kernel/dmesg logs, it helps map error logs to their respective builds.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-04-09 11:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-09 11:01 what is the purpose of "LOCALVERSION" variable in scripts/setlocalversion? Robert P. J. Day
2016-04-09 11:17 ` Chinmay V S
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).