Messages in this thread | | | Date | Mon, 9 Mar 1998 13:34:17 -0600 | From | Michael Elizabeth Chastain <> | Subject | Re: Linux version code |
| |
Hi Paul,
> --- linux-2.1.88-raw/Makefile Sun Mar 8 13:55:03 1998 > +++ linux-2.1.88/Makefile Fri Feb 27 10:56:50 1998 > @@ -262,6 +262,7 @@ > include/linux/version.h: ./Makefile > @echo \#define UTS_RELEASE \"$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)\" > .ver > @echo \#define LINUX_VERSION_CODE `expr $(VERSION) \\* 65536 + $(PATCHLEVEL) \\* 256 + $(SUBLEVEL)` >> .ver > + @echo '#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))' >>.ver > @mv -f .ver $@
This looks like a good idea to me, because there are dozens of places that use their own private macro to do the same thing. I hope Linus accepts it.
I don't have time to build a kernel with it, but I proofread it. :)
Regards,
Michael Chastain <mailto:mec@shout.net> "love without fear"
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu
| |