<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-toradex.git/scripts/setlocalversion, branch tegra-11.2.12</title>
<subtitle>Linux kernel for Apalis and Colibri modules</subtitle>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/'/>
<entry>
<title>setlocalversion: Ignote SCMs above the linux source tree</title>
<updated>2010-08-21T13:14:59+00:00</updated>
<author>
<name>Michal Marek</name>
<email>mmarek@suse.cz</email>
</author>
<published>2010-08-16T15:09:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=8558f59edf935cf5ee5ffc29a9e9458fd9a71be1'/>
<id>8558f59edf935cf5ee5ffc29a9e9458fd9a71be1</id>
<content type='text'>
Dan McGee &lt;dpmcgee@gmail.com&gt; writes:
&gt; Note that when in git, you get the appended "+" sign. If
&gt; LOCALVERSION_AUTO is set, you will get something like
&gt; "eee-gb01b08c-dirty" (whereas the copy of the tree in /tmp still
&gt; returns "eee"). It doesn't matter whether the working tree is dirty or
&gt; clean.
&gt;
&gt; Is there a way to disable this? I'm building from a clean tarball that
&gt; just happens to be unpacked inside a git repository. One would think
&gt; setting LOCALVERSION_AUTO to false would do it, but no such luck...

Fix this by checking if the kernel source tree is the root of the git or
hg repository. No fix for svn: If the kernel source is not tracked in
the svn repository, it works as expected, otherwise determining the
'repository root' is not really a defined task.

Reported-and-tested-by: Dan McGee &lt;dpmcgee@gmail.com&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.cz&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Dan McGee &lt;dpmcgee@gmail.com&gt; writes:
&gt; Note that when in git, you get the appended "+" sign. If
&gt; LOCALVERSION_AUTO is set, you will get something like
&gt; "eee-gb01b08c-dirty" (whereas the copy of the tree in /tmp still
&gt; returns "eee"). It doesn't matter whether the working tree is dirty or
&gt; clean.
&gt;
&gt; Is there a way to disable this? I'm building from a clean tarball that
&gt; just happens to be unpacked inside a git repository. One would think
&gt; setting LOCALVERSION_AUTO to false would do it, but no such luck...

Fix this by checking if the kernel source tree is the root of the git or
hg repository. No fix for svn: If the kernel source is not tracked in
the svn repository, it works as expected, otherwise determining the
'repository root' is not really a defined task.

Reported-and-tested-by: Dan McGee &lt;dpmcgee@gmail.com&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.cz&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>setlocalversion: fix version for untaged nontip mercurial revs</title>
<updated>2010-08-12T22:52:14+00:00</updated>
<author>
<name>Milton Miller</name>
<email>miltonm@bga.com</email>
</author>
<published>2010-07-22T15:19:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=55c640c3abff301eed5ee11c34a40bfe043c8c2d'/>
<id>55c640c3abff301eed5ee11c34a40bfe043c8c2d</id>
<content type='text'>
The manpage for cut says it will return all lines without the delimiter
unless -s is specified.

When I backed up my mecurial tree to generate modules, I found that the
scm part of localversion was turning up blank.

Signed-off-by: Milton Miller &lt;miltonm@bga.com&gt;
Cc: Michal Marek &lt;mmarek@suse.cz&gt;
Cc: "Michał Górny" &lt;gentoo@mgorny.alt.pl&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.cz&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The manpage for cut says it will return all lines without the delimiter
unless -s is specified.

When I backed up my mecurial tree to generate modules, I found that the
scm part of localversion was turning up blank.

Signed-off-by: Milton Miller &lt;miltonm@bga.com&gt;
Cc: Michal Marek &lt;mmarek@suse.cz&gt;
Cc: "Michał Górny" &lt;gentoo@mgorny.alt.pl&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.cz&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>kbuild: Fix make rpm</title>
<updated>2010-07-21T14:06:05+00:00</updated>
<author>
<name>Michal Marek</name>
<email>mmarek@suse.cz</email>
</author>
<published>2010-07-15T08:36:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=b003afe32f608b8d9f9a898b36514dfbf374fd3a'/>
<id>b003afe32f608b8d9f9a898b36514dfbf374fd3a</id>
<content type='text'>
make rpm was broken by commit 0915512:
make clean
set -e; cd ..; ln -sf /usr/src/iwlwifi-2.6 kernel-2.6.35rc4wl
/bin/sh /usr/src/iwlwifi-2.6/scripts/setlocalversion --scm-only &gt;
/usr/src/iwlwifi-2.6/.scmversion
cat: .scmversion: input file is output file
make[1]: *** [rpm] Error 1

Reported-and-tested-by: "Zheng, Jiajia" &lt;jiajia.zheng@intel.com&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.cz&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
make rpm was broken by commit 0915512:
make clean
set -e; cd ..; ln -sf /usr/src/iwlwifi-2.6 kernel-2.6.35rc4wl
/bin/sh /usr/src/iwlwifi-2.6/scripts/setlocalversion --scm-only &gt;
/usr/src/iwlwifi-2.6/.scmversion
cat: .scmversion: input file is output file
make[1]: *** [rpm] Error 1

Reported-and-tested-by: "Zheng, Jiajia" &lt;jiajia.zheng@intel.com&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.cz&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>kbuild: Make the setlocalversion script POSIX-compliant</title>
<updated>2010-07-20T13:43:27+00:00</updated>
<author>
<name>Michał Górny</name>
<email>gentoo@mgorny.alt.pl</email>
</author>
<published>2010-07-18T08:26:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=6dc0c2f3384fe543a805922c6a314c7ad25a92fc'/>
<id>6dc0c2f3384fe543a805922c6a314c7ad25a92fc</id>
<content type='text'>
The 'source' builtin is a bash alias to the '.' (dot) builtin. While the
former is supported only by bash, the latter is specified in POSIX and
works fine with all POSIX-compliant shells I am aware of.

The '$_' special parameter is specific to bash. It is partially
supported in dash too but it always evaluates to the current script path
(which causes the script to enter a loop recursively re-executing
itself). This is why I have replaced the two occurences of '$_' with the
explicit parameter.

The 'local' builtin is another example of bash-specific code. Although
it is supported by all POSIX-compliant shells I am aware of, it is not
part of POSIX specification and thus the code should not rely on it
assigning a specific value to the local variable. Moreover, the 'posh'
shell has a limited version of 'local' builtin not supporting direct
variable assignments. Thus, I have broken one of the 'local'
declarations down into a (non-POSIX) 'local' declaration and a plain
(POSIX-compliant) variable assignment.

Signed-off-by: Michał Górny &lt;gentoo@mgorny.alt.pl&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.cz&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The 'source' builtin is a bash alias to the '.' (dot) builtin. While the
former is supported only by bash, the latter is specified in POSIX and
works fine with all POSIX-compliant shells I am aware of.

The '$_' special parameter is specific to bash. It is partially
supported in dash too but it always evaluates to the current script path
(which causes the script to enter a loop recursively re-executing
itself). This is why I have replaced the two occurences of '$_' with the
explicit parameter.

The 'local' builtin is another example of bash-specific code. Although
it is supported by all POSIX-compliant shells I am aware of, it is not
part of POSIX specification and thus the code should not rely on it
assigning a specific value to the local variable. Moreover, the 'posh'
shell has a limited version of 'local' builtin not supporting direct
variable assignments. Thus, I have broken one of the 'local'
declarations down into a (non-POSIX) 'local' declaration and a plain
(POSIX-compliant) variable assignment.

Signed-off-by: Michał Górny &lt;gentoo@mgorny.alt.pl&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.cz&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>kbuild: Clean up and speed up the localversion logic</title>
<updated>2010-06-18T12:23:21+00:00</updated>
<author>
<name>Michal Marek</name>
<email>mmarek@suse.cz</email>
</author>
<published>2010-06-17T13:14:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=09155120cf0ffe6f0c8aba3aa625831405b65996'/>
<id>09155120cf0ffe6f0c8aba3aa625831405b65996</id>
<content type='text'>
Now that we run scripts/setlocalversion during every build, it makes
sense to move all the localversion logic there. This cleans up the
toplevel Makefile and also makes sure that the script is called only
once in 'make prepare' (previously, it would be called every time due to
a variable expansion in an ifneq statement). No user-visible change is
intended, unless one runs the setlocalversion script directly.

Reported-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;
Cc: David Rientjes &lt;rientjes@google.com&gt;
Cc: Greg Thelen &lt;gthelen@google.com&gt;
Cc: Nico Schottelius &lt;nico-linuxsetlocalversion@schottelius.org&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.cz&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Now that we run scripts/setlocalversion during every build, it makes
sense to move all the localversion logic there. This cleans up the
toplevel Makefile and also makes sure that the script is called only
once in 'make prepare' (previously, it would be called every time due to
a variable expansion in an ifneq statement). No user-visible change is
intended, unless one runs the setlocalversion script directly.

Reported-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;
Cc: David Rientjes &lt;rientjes@google.com&gt;
Cc: Greg Thelen &lt;gthelen@google.com&gt;
Cc: Nico Schottelius &lt;nico-linuxsetlocalversion@schottelius.org&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.cz&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>kbuild: fix delay in setlocalversion on readonly source</title>
<updated>2009-06-14T20:26:00+00:00</updated>
<author>
<name>Nico Schottelius</name>
<email>nico-linuxsetlocalversion@schottelius.org</email>
</author>
<published>2009-06-12T07:59:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=a2bb90a08cb3b64dd815d762ffde2312582a6ec9'/>
<id>a2bb90a08cb3b64dd815d762ffde2312582a6ec9</id>
<content type='text'>
Do not update index on read only media.
Idea published by Christian Kujau &lt;lists@nerdbynature.de&gt;.

Cc: Nico Schottelius &lt;nico@ikn.schottelius.org&gt;
Cc: Christian Kujau &lt;lists@nerdbynature.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Do not update index on read only media.
Idea published by Christian Kujau &lt;lists@nerdbynature.de&gt;.

Cc: Nico Schottelius &lt;nico@ikn.schottelius.org&gt;
Cc: Christian Kujau &lt;lists@nerdbynature.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix scripts/setlocalversion with tagged git commit</title>
<updated>2009-05-19T21:11:34+00:00</updated>
<author>
<name>Nico Schottelius</name>
<email>nico-linux-20090330@schottelius.org</email>
</author>
<published>2009-05-16T12:00:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=33252572e727ccdcc54efdb67157e7ab3d6942db'/>
<id>33252572e727ccdcc54efdb67157e7ab3d6942db</id>
<content type='text'>
Produce correct output for
- tagged commit (v2.6.30-rc6)
- past tagged commit (v2.6.30-rc5-299-g7c7327d)
- no tag

Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Produce correct output for
- tagged commit (v2.6.30-rc6)
- past tagged commit (v2.6.30-rc5-299-g7c7327d)
- no tag

Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>kbuild: fix scripts/setlocalversion with git</title>
<updated>2009-05-01T08:54:04+00:00</updated>
<author>
<name>Nico Schottelius</name>
<email>nico-linux-20090330@schottelius.org</email>
</author>
<published>2009-04-25T07:48:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=a182ad3d0f858f50bb719a48bb35a013e12366c5'/>
<id>a182ad3d0f858f50bb719a48bb35a013e12366c5</id>
<content type='text'>
When using trees like wireless-testing, which have untagged tags,
scripts/setlocalversion does not display any git indication for
localversion.

This patch fixes it: If git is available, but no usable tag is found,
it uses -g${head}. It skips the detection of unanottated tags via
git name-rev.

Signed-off-by: Nico Schottelius &lt;nico@ikn.schottelius.org&gt;
Signed-off-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When using trees like wireless-testing, which have untagged tags,
scripts/setlocalversion does not display any git indication for
localversion.

This patch fixes it: If git is available, but no usable tag is found,
it uses -g${head}. It skips the detection of unanottated tags via
git name-rev.

Signed-off-by: Nico Schottelius &lt;nico@ikn.schottelius.org&gt;
Signed-off-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>kbuild: use git svn instead of git-svn in setlocalversion</title>
<updated>2009-04-11T06:18:08+00:00</updated>
<author>
<name>Peter Korsgaard</name>
<email>jacmet@sunsite.dk</email>
</author>
<published>2009-03-26T20:58:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=4774bb1ced60a94d83b28e5a42d4cf01b83d9b60'/>
<id>4774bb1ced60a94d83b28e5a42d4cf01b83d9b60</id>
<content type='text'>
Use the correct git &lt;subcmd&gt; syntax instead of the deprecated git-&lt;subcmd&gt;.

Signed-off-by: Peter Korsgaard &lt;jacmet@sunsite.dk&gt;
Signed-off-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use the correct git &lt;subcmd&gt; syntax instead of the deprecated git-&lt;subcmd&gt;.

Signed-off-by: Peter Korsgaard &lt;jacmet@sunsite.dk&gt;
Signed-off-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>kbuild,setlocalversion: shorten the make time when using svn</title>
<updated>2009-02-15T11:50:07+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier.adi@gmail.com</email>
</author>
<published>2009-02-05T08:13:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=d21d52d4a155e36d4dc93d642cd52cb63f7ef91b'/>
<id>d21d52d4a155e36d4dc93d642cd52cb63f7ef91b</id>
<content type='text'>
Don't bother doing `svn st` as it takes a retarded amount of time when
the source is cold

Signed-off-by: Mike Frysinger &lt;vapier.adi@gmail.com&gt;
Signed-off-by: Bryan Wu &lt;cooloney@kernel.org&gt;
Signed-off-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Don't bother doing `svn st` as it takes a retarded amount of time when
the source is cold

Signed-off-by: Mike Frysinger &lt;vapier.adi@gmail.com&gt;
Signed-off-by: Bryan Wu &lt;cooloney@kernel.org&gt;
Signed-off-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
</pre>
</div>
</content>
</entry>
</feed>
