lkml.org 
[lkml]   [1999]   [Nov]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: toplevel Makefile bug and simple fix
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/

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