* Append Localversion to Kernel String
@ 2016-10-06 9:26 Marco Gross
2016-10-06 17:01 ` Alexander Kapshuk
0 siblings, 1 reply; 3+ messages in thread
From: Marco Gross @ 2016-10-06 9:26 UTC (permalink / raw)
To: kernelnewbies
Hello folks,
I'm trying to automatically append version information to my kernel's version string.
Therefore, I have in my .config following option:
CONFIG_LOCALVERSION_AUTO=y
Additionally, following is set:
CONFIG_LOCALVERSION="++"
The output that is expected is said to be the first eight characters of the output of 'git rev-parse --verify HEAD'.
The output in my kernel directory is:
$ git rev-parse --verify HEAD
c8d2bc9bc39ebea8437fd974fdbc21847bb897a3
After installing the kernel the name of the kernel is as follows:
vmlinuz-4.8.0++
I expected:
vmlinuz-4.8.0++-gc8d2bc9b
My question: Where is the version string that I expected?
Marco
Mit freundlichen Gr??en / Best regards
Marco Gross
Diplomand
[cid:LogoFritzStephan72dpi120x55Pixel_cfdd7a92-cbea-435d-a419-8d088e6ed7a8.png]
Fritz Stephan GmbH
- Medizintechnik -
Kirchstra?e 19, D-56412 Gackenbach
Tel.: +49 6439 9125-249
Fax: +49 6439 9125-111
E-Mail: mgross at stephan-gmbh.com<mailto:mgross@stephan-gmbh.com>
Web: www.stephan-gmbh.com
Handelsregister Amtsgericht Montabaur HR-Nr. 4241
Gesch?ftsf?hrer: Tanja Stephan, Georg Mainusch
[cid:Eve_Signatur_145525f8-5839-48a6-8419-4e43941739b5.jpg] [cid:YouTube-logo-full_color_362f623d-4265-4133-9721-da6b905f4c25.png] <https://www.youtube.com/channel/UCtILKk6D8klJo5FwlycY82w>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20161006/b2a5d0fb/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LogoFritzStephan72dpi120x55Pixel_cfdd7a92-cbea-435d-a419-8d088e6ed7a8.png
Type: image/png
Size: 7124 bytes
Desc: LogoFritzStephan72dpi120x55Pixel_cfdd7a92-cbea-435d-a419-8d088e6ed7a8.png
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20161006/b2a5d0fb/attachment-0002.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Eve_Signatur_145525f8-5839-48a6-8419-4e43941739b5.jpg
Type: image/jpeg
Size: 3774 bytes
Desc: Eve_Signatur_145525f8-5839-48a6-8419-4e43941739b5.jpg
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20161006/b2a5d0fb/attachment-0001.jpg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: YouTube-logo-full_color_362f623d-4265-4133-9721-da6b905f4c25.png
Type: image/png
Size: 5658 bytes
Desc: YouTube-logo-full_color_362f623d-4265-4133-9721-da6b905f4c25.png
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20161006/b2a5d0fb/attachment-0003.png
^ permalink raw reply [flat|nested] 3+ messages in thread
* Append Localversion to Kernel String
2016-10-06 9:26 Append Localversion to Kernel String Marco Gross
@ 2016-10-06 17:01 ` Alexander Kapshuk
2016-11-20 17:27 ` Boyan Vladinov
0 siblings, 1 reply; 3+ messages in thread
From: Alexander Kapshuk @ 2016-10-06 17:01 UTC (permalink / raw)
To: kernelnewbies
On Thu, Oct 6, 2016 at 12:26 PM, Marco Gross <mgross@stephan-gmbh.com> wrote:
>
> Hello folks,
>
>
>
> I?m trying to automatically append version information to my kernel?s version string.
>
> Therefore, I have in my .config following option:
>
>
>
> CONFIG_LOCALVERSION_AUTO=y
>
>
>
> Additionally, following is set:
>
>
>
> CONFIG_LOCALVERSION=?++?
>
>
>
> The output that is expected is said to be the first eight characters of the output of ?git rev-parse --verify HEAD?.
>
> The output in my kernel directory is:
>
>
>
> $ git rev-parse --verify HEAD
>
> c8d2bc9bc39ebea8437fd974fdbc21847bb897a3
>
>
>
> After installing the kernel the name of the kernel is as follows:
>
>
>
> vmlinuz-4.8.0++
>
>
>
> I expected:
>
>
>
> vmlinuz-4.8.0++-gc8d2bc9b
>
>
>
> My question: Where is the version string that I expected?
>
>
>
> Marco
>
>
>
> Mit freundlichen Gr??en / Best regards
>
> Marco Gross
>
> Diplomand
>
>
>
>
>
> Fritz Stephan GmbH
>
> - Medizintechnik -
>
> Kirchstra?e 19, D-56412 Gackenbach
>
>
>
> Tel.: +49 6439 9125-249
>
> Fax: +49 6439 9125-111
>
> E-Mail: mgross at stephan-gmbh.com
>
> Web: www.stephan-gmbh.com
>
>
>
> Handelsregister Amtsgericht Montabaur HR-Nr. 4241
>
> Gesch?ftsf?hrer: Tanja Stephan, Georg Mainusch
>
>
>
>
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
The '+' character is appended when the contents of your git repository
have been modified, but not committed.
You want to either commit the changes you have made, and rebuild the
kernel, or undo the changes to restore the original state of the tree.
Hope this helps.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Append Localversion to Kernel String
2016-10-06 17:01 ` Alexander Kapshuk
@ 2016-11-20 17:27 ` Boyan Vladinov
0 siblings, 0 replies; 3+ messages in thread
From: Boyan Vladinov @ 2016-11-20 17:27 UTC (permalink / raw)
To: kernelnewbies
Hi Marco,
Wasn't this an eudyptula challenge task?
Thanks!
b.
On 6.10.2016 10:01, Alexander Kapshuk wrote:
> On Thu, Oct 6, 2016 at 12:26 PM, Marco Gross <mgross@stephan-gmbh.com> wrote:
>> Hello folks,
>>
>>
>>
>> I?m trying to automatically append version information to my kernel?s version string.
>>
>> Therefore, I have in my .config following option:
>>
>>
>>
>> CONFIG_LOCALVERSION_AUTO=y
>>
>>
>>
>> Additionally, following is set:
>>
>>
>>
>> CONFIG_LOCALVERSION=?++?
>>
>>
>>
>> The output that is expected is said to be the first eight characters of the output of ?git rev-parse --verify HEAD?.
>>
>> The output in my kernel directory is:
>>
>>
>>
>> $ git rev-parse --verify HEAD
>>
>> c8d2bc9bc39ebea8437fd974fdbc21847bb897a3
>>
>>
>>
>> After installing the kernel the name of the kernel is as follows:
>>
>>
>>
>> vmlinuz-4.8.0++
>>
>>
>>
>> I expected:
>>
>>
>>
>> vmlinuz-4.8.0++-gc8d2bc9b
>>
>>
>>
>> My question: Where is the version string that I expected?
>>
>>
>>
>> Marco
>>
>>
>>
>> Mit freundlichen Gr??en / Best regards
>>
>> Marco Gross
>>
>> Diplomand
>>
>>
>>
>>
>>
>> Fritz Stephan GmbH
>>
>> - Medizintechnik -
>>
>> Kirchstra?e 19, D-56412 Gackenbach
>>
>>
>>
>> Tel.: +49 6439 9125-249
>>
>> Fax: +49 6439 9125-111
>>
>> E-Mail: mgross at stephan-gmbh.com
>>
>> Web: www.stephan-gmbh.com
>>
>>
>>
>> Handelsregister Amtsgericht Montabaur HR-Nr. 4241
>>
>> Gesch?ftsf?hrer: Tanja Stephan, Georg Mainusch
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> Kernelnewbies mailing list
>> Kernelnewbies at kernelnewbies.org
>> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>
> The '+' character is appended when the contents of your git repository
> have been modified, but not committed.
>
> You want to either commit the changes you have made, and rebuild the
> kernel, or undo the changes to restore the original state of the tree.
>
> Hope this helps.
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-11-20 17:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-06 9:26 Append Localversion to Kernel String Marco Gross
2016-10-06 17:01 ` Alexander Kapshuk
2016-11-20 17:27 ` Boyan Vladinov
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.