Skip to contentSkip to conversation

kbuild: display compile version

PATCH New Coywolf Qi Hunt 1 participant 1 message May 5, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kbuild: display compile version

hello,

I am always trying to make sure I've booted the right kernel after a new install. Too paranoid maybe. But I guess there're other people like me. So let's make kbuild display the compile version number at the end to give us a hint. I know we may be booting vmlinux someday, but don't care about it for now.

arch/i386/boot/Makefile +1 -1
@@ -48,7 +48,7 @@
 $(obj)/zImage $(obj)/bzImage: $(obj)/bootsect $(obj)/setup \
 			      $(obj)/vmlinux.bin $(obj)/tools/build FORCE
 	$(call if_changed,image)
-	@echo 'Kernel: $@ is ready'
+	@echo 'Kernel: $@ is ready' '(#'`cat .version`')'
 
 $(obj)/vmlinux.bin: $(obj)/compressed/vmlinux FORCE
 	$(call if_changed,objcopy)