Changes to the Configure script; should make things a little more sane

for vendor-supplied kernels.
This commit is contained in:
solomon 2002-07-01 21:12:55 +00:00
parent 578be5136d
commit 0967d1a89c
3 changed files with 11 additions and 7 deletions

View file

@ -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.

View file

@ -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."

View file

@ -1,7 +1,7 @@
WLAN_VERSION=0
WLAN_PATCHLEVEL=1
WLAN_SUBLEVEL=14
WLAN_EXTRAVERSION=-pre7
WLAN_EXTRAVERSION=
LINUX_SRC=/usr/src/linux
WLAN_TARGET_ARCH=
PCMCIA_SRC=