Changes to the Configure script; should make things a little more sane
for vendor-supplied kernels.
This commit is contained in:
parent
578be5136d
commit
0967d1a89c
2
CHANGES
2
CHANGES
|
@ -42,6 +42,8 @@
|
|||
*
|
||||
* --------------------------------------------------------------------
|
||||
0.1.14
|
||||
- Added PCMCIA ident info for the 3Com AirConnect 3CRW737A/3CRW777A
|
||||
- David Everly's patch to kernel detection in the Configure script
|
||||
-pre7
|
||||
- Added kernel tags stuff.
|
||||
- Added PCMCIA ident info for the Actiontec 802CI2 card.
|
||||
|
|
14
Configure
14
Configure
|
@ -275,7 +275,7 @@ $ECHO ""
|
|||
|
||||
ask_str "Linux source directory" LINUX_SRC
|
||||
|
||||
if [ ! -f $LINUX_SRC/Makefile ] ; then
|
||||
if [ ! -f $LINUX_SRC/include/linux/version.h ] ; then
|
||||
$ECHO "Linux source tree $LINUX_SRC is incomplete or missing!"
|
||||
if [ -d $LINUX_SRC/include/linux ] ; then
|
||||
$ECHO " The kernel header files are present, but not " \
|
||||
|
@ -293,11 +293,13 @@ version () {
|
|||
}
|
||||
|
||||
$ECHO ""
|
||||
for TAG in VERSION PATCHLEVEL SUBLEVEL EXTRAVERSION ; do
|
||||
eval `sed -ne "/^$TAG/s/[ ]//gp" $LINUX_SRC/Makefile`
|
||||
done
|
||||
SRC_RELEASE=$VERSION.$PATCHLEVEL.$SUBLEVEL$EXTRAVERSION
|
||||
VERSION_CODE=`version $VERSION $PATCHLEVEL $SUBLEVEL`
|
||||
|
||||
SRC_RELEASE=`grep UTS_RELEASE $LINUX_SRC/include/linux/version.h | \
|
||||
sed -e 's/^[^"]*"//g' -e 's/".*$//g'`
|
||||
|
||||
VERSION_CODE=`grep LINUX_VERSION_CODE $LINUX_SRC/include/linux/version.h | \
|
||||
sed -e 's/[^0-9]//g'`
|
||||
|
||||
$ECHO "The kernel source tree is version $SRC_RELEASE."
|
||||
if [ $VERSION_CODE -lt `version 2 2 0` ] ; then
|
||||
$ECHO "This package requires at least a 2.2.x series kernel."
|
||||
|
|
Loading…
Reference in a new issue