From: Trevor Woerner <twoerner@gmail.com>
To: Martin.Jansa@gmail.com, koen@dominion.thruhere.net,
openembedded-core@lists.openembedded.org
Subject: kernel config, scripts/setlocalversion
Date: Tue, 21 Mar 2017 03:23:13 -0400 [thread overview]
Message-ID: <20170321072313.GA2565@linux-uys3> (raw)
Hi,
Currently openembedded-core/meta/classes/kernel.bbclass contains:
kernel_do_configure() {
# fixes extra + in /lib/modules/2.6.37+
# $ scripts/setlocalversion . => +
# $ make kernelversion => 2.6.37
# $ make kernelrelease => 2.6.37+
touch ${B}/.scmversion ${S}/.scmversion
According to the log message for this commit, the kernel's
scripts/setlocalversion was leaving and/or appending a '+' to the end of
directory names (e.g. /lib/modules/2.6.37+). The conversation can be seen
here:
http://lists.openembedded.org/pipermail/openembedded-core/2011-December/053263.html
The problem is that creating an empty .scmversion file circumvents the kernel
build's CONFIG_LOCALVERSION handling. In other words, if the user enables this
kernel option, touching .scmversion prevents this option from having any
effect (which doesn't seem right). It seems like overkill for simply wanting
to remove a trailing '+' character.
I've been playing around with this by removing the "touch" line and in my
testing I don't see any '+' characters appended to /lib/modules in the image.
In other words, it *seems* as though the issue this commit was trying to fix
doesn't seem to be an issue anymore?
But maybe I'm not doing enough testing? Could anyone clarify the issue with
commit 56fe5300ab5?
I'd like to further point out that this only happens if/when the user enables
the kernel's CONFIG_LOCALVERSION option, and that, by default, this option is
turned off in linux-yocto* kernels.
Best regards,
Trevor
reply other threads:[~2017-03-21 7:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20170321072313.GA2565@linux-uys3 \
--to=twoerner@gmail.com \
--cc=Martin.Jansa@gmail.com \
--cc=koen@dominion.thruhere.net \
--cc=openembedded-core@lists.openembedded.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