Re: How to retrieve version from kernel source (the right way)?

From: Michael Renzmann
Date: Thu Feb 10 2005 - 14:11:57 EST


Hi.

Sam Ravnborg wrote:
otaku@gimli linux-2.6.10 $ make kernelrelease
make: *** No rule to make target `kernelrelease'. Stop.
I works with the 2.6 kernel.

As Andreas Gruenbacher pointed out, this feature has been implemented just about 8 weeks ago. He also gave the following snippet as a backward compatible solution:

=== cut ===
echo -e 'foo:\n\t@echo $(KERNELRELEASE)\ninclude Makefile' \
| make -f-
=== cut ===

This works fine.

Thanks to everyone for your tips and answers.

Bye, Mike
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/