* [PATCH] use KERNELRELEASE
@ 2004-09-04 11:17 Brian Gerst
2004-09-04 14:45 ` Kalin KOZHUHAROV
2004-09-05 20:03 ` Sam Ravnborg
0 siblings, 2 replies; 4+ messages in thread
From: Brian Gerst @ 2004-09-04 11:17 UTC (permalink / raw)
To: Andrew Morton; +Cc: lkml
[-- Attachment #1: Type: text/plain, Size: 145 bytes --]
This patch changes several places where the kernel version string is put
together from it's components with $KERNELRELEASE.
--
Brian Gerst
[-- Attachment #2: use-KERNELRELEASE --]
[-- Type: text/plain, Size: 3763 bytes --]
diff -urN linux-2.6.9-rc1-bk/arch/arm26/boot/Makefile linux/arch/arm26/boot/Makefile
--- linux-2.6.9-rc1-bk/arch/arm26/boot/Makefile 2003-12-17 22:00:00.000000000 -0500
+++ linux/arch/arm26/boot/Makefile 2004-09-03 18:34:51.348510718 -0400
@@ -67,12 +67,12 @@
install: $(obj)/Image
$(CONFIG_SHELL) $(obj)/install.sh \
- $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) \
+ $(KERNELRELEASE) \
$(obj)/Image System.map "$(INSTALL_PATH)"
zinstall: $(obj)/zImage
$(CONFIG_SHELL) $(obj)/install.sh \
- $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) \
+ $(KERNELRELEASE) \
$(obj)/zImage System.map "$(INSTALL_PATH)"
subdir- := compressed
diff -urN linux-2.6.9-rc1-bk/scripts/kconfig/gconf.c linux/scripts/kconfig/gconf.c
--- linux-2.6.9-rc1-bk/scripts/kconfig/gconf.c 2004-06-23 18:06:06.000000000 -0400
+++ linux/scripts/kconfig/gconf.c 2004-09-03 18:36:17.629676122 -0400
@@ -275,9 +275,8 @@
/*"style", PANGO_STYLE_OBLIQUE, */
NULL);
- sprintf(title, "Linux Kernel v%s.%s.%s%s Configuration",
- getenv("VERSION"), getenv("PATCHLEVEL"),
- getenv("SUBLEVEL"), getenv("EXTRAVERSION"));
+ sprintf(title, "Linux Kernel v%s Configuration",
+ getenv("KERNELRELEASE"));
gtk_window_set_title(GTK_WINDOW(main_wnd), title);
gtk_widget_show(main_wnd);
diff -urN linux-2.6.9-rc1-bk/scripts/package/builddeb linux/scripts/package/builddeb
--- linux-2.6.9-rc1-bk/scripts/package/builddeb 2004-08-24 08:43:18.000000000 -0400
+++ linux/scripts/package/builddeb 2004-09-03 18:30:52.238706773 -0400
@@ -12,7 +12,7 @@
set -e
# Some variables and settings used throughout the script
-version="$VERSION.$PATCHLEVEL.$SUBLEVEL$EXTRAVERSION"
+version=$KERNELRELEASE
tmpdir="$objtree/debian/tmp"
# Setup the directory structure
diff -urN linux-2.6.9-rc1-bk/scripts/package/mkspec linux/scripts/package/mkspec
--- linux-2.6.9-rc1-bk/scripts/package/mkspec 2004-08-24 08:43:18.000000000 -0400
+++ linux/scripts/package/mkspec 2004-09-03 18:25:40.386781942 -0400
@@ -21,11 +21,12 @@
PROVIDES=kernel-drm
fi
-PROVIDES="$PROVIDES kernel-$VERSION.$PATCHLEVEL.$SUBLEVEL$EXTRAVERSION"
+PROVIDES="$PROVIDES kernel-$KERNELRELEASE"
+__KERNELRELEASE=`echo $KERNELRELEASE | sed -e "s/-//g"`
echo "Name: kernel"
echo "Summary: The Linux Kernel"
-echo "Version: "$VERSION.$PATCHLEVEL.$SUBLEVEL$EXTRAVERSION | sed -e "s/-//g"
+echo "Version: $__KERNELRELEASE"
# we need to determine the NEXT version number so that uname and
# rpm -q will agree
echo "Release: `. $srctree/scripts/mkversion`"
@@ -35,8 +36,7 @@
echo "URL: http://www.kernel.org"
if ! $PREBUILT; then
-echo -n "Source: kernel-$VERSION.$PATCHLEVEL.$SUBLEVEL"
-echo "$EXTRAVERSION.tar.gz" | sed -e "s/-//g"
+echo "Source: kernel-$__KERNELRELEASE.tar.gz"
fi
echo "BuildRoot: /var/tmp/%{name}-%{PACKAGE_VERSION}-root"
@@ -65,11 +65,11 @@
echo 'mkdir -p $RPM_BUILD_ROOT/boot $RPM_BUILD_ROOT/lib $RPM_BUILD_ROOT/lib/modules'
echo 'INSTALL_MOD_PATH=$RPM_BUILD_ROOT make modules_install'
-echo 'cp $KBUILD_IMAGE $RPM_BUILD_ROOT'"/boot/vmlinuz-$VERSION.$PATCHLEVEL.$SUBLEVEL$EXTRAVERSION"
+echo 'cp $KBUILD_IMAGE $RPM_BUILD_ROOT'"/boot/vmlinuz-$KERNELRELEASE"
-echo 'cp System.map $RPM_BUILD_ROOT'"/boot/System.map-$VERSION.$PATCHLEVEL.$SUBLEVEL$EXTRAVERSION"
+echo 'cp System.map $RPM_BUILD_ROOT'"/boot/System.map-$KERNELRELEASE"
-echo 'cp .config $RPM_BUILD_ROOT'"/boot/config-$VERSION.$PATCHLEVEL.$SUBLEVEL$EXTRAVERSION"
+echo 'cp .config $RPM_BUILD_ROOT'"/boot/config-$KERNELRELEASE"
echo ""
echo "%clean"
echo '#echo -rf $RPM_BUILD_ROOT'
@@ -77,6 +77,6 @@
echo "%files"
echo '%defattr (-, root, root)'
echo "%dir /lib/modules"
-echo "/lib/modules/$VERSION.$PATCHLEVEL.$SUBLEVEL$EXTRAVERSION"
+echo "/lib/modules/$KERNELRELEASE"
echo "/boot/*"
echo ""
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] use KERNELRELEASE
2004-09-04 11:17 [PATCH] use KERNELRELEASE Brian Gerst
@ 2004-09-04 14:45 ` Kalin KOZHUHAROV
2004-09-05 20:03 ` Sam Ravnborg
1 sibling, 0 replies; 4+ messages in thread
From: Kalin KOZHUHAROV @ 2004-09-04 14:45 UTC (permalink / raw)
To: linux-kernel
Brian Gerst wrote:
> This patch changes several places where the kernel version string is put
> together from it's components with $KERNELRELEASE.
Cool! I guess that is further fix for the 2.6.8.1 thing :-)
Now we should look into things like VMware and nVidia drivers and their Makefiles...
Please use the Signed-off-by format.
(i.e. add:
Signed-off-by: Brian Gerst <bgerst@quark.didntduck.org>
before the patches you send)
Kalin.
--
|| ~~~~~~~~~~~~~~~~~~~~~~ ||
( ) http://ThinRope.net/ ( )
|| ______________________ ||
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] use KERNELRELEASE
2004-09-04 11:17 [PATCH] use KERNELRELEASE Brian Gerst
2004-09-04 14:45 ` Kalin KOZHUHAROV
@ 2004-09-05 20:03 ` Sam Ravnborg
1 sibling, 0 replies; 4+ messages in thread
From: Sam Ravnborg @ 2004-09-05 20:03 UTC (permalink / raw)
To: Brian Gerst; +Cc: Andrew Morton, lkml
On Sat, Sep 04, 2004 at 07:17:23AM -0400, Brian Gerst wrote:
> This patch changes several places where the kernel version string is put
> together from it's components with $KERNELRELEASE.
A necessary addtion to LOCALVERSION - thanks.
Applied.
Sam
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] Use KERNELRELEASE
@ 2005-11-27 16:14 Brian Gerst
0 siblings, 0 replies; 4+ messages in thread
From: Brian Gerst @ 2005-11-27 16:14 UTC (permalink / raw)
To: Andrew Morton; +Cc: lkml
[-- Attachment #1: Type: text/plain, Size: 103 bytes --]
Clean up two more open-coded uses of KERNELRELEASE.
Signed-off-by: Brian Gerst <bgerst@didntduck.org>
[-- Attachment #2: kernelrelease --]
[-- Type: text/plain, Size: 1108 bytes --]
diff --git a/arch/frv/boot/Makefile b/arch/frv/boot/Makefile
index d75e0d7..5dfc93f 100644
--- a/arch/frv/boot/Makefile
+++ b/arch/frv/boot/Makefile
@@ -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 --git a/scripts/package/buildtar b/scripts/package/buildtar
index d8fffe6..8f709ab 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}${EXTRANAME}"
tmpdir="${objtree}/tar-install"
tarball="${objtree}/linux-${version}.tar"
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-11-27 16:11 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-27 16:14 [PATCH] Use KERNELRELEASE Brian Gerst
-- strict thread matches above, loose matches on Subject: below --
2004-09-04 11:17 [PATCH] use KERNELRELEASE Brian Gerst
2004-09-04 14:45 ` Kalin KOZHUHAROV
2004-09-05 20:03 ` Sam Ravnborg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox