Package: omfs-source
Version: 0.7.4-1

Hi,

If I try to build omfs with make-kpkg, then it tries to build a module for
the running kernel instead of the target kernel. Here is the log:

:
:
for templ in 
/usr/src/modules/omfs/debian/omfs-module-_KVERS_.postinst.modules.in 
/usr/src/modules/omfs/debian/omfs-module-_KVERS_.postrm.modules.in; do \
    cp $templ `echo $templ | sed -e 's/_KVERS_/2.6.22.1/g'` ; \
  done
for templ in `ls debian/*.modules.in` ; do \
    test -e ${templ%.modules.in}.backup || cp ${templ%.modules.in} 
${templ%.modules.in}.backup 2>/dev/null || true; \
    sed -e 's/##KVERS##/2.6.22.1/g ;s/#KVERS#/2.6.22.1/g ; s/_KVERS_/2.6.22.1/g ; 
s/##KDREV##/1/g ; s/#KDREV#/1/g ; s/_KDREV_/1/g  ' < $templ > 
${templ%.modules.in}; \
  done
dh_testdir
dh_testroot
dh_clean -k
make KERNEL_SOURCES=/usr/src/linux-2.6.22.1 MODVERSIONS=detect 
KERNEL=linux-2.6.22.1
make[3]: Entering directory `/usr/src/modules/omfs'
make -C /lib/modules/2.6.21.6/build M=/usr/src/modules/omfs modules
make[4]: Entering directory `/usr/src/linux-2.6.21.6'

  ERROR: Kernel configuration is invalid.
         include/linux/autoconf.h or include/config/auto.conf are missing.
         Run 'make oldconfig && make prepare' on kernel src to fix it.


  WARNING: Symbol version dump /usr/src/linux-2.6.21.6/Module.symvers
           is missing; modules will have no dependencies and modversions.

  Building modules, stage 2.
/usr/src/linux-2.6.21.6/scripts/Makefile.modpost:42: include/config/auto.conf: 
No such file or directory
make[5]: *** No rule to make target `include/config/auto.conf'.  Stop.
make[4]: *** [modules] Error 2
make[4]: Leaving directory `/usr/src/linux-2.6.21.6'
make[3]: *** [modules] Error 2
make[3]: Leaving directory `/usr/src/modules/omfs'
make[2]: *** [binary-modules] Error 2
make[2]: Leaving directory `/usr/src/modules/omfs'
make[1]: *** [kdist_build] Error 2
make[1]: Leaving directory `/usr/src/modules/omfs'
Module /usr/src/modules/omfs failed.
Hit return to Continue?



In the Makefile of the madwifi driver I found this, which might be helping here:


# KERNELRELEASE is the target kernel's version.  It's always taken from
# the kernel build tree.  Kernel Makefile doesn't always know the exact
# kernel version (especially for vendor stock kernels), so we get it
# from <linux/version.h> instead. But simply grepping it from version.h
# doesn't work, since some distributions have multiple UTS_RELEASE
# in that file.
# This trick has been inspired by the lm_sensors project.
ifndef KERNELRELEASE
KERNELRELEASE := $(shell $(CC) -I $(KERNELPATH)/include -E $(TOP)/kernelversion.c | 
grep uts_release | cut -f2 -d'"')
ifeq (,$(KERNELRELEASE))
$(error Cannot detect kernel version - please check compiler and KERNELPATH)
endif
endif


Regards

Harri


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to