kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: cvs268@gmail.com (Chinmay V S)
To: kernelnewbies@lists.kernelnewbies.org
Subject: what is the purpose of "LOCALVERSION" variable in scripts/setlocalversion?
Date: Sat, 9 Apr 2016 16:47:02 +0530	[thread overview]
Message-ID: <CAK-9PRCeJPiW3Q7ec7eT-ckZE1O8Jv655TGya+-dn4j4SUtk2Q@mail.gmail.com> (raw)
In-Reply-To: <alpine.LFD.2.20.1604090653240.4016@localhost.localdomain>

> 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.

      reply	other threads:[~2016-04-09 11:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAK-9PRCeJPiW3Q7ec7eT-ckZE1O8Jv655TGya+-dn4j4SUtk2Q@mail.gmail.com \
    --to=cvs268@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).