Chmouel Boudjnah <[EMAIL PROTECTED]> writes:
> > any hints what to do in the code so that it can compile under both
> > kernels?
> try play with /boot/kernel.h
Sorry i must explain what i wanna say, try to play with version.h who
play with /boot/kernel.h
For example see this snip from emu10k1 driver Makefile :
ifneq ($(shell grep '__rh_kernel_version_h__'
$(KERNELSOURCE)/include/linux/version.h),)
# redhat kernel headers style
SUB := $(shell grep __BOOT_KERNEL_ /boot/kernel.h 2>/dev/null | grep 1 | cut -d\_
-f5 | tr [:upper:] [:lower:] | cut -d' ' -f1)
VERSION_H := version-$(SUB).h
AUTOCONF_H := autoconf-$(SUB).h
else
VERSION_H := version.h
AUTOCONF_H := autoconf.h
endif
BTW: Mandrake are compatible in this area.
--
MandrakeSoft Inc http://www.chmouel.org
San-Francisco, CA USA --Chmouel
_______________________________________________
Redhat-devel-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-devel-list