[lkml]   [2003]   [Jan]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: no version magic, tainting kernel.
Jerry Cooperstein <> writes:

> is fine, but you have to have a Makefile in the current directory,
> and that Makefile needs a somewhat different form for 2.4 and
> 2.5 kernels.

It is no problem to use the same Makefile for both 2.4.x and 2.5.x,
and even let the Makefile do the RightThing[tm] in case the user just
types 'make'. My Makefiles for kernel stuff look like this (stripped
down a bit):

==============================[ cut here ]==============================

# call from kernel build system

obj-m := btaudio.o

-include $(TOPDIR)/Rules.make


KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)

$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules


==============================[ cut here ]==============================

If you need different stuff for 2.4.x and 2.5.x you can handle it
using ifeq ($(VERSION).$(PATCHLEVEL),2.4)

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:32    [W:0.108 / U:28.528 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site