From: Keith Owens <kaos@ocs.com.au>
To: Hiroyuki Toda <might@might.dyn.to>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] cleanup KERNEL_VERSION definition and linux/version.h
Date: Thu, 04 Apr 2002 09:06:28 +1000 [thread overview]
Message-ID: <15585.1017875188@ocs3.intra.ocs.com.au> (raw)
In-Reply-To: Your message of "Wed, 03 Apr 2002 23:49:00 +0900." <20020403144917Z311782-616+5144@vger.kernel.org>
On Wed, 03 Apr 2002 23:49:00 +0900,
Hiroyuki Toda <might@might.dyn.to> wrote:
>Hi Marcelo,
>
>I send you a patch to clean up KERNEL_VERSION definition and linux/version.h
>generated by linux/Makefile.
>
>Main part of the patch is as follows:
>
>diff -ur linux-2.4.18.org/Makefile linux/Makefile
>--- linux-2.4.18.org/Makefile Wed Feb 27 00:15:58 2002
>+++ linux/Makefile Wed Mar 20 00:46:23 2002
>@@ -325,9 +325,16 @@
> @mv -f .ver $@
>
> include/linux/version.h: ./Makefile
>- @echo \#define UTS_RELEASE \"$(KERNELRELEASE)\" > .ver
>- @echo \#define LINUX_VERSION_CODE `expr $(VERSION) \\* 65536 + $(PATCHLEVEL) \\* 256 + $(SUBLEVEL)` >> .ver
>- @echo '#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))' >>.ver
>+ @echo "/* this file is generate automaticaly. don\'t edit */" > .ver
>+ @echo '' >> .ver
>+ @echo '#if !defined(_LINUX_VERSION_H_INCLUDED)' >> .ver
>+ @echo '#define _LINUX_VERSION_H_INCLUDED' >> .ver
>+ @echo '' >> .ver
>+ @echo \#define UTS_RELEASE \"$(KERNELRELEASE)\" >> .ver
>+ @echo '#define KERNEL_VERSION(a, b, c) (((a) << 16) | ((b) << 8) | (c))' >>.ver
>+ @echo \#define LINUX_VERSION_CODE KERNEL_VERSION\($(VERSION), $(PATCHLEVEL), $(SUBLEVEL)\) >> .ver
>+ @echo '' >> .ver
>+ @echo '#endif' >> .ver
> @mv -f .ver $@
>
> comma := ,
>
This file will change completely in 2.5 when kbuild 2.5 goes in. Why
does it need to be rearranged in 2.4?
next prev parent reply other threads:[~2002-04-03 23:06 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-03 14:49 Hiroyuki Toda
2002-04-03 23:06 ` Keith Owens [this message]
2002-04-04 1:12 ` Hiroyuki Toda
2002-04-04 1:36 ` Keith Owens
2002-04-04 4:31 ` Hiroyuki Toda
2002-04-05 2:07 ` Mike Fedyk
2002-04-05 2:42 ` Keith Owens
2002-04-05 17:55 ` Mike Fedyk
2002-04-06 3:41 ` Keith Owens
2002-04-06 16:23 Dan Kegel
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=15585.1017875188@ocs3.intra.ocs.com.au \
--to=kaos@ocs.com.au \
--cc=linux-kernel@vger.kernel.org \
--cc=might@might.dyn.to \
/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®