diff options
author | Pavel Roskin <proski@gnu.org> | 2007-06-13 03:59:00 -0400 |
---|---|---|
committer | Guido Guenther <agx@sigxcpu.org> | 2007-06-14 10:11:06 +0200 |
commit | 9bf21d180fd9b1f969f7706c319be5bb50d1b5ee (patch) | |
tree | cfe9166ef019b05236d6942e48ff029b6a2ae781 /Makefile | |
parent | 97fc68cb5d0a036fb12f3c940e929a73d69937a0 (diff) |
[PATCH] Provide compatibility for older kernels in a separate file
Remove all Linux 2.6.21 compatibility from the driver - it shouldn't be
there for kernel submission. Move all compatibility code to a separate
file compat.h. Include it forcedly with the "-include" option. Add
a makefile option to disable config.h inclusion.
Provide compatibility as far back as Linux 2.6.19 - it's not really hard
once the infrastructure is in place.
Signed-off-by: Pavel Roskin <proski@gnu.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -39,6 +39,10 @@ SPECFILE = at76_usb.spec DISTFILES = $(SRCS) Makefile README COPYING CHANGELOG kernel_patch.diff +ifndef NO_COMPAT_HEADERS +EXTRA_CFLAGS += -include $(obj)/compat.h +endif + # get the version from at76_usb.h ifndef M VERSION = $(shell sed -n 's/^\#define.*DRIVER_VERSION.*"\(.*\)".*$$/\1/p' at76_usb.h) |