* [PATCH 2.6.15-rc2-git6] Fix tar-pkg target
@ 2005-11-28 17:04 Erik Mouw
2005-11-28 17:07 ` Jan-Benedict Glaw
2005-11-29 21:30 ` Andrew Morton
0 siblings, 2 replies; 7+ messages in thread
From: Erik Mouw @ 2005-11-28 17:04 UTC (permalink / raw)
To: Linux kernel mailing list; +Cc: jbglaw, akpm, torvalds
Hi,
The various tar-pkg Makefile targets forget to apply the
CONFIG_LOCALVERSION_AUTO to the vminux and System.map files because the
script (scripts/package/buildtar) doesn't know about it. This can be
fixed by computing the correct "version" variable, but it's better to
use the one computed by Kbuild itself, just like the like the
"builddeb" and "mkspec" scripts do.
Without this patch, "make tar-pkg" would generate a file
linux-2.6.15-rc2.tar containing vmlinuz-2.6.15-rc2. With this patch, it
generates linux-2.6.15-rc2-g458af543.tar containing
vmlinuz-2.6.15-rc2-g458af543.
Erik
Signed-off-by: Erik Mouw <erik@harddisk-recovery.com>
diff --git a/scripts/package/buildtar b/scripts/package/buildtar
index d8fffe6..4c1b706 100644
--- a/scripts/package/buildtar
+++ b/scripts/package/buildtar
@@ -15,7 +15,7 @@ set -e
#
# Some variables and settings used throughout the script
#
-version="${VERSION}.${PATCHLEVEL}.${SUBLEVEL}${EXTRAVERSION}${EXTRANAME}"
+version="${KERNELRELEASE}"
tmpdir="${objtree}/tar-install"
tarball="${objtree}/linux-${version}.tar"
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2.6.15-rc2-git6] Fix tar-pkg target
2005-11-28 17:04 [PATCH 2.6.15-rc2-git6] Fix tar-pkg target Erik Mouw
@ 2005-11-28 17:07 ` Jan-Benedict Glaw
2005-11-29 21:30 ` Andrew Morton
1 sibling, 0 replies; 7+ messages in thread
From: Jan-Benedict Glaw @ 2005-11-28 17:07 UTC (permalink / raw)
To: Erik Mouw; +Cc: Linux kernel mailing list, akpm, torvalds
[-- Attachment #1: Type: text/plain, Size: 763 bytes --]
On Mon, 2005-11-28 18:04:15 +0100, Erik Mouw <erik@harddisk-recovery.com> wrote:
> Without this patch, "make tar-pkg" would generate a file
> linux-2.6.15-rc2.tar containing vmlinuz-2.6.15-rc2. With this patch, it
> generates linux-2.6.15-rc2-g458af543.tar containing
> vmlinuz-2.6.15-rc2-g458af543.
>
> Signed-off-by: Erik Mouw <erik@harddisk-recovery.com>
ACKed-By: Jan-Benedict Glaw <jbglaw@lug-owl.de>
MfG, JBG
--
Jan-Benedict Glaw jbglaw@lug-owl.de . +49-172-7608481 _ O _
"Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg _ _ O
für einen Freien Staat voll Freier Bürger" | im Internet! | im Irak! O O O
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2.6.15-rc2-git6] Fix tar-pkg target
2005-11-29 21:30 ` Andrew Morton
@ 2005-11-29 20:36 ` Sam Ravnborg
2005-11-30 5:32 ` Brian Gerst
2005-11-30 12:03 ` Erik Mouw
0 siblings, 2 replies; 7+ messages in thread
From: Sam Ravnborg @ 2005-11-29 20:36 UTC (permalink / raw)
To: Andrew Morton; +Cc: Erik Mouw, linux-kernel, jbglaw, torvalds
>
>
> I already have the below queued up, which is a bit different. Does it work
> OK?
Brian's version preserve EXTRANAME, but I have not seen it
used/documented anywhere?
Sam
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2.6.15-rc2-git6] Fix tar-pkg target
2005-11-28 17:04 [PATCH 2.6.15-rc2-git6] Fix tar-pkg target Erik Mouw
2005-11-28 17:07 ` Jan-Benedict Glaw
@ 2005-11-29 21:30 ` Andrew Morton
2005-11-29 20:36 ` Sam Ravnborg
1 sibling, 1 reply; 7+ messages in thread
From: Andrew Morton @ 2005-11-29 21:30 UTC (permalink / raw)
To: Erik Mouw; +Cc: linux-kernel, jbglaw, torvalds
Erik Mouw <erik@harddisk-recovery.com> wrote:
>
> The various tar-pkg Makefile targets forget to apply the
> CONFIG_LOCALVERSION_AUTO to the vminux and System.map files because the
> script (scripts/package/buildtar) doesn't know about it. This can be
> fixed by computing the correct "version" variable, but it's better to
> use the one computed by Kbuild itself, just like the like the
> "builddeb" and "mkspec" scripts do.
>
> Without this patch, "make tar-pkg" would generate a file
> linux-2.6.15-rc2.tar containing vmlinuz-2.6.15-rc2. With this patch, it
> generates linux-2.6.15-rc2-g458af543.tar containing
> vmlinuz-2.6.15-rc2-g458af543.
>
> ...
> --- a/scripts/package/buildtar
> +++ b/scripts/package/buildtar
> @@ -15,7 +15,7 @@ set -e
> #
> # Some variables and settings used throughout the script
> #
> -version="${VERSION}.${PATCHLEVEL}.${SUBLEVEL}${EXTRAVERSION}${EXTRANAME}"
> +version="${KERNELRELEASE}"
I already have the below queued up, which is a bit different. Does it work
OK?
From: Brian Gerst <bgerst@didntduck.org>
Clean up two more open-coded uses of KERNELRELEASE.
Signed-off-by: Brian Gerst <bgerst@didntduck.org>
Cc: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
---
arch/frv/boot/Makefile | 4 ++--
scripts/package/buildtar | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff -puN arch/frv/boot/Makefile~use-kernelrelease arch/frv/boot/Makefile
--- devel/arch/frv/boot/Makefile~use-kernelrelease 2005-11-27 21:56:54.000000000 -0800
+++ devel-akpm/arch/frv/boot/Makefile 2005-11-27 21:56:54.000000000 -0800
@@ -57,10 +57,10 @@ initrd:
# installation
#
install: $(CONFIGURE) Image
- sh ./install.sh $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) Image $(TOPDIR)/System.map "$(INSTALL_PATH)"
+ sh ./install.sh $(KERNELRELEASE) Image $(TOPDIR)/System.map "$(INSTALL_PATH)"
zinstall: $(CONFIGURE) zImage
- sh ./install.sh $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) zImage $(TOPDIR)/System.map "$(INSTALL_PATH)"
+ sh ./install.sh $(KERNELRELEASE) zImage $(TOPDIR)/System.map "$(INSTALL_PATH)"
#
# miscellany
diff -puN scripts/package/buildtar~use-kernelrelease scripts/package/buildtar
--- devel/scripts/package/buildtar~use-kernelrelease 2005-11-27 21:56:54.000000000 -0800
+++ devel-akpm/scripts/package/buildtar 2005-11-27 21:56:54.000000000 -0800
@@ -15,7 +15,7 @@ set -e
#
# Some variables and settings used throughout the script
#
-version="${VERSION}.${PATCHLEVEL}.${SUBLEVEL}${EXTRAVERSION}${EXTRANAME}"
+version="${KERNELRELEASE}${EXTRANAME}"
tmpdir="${objtree}/tar-install"
tarball="${objtree}/linux-${version}.tar"
_
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2.6.15-rc2-git6] Fix tar-pkg target
2005-11-29 20:36 ` Sam Ravnborg
@ 2005-11-30 5:32 ` Brian Gerst
2005-11-30 9:05 ` Jan-Benedict Glaw
2005-11-30 12:03 ` Erik Mouw
1 sibling, 1 reply; 7+ messages in thread
From: Brian Gerst @ 2005-11-30 5:32 UTC (permalink / raw)
To: Sam Ravnborg; +Cc: Andrew Morton, Erik Mouw, linux-kernel, jbglaw, torvalds
Sam Ravnborg wrote:
>>
>> I already have the below queued up, which is a bit different. Does it work
>> OK?
>
> Brian's version preserve EXTRANAME, but I have not seen it
> used/documented anywhere?
>
> Sam
Can probably get rid of EXTRANAME, unless it is meant to be set from the
environment/cmdline. I can't find any other reference to it.
--
Brian Gerst
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2.6.15-rc2-git6] Fix tar-pkg target
2005-11-30 5:32 ` Brian Gerst
@ 2005-11-30 9:05 ` Jan-Benedict Glaw
0 siblings, 0 replies; 7+ messages in thread
From: Jan-Benedict Glaw @ 2005-11-30 9:05 UTC (permalink / raw)
To: Brian Gerst
Cc: Sam Ravnborg, Andrew Morton, Erik Mouw, linux-kernel, torvalds
[-- Attachment #1: Type: text/plain, Size: 871 bytes --]
On Wed, 2005-11-30 00:32:50 -0500, Brian Gerst <bgerst@didntduck.org> wrote:
> Sam Ravnborg wrote:
> >>I already have the below queued up, which is a bit different. Does it
> >>work
> >>OK?
> >
> >Brian's version preserve EXTRANAME, but I have not seen it
> >used/documented anywhere?
>
> Can probably get rid of EXTRANAME, unless it is meant to be set from the
> environment/cmdline. I can't find any other reference to it.
Exactly that was IIRC the intention when this came in. I'm fine with
removing it.
MfG, JBG
--
Jan-Benedict Glaw jbglaw@lug-owl.de . +49-172-7608481 _ O _
"Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg _ _ O
für einen Freien Staat voll Freier Bürger" | im Internet! | im Irak! O O O
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2.6.15-rc2-git6] Fix tar-pkg target
2005-11-29 20:36 ` Sam Ravnborg
2005-11-30 5:32 ` Brian Gerst
@ 2005-11-30 12:03 ` Erik Mouw
1 sibling, 0 replies; 7+ messages in thread
From: Erik Mouw @ 2005-11-30 12:03 UTC (permalink / raw)
To: Sam Ravnborg; +Cc: Andrew Morton, linux-kernel, jbglaw, torvalds
On Tue, Nov 29, 2005 at 09:36:22PM +0100, Sam Ravnborg wrote:
> >
> >
> > I already have the below queued up, which is a bit different. Does it work
> > OK?
>
> Brian's version preserve EXTRANAME, but I have not seen it
> used/documented anywhere?
It isn't used anywhere:
erik@zurix:~/git/linux-2.6 > find . -name Kconfig | xargs grep EXTRANAME
[nothing]
If there is a use for EXTRANAME, it should be included in the
KERNELRELEASE variable in the top level Makefile. As long as all
package scripts use the KERNELRELEASE variable, everything will be
fine.
Erik
--
+-- Erik Mouw -- www.harddisk-recovery.com -- +31 70 370 12 90 --
| Lab address: Delftechpark 26, 2628 XH, Delft, The Netherlands
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2005-11-30 12:03 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-28 17:04 [PATCH 2.6.15-rc2-git6] Fix tar-pkg target Erik Mouw
2005-11-28 17:07 ` Jan-Benedict Glaw
2005-11-29 21:30 ` Andrew Morton
2005-11-29 20:36 ` Sam Ravnborg
2005-11-30 5:32 ` Brian Gerst
2005-11-30 9:05 ` Jan-Benedict Glaw
2005-11-30 12:03 ` Erik Mouw
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®