Re: toplevel Makefile bug and simple fix

Raul Miller (rdm@test.legislate.com)
Mon, 8 Nov 1999 14:30:19 -0500


tytso@mit.edu <tytso@mit.edu> wrote:
> This is a disaster if you want a kernel module to support a wide range
> of kernels, from 2.0.* to 2.3.*. Especially if version number inludes
> the patchlevel.

How hard is it to do:

#!/bin/sh
# get an appropriate kernel version file

KERNEL_VERSION=${KERNEL_VERSION:-`uname -r`}
cat <<__ >myfoo.h
/*
* this file is automatically generated by myfoo-setup,
* and must match the kernel version you're compiling
* the module for.
*
<linux-$KERNEL_VERSION/foo.h>
__

?

-- 
Raul

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/