Subject: port-i386/8896: [rkb] Minor (kernel) Makefile.i386 enhancement
To: None <gnats-bugs@gnats.netbsd.org>
From: None <rafal@mediaone.net>
List: netbsd-bugs
Date: 11/27/1999 13:19:46
>Number: 8896
>Category: port-i386
>Synopsis: Make Makefile.i386 output version of kernel that was just built
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: port-i386-maintainer (NetBSD/i386 Portmaster)
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sat Nov 27 13:18:00 1999
>Last-Modified:
>Originator: Rafal Boni
>Organization:
me, myself and I
>Release: -current as of today
>Environment:
generic i386 box running 1.4P
>Description:
Since I've been tweaking kernels left and right and rebooting a lot
and since my laptop preserves the kernel message buffer on reboots,
I often wonder which kernel bits of the message buffer correspond to.
Having the kernel makefile spit out the version before I install the
new kernel is helpful, as the version info is right at the top of my
brain.
>How-To-Repeat:
reboot with new kernels a lot, wonder which part of message buffer
corresponds to which kernel. Look in /kern/version if you have
kernfs to find out. Wonder why the kernel makefile doesn't tell
you the version it just built
>Fix:
similar tweaks can probably be added to all the kernel makefiles,
but I don't have the energy to do it for all of them.
Index: Makefile.i386
===================================================================
RCS file: /cvsroot/syssrc/sys/arch/i386/conf/Makefile.i386,v
retrieving revision 1.99
diff -b -u -r1.99 Makefile.i386
--- Makefile.i386 1999/07/26 05:20:46 1.99
+++ Makefile.i386 1999/11/27 21:08:28
@@ -35,6 +35,7 @@
SIZE?= size
STRIP?= strip
TSORT?= tsort -q
+WHAT?= what
COPTS?= -O2
@@ -105,7 +106,7 @@
SYSTEM_LD_HEAD= rm -f $@
SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_OBJ}' vers.o; \
${LD} ${LINKFLAGS} -o $@ ${SYSTEM_OBJ} vers.o
-SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@
+SYSTEM_LD_TAIL= @${WHAT} $@; ${SIZE} $@; chmod 755 $@
DEBUG?=
.if ${DEBUG} == "-g"
>Audit-Trail:
>Unformatted: