Messages in this thread |  | | From | "Khachaturov, Vassilii" <> | Subject | RE: Detecting Red Hat builds ? | Date | Thu, 10 May 2001 14:28:50 -0400 |
| |
For a RH7.x, at least, there is the /boot/kernel.h file generated on bootup, and the RH kernel headers include it somewhere. You can see if the corresponding symbols (coming from it) are defined, and assume redhat than. You might consider using passing -dM down to the preprocessor with the standard driver includes preamble, and look in the preprocessed output for a good clue - it may well be that there is some other redhat-specific string somewhere defined. I guess you will find smth if you egrep -i (rh|redhat).
HTH, Vassilii
-----Original Message----- From: rjd@xyzzy.clara.co.uk [mailto:rjd@xyzzy.clara.co.uk] Sent: Thursday, May 10, 2001 12:25 PM To: linux-kernel@vger.kernel.org Subject: Detecting Red Hat builds ?
Hi,
How can I determine if the build my device driver is being compiled under is a standard kernel.org one or a Red Hat one ? - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |