lkml.org 
[lkml]   [1996]   [May]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH] use file to identify version number of kernel
Date
From

Hello Everybody.

I just noticed, that the UTS_RELEASE, UTS_VERSION etc. defines are
compiled into the kernel image in arch/i386/setup.S.
however, setup.o does not get updated, during a simple recompile.
the following patch fixes that.

--- linux-old/arch/i386/boot/Makefile
+++ linux/arch/i386/boot/Makefile 1996/05/16 07:40:16
@@ -65,7 +65,7 @@
setup.o: setup.s
$(AS86) -o $@ $<

-setup.s: setup.S video.S $(CONFIGURE) $(TOPDIR)/include/linux/config.h Makefile
+setup.s: setup.S video.S $(CONFIGURE) $(TOPDIR)/include/linux/config.h $(TOPDIR)/include/linux/compile.h Makefile
$(CPP) -traditional $(SVGA_MODE) $(RAMDISK) $< -o $@

bootsect: bootsect.o

using the following magic(5) entry, they can be made visible via file:

#---------------------------------------------------------------------
# linux Kernel images version 1.3.80 - ?
0 belong 0xb8c0078e Linux/x86 kernel image,
>0x048c byte 0x31
>>0x048c string x version %s
>0x0493 byte 0x31
>>0x0493 string x version %s
#---------------------------------------------------------------------
this seems to work since 1.3.80. i have no older kernel images,
can anyone check this with older ones?
[45|14:48] akohlmey@rincewind:~/linux> file /vmlinuz*
/vmlinuz: Linux/x86 kernel image, version 1.99.5 (akohlmey@rincewind) #1-
/vmlinuz-1.3.100: Linux/x86 kernel image, version 1.3.100 (akohlmey@rincewind) #1
/vmlinuz-pre2.5: Linux/x86 kernel image, version 1.99.5 (akohlmey@rincewind) #1-
/vmlinuz.test: Linux/x86 kernel image, version 1.99.6 (akohlmey@rincewind) #1-
Cheers,
Axel.


=========================================================================
Axel Kohlmeyer email: axel.kohlmeyer@chemie.uni-ulm.de
Abteilung fuer Theoretische Chemie Universitaet Ulm D-89069 Ulm/Donau
=========================================================================

\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.035 / U:6.652 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site