From: Sam Ravnborg <sam@ravnborg.org>
To: Matt Mackall <mpm@selenic.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>,
kai@germaschewski.name, sam@ravnborg.org
Subject: Re: [PATCH] make kernelrelease
Date: Tue, 28 Dec 2004 22:52:28 +0100 [thread overview]
Message-ID: <20041228215228.GB21591@mars.ravnborg.org> (raw)
In-Reply-To: <20041221002815.GD28322@waste.org>
On Mon, Dec 20, 2004 at 04:28:15PM -0800, Matt Mackall wrote:
> This patch makes it easy to programmatically get at the kernel
> makefile's idea of the kernel version from external scripts and
> makefiles with something like V=`make kernelrelease`.
>
> Alternatives include parsing Makefile (errorprone and broken by things
> like localversion) and running the C preprocessor on version.h (which
> requires a) building version.h somewhere and b) is really ugly).
>
> Index: l/Makefile
> ===================================================================
> --- l.orig/Makefile 2004-12-20 16:08:11.746716000 -0800
> +++ l/Makefile 2004-12-20 16:18:25.036696000 -0800
> @@ -1187,6 +1187,9 @@
> $(OBJDUMP) -d vmlinux $$(find . -name '*.ko') | \
> $(PERL) $(src)/scripts/checkstack.pl $(ARCH)
>
> +kernelrelease:
> + @echo $(KERNELRELEASE)
> +
> # FIXME Should go into a make.lib or something
> # ===========================================================================
Applied - thanks.
Sam
prev parent reply other threads:[~2004-12-28 21:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-21 0:28 Matt Mackall
2004-12-28 21:52 ` Sam Ravnborg [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=20041228215228.GB21591@mars.ravnborg.org \
--to=sam@ravnborg.org \
--cc=kai@germaschewski.name \
--cc=linux-kernel@vger.kernel.org \
--cc=mpm@selenic.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
all inboxes | Powered by JetHome®