NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
kern/38563: have the kernel build spit out the kernel version info
>Number: 38563
>Category: kern
>Synopsis: have the kernel build spit out the kernel version info
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: kern-bug-people
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Fri May 02 16:30:00 +0000 2008
>Originator: Greg A. Woods
>Release: NetBSD current 2008/05/02
>Organization:
Planix, Inc.; Toronto, Ontario; Canada
>Environment:
System: NetBSD
>Description:
a very long time ago I found myself repeatedly typing "what
netbsd" after building a kernel so that I could install it with
a name matching its version ID and compile number and so I
automated the process
>How-To-Repeat:
spend way too many human cycles typing "what netbsd"
>Fix:
it's already customizable in -current, but I think the following
default is much more useful in general
Index: sys/conf/Makefile.kern.inc
===================================================================
RCS file: /cvs/master/m-NetBSD/main/src/sys/conf/Makefile.kern.inc,v
retrieving revision 1.111
diff -u -r1.111 Makefile.kern.inc
--- sys/conf/Makefile.kern.inc 24 Mar 2008 18:03:27 -0000 1.111
+++ sys/conf/Makefile.kern.inc 25 Mar 2008 15:10:12 -0000
@@ -200,7 +200,7 @@
${_MKSHECHO}\
${LD} -Map $@.map --cref ${LINKFLAGS} -o $@ '$${SYSTEM_OBJ}'
'$${EXTRA_OBJ}' vers.o; \
${LD} -Map $@.map --cref ${LINKFLAGS} -o $@ ${SYSTEM_OBJ}
${EXTRA_OBJ} vers.o
-SYSTEM_LD_TAIL?=@${SIZE} $@; chmod 755 $@
+SYSTEM_LD_TAIL?=@echo ""; what $@ | fgrep NetBSD; ${SIZE} $@; chmod 755 $@
TEXTADDR?= ${LOADADDRESS} # backwards compatibility
LINKTEXT?= ${TEXTADDR:C/.+/-Ttext &/}
Home |
Main Index |
Thread Index |
Old Index