From: Michal Marek <mmarek@suse.cz>
To: Martin Jansa <martin.jansa@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] kbuild: setlocalversion should respect srctree param when looking for auto.conf
Date: Tue, 13 Jul 2010 14:36:51 +0200 [thread overview]
Message-ID: <4C3C5DE3.7030306@suse.cz> (raw)
In-Reply-To: <1279013676-23887-1-git-send-email-Martin.Jansa@gmail.com>
On 07/13/2010 11:34 AM, Martin Jansa wrote:
> * it works properly only when CWD == scrtree
> * with this patch:
> jama src # /usr/src/linux/scripts/setlocalversion /usr/src/linux
> -JaMa-00001-g18672de
> * without:
> jama src # /usr/src/linux/scripts/setlocalversion /usr/src/linux
> Error: kernelrelease not valid - run 'make prepare' to update it
This doesn't look correct, include/config/auto.conf is generated in the
build directory (*), where this script is called from by the Makefile.
If you call the script manually, you have to cd to the build directory
first.
(*) which is different from the source directory if you build with O=.
Michal
>
> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
> ---
> scripts/setlocalversion | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/scripts/setlocalversion b/scripts/setlocalversion
> index d6a866e..41864d1 100755
> --- a/scripts/setlocalversion
> +++ b/scripts/setlocalversion
> @@ -135,7 +135,7 @@ if $scm_only; then
> exit
> fi
>
> -if test -e include/config/auto.conf; then
> +if test -e "${srctree}/include/config/auto.conf"; then
> source "$_"
> else
> echo "Error: kernelrelease not valid - run 'make prepare' to update it"
next prev parent reply other threads:[~2010-07-13 12:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-13 9:34 [PATCH] kbuild: setlocalversion should respect srctree param when looking for auto.conf Martin Jansa
2010-07-13 12:36 ` Michal Marek [this message]
2010-07-13 12:57 ` Martin Jansa
2010-07-13 16:08 ` Michal Marek
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=4C3C5DE3.7030306@suse.cz \
--to=mmarek@suse.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=martin.jansa@gmail.com \
/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