tlinux大大:
我試過您的方法也是過readme中說得另一種方法,但是兩種操作下來都是有錯誤,產生的錯誤看謀
,大大可以給我意見嗎?感恩!!
dh_testdir
dh_testroot
rm -f build-arch-stamp build-indep-stamp configure-stamp
rm -rf modules
/usr/bin/make clean
make[1]: Entering directory `/usr/src/modules/ipw2200'
make[1]: Leaving directory `/usr/src/modules/ipw2200'
/usr/bin/make -C driver clean
make[1]: Entering directory `/usr/src/modules/ipw2200/driver'
rm -f *.mod.c *.mod *.o *.ko .*.cmd .*.flags *.lst *~ .#*
rm -rf /usr/src/modules/ipw2200/driver/tmp .tmp_versions
for file in *.{c,h} net/*.h; do \
sed -i -e "s:\ *$::g" -e "s:\t*$::g" $file; \
done
make[1]: Leaving directory `/usr/src/modules/ipw2200/driver'
dh_clean
/usr/bin/make -f debian/rules kdist_clean kdist_config binary-modules
make[1]: Entering directory `/usr/src/modules/ipw2200'
dh_testdir
dh_testroot
rm -f build-arch-stamp build-indep-stamp configure-stamp
rm -rf modules
/usr/bin/make clean
make[2]: Entering directory `/usr/src/modules/ipw2200'
make[2]: *** No rule to make target `clean'. Stop.
make[2]: Leaving directory `/usr/src/modules/ipw2200'
make[1]: [clean] Error 2 (ignored)
/usr/bin/make -C driver clean
make[2]: Entering directory `/usr/src/modules/ipw2200/driver'
rm -f *.mod.c *.mod *.o *.ko .*.cmd .*.flags *.lst *~ .#*
rm -rf /usr/src/modules/ipw2200/driver/tmp .tmp_versions
for file in *.{c,h} net/*.h; do \
sed -i -e "s:\ *$::g" -e "s:\t*$::g" $file; \
done
make[2]: Leaving directory `/usr/src/modules/ipw2200/driver'
dh_clean
for templ in ; do \
cp $templ `echo $templ | sed -e 's/_KVERS_/2.6.8/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.8/g ;s/#KVERS#/2.6.8/g ; s/_KVERS_/2.6.8/g ; s/##KDREV##/10.00.Custom/g ; s/#KDREV#/10.00.Custom/g ; s/_KDREV_/10.00.Custom/g' < $templ > ${templ%.modules.in}; \
done
export DH_OPTIONS='-pipw2200-modules-2.6.8'
sed s/_UPSTREAM_VERSION_/1.0.4/ < debian/config > debian/config.new
mv debian/config.new debian/config
dh_testdir
dh_testroot
dh_clean -k
# Build the module
/usr/bin/make -C driver KSRC=/usr/src/kernel-source-2.6.8 KVER=2.6.8
make[2]: Entering directory `/usr/src/modules/ipw2200/driver'
/usr/bin/make -C /usr/src/kernel-source-2.6.8 SUBDIRS=/usr/src/modules/ipw2200/driver MODVERDIR=/usr/src/modules/ipw2200/driver modules
make[3]: Entering directory `/usr/src/kernel-source-2.6.8'
Makefile:418: .config: No such file or directory
CC [M] /usr/src/modules/ipw2200/driver/ipw2200.o
In file included from include/linux/module.h:9,
from /usr/src/modules/ipw2200/driver/ipw2200.h:32,
from /usr/src/modules/ipw2200/driver/ipw2200.c:33:
include/linux/config.h:4:28: linux/autoconf.h: No such file or directory
In file included from include/asm/thread_info.h:16,
from include/linux/thread_info.h:21,
from include/linux/spinlock.h:12,
from include/linux/capability.h:45,
from include/linux/sched.h:7,
from include/linux/module.h:10,
from /usr/src/modules/ipw2200/driver/ipw2200.h:32,
from /usr/src/modules/ipw2200/driver/ipw2200.c:33:
include/asm/processor.h:67: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
include/asm/processor.h:67: error: requested alignment is not a constant
In file included from include/linux/list.h:7,
from include/linux/wait.h:14,
from include/asm/semaphore.h:41,
from include/linux/sched.h:18,
from include/linux/module.h:10,
from /usr/src/modules/ipw2200/driver/ipw2200.h:32,
from /usr/src/modules/ipw2200/driver/ipw2200.c:33:
include/linux/prefetch.h: In function `prefetch_range':
include/linux/prefetch.h:64: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared (first use in this function)
include/linux/prefetch.h:64: error: (Each undeclared identifier is reported only once
include/linux/prefetch.h:64: error: for each function it appears in.)
In file included from include/linux/module.h:23,
from /usr/src/modules/ipw2200/driver/ipw2200.h:32,
from /usr/src/modules/ipw2200/driver/ipw2200.c:33:
include/asm/module.h:54:2: #error unknown processor family
In file included from include/asm/hardirq.h:6,
from include/linux/interrupt.h:12,
from include/linux/netdevice.h:512,
from /usr/src/modules/ipw2200/driver/ipw2200.h:39,
from /usr/src/modules/ipw2200/driver/ipw2200.c:33:
include/linux/irq.h: At top level:
include/linux/irq.h:68: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
include/linux/irq.h:68: error: requested alignment is not a constant
In file included from include/linux/interrupt.h:12,
from include/linux/netdevice.h:512,
from /usr/src/modules/ipw2200/driver/ipw2200.h:39,
from /usr/src/modules/ipw2200/driver/ipw2200.c:33:
include/asm/hardirq.h:13: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
include/asm/hardirq.h:13: error: requested alignment is not a constant
/usr/src/modules/ipw2200/driver/ipw2200.c: In function `ipw_pci_probe':
/usr/src/modules/ipw2200/driver/ipw2200.c:9890: warning: implicit declaration of function `pci_set_consistent_dma_mask'
/usr/src/modules/ipw2200/driver/ipw2200.c:9898: warning: implicit declaration of function `pci_request_regions'
/usr/src/modules/ipw2200/driver/ipw2200.c:9993: warning: implicit declaration of function `pci_release_regions'
make[4]: *** [/usr/src/modules/ipw2200/driver/ipw2200.o] Error 1
make[3]: *** [_module_/usr/src/modules/ipw2200/driver] Error 2
make[3]: Leaving directory `/usr/src/kernel-source-2.6.8'
make[2]: *** [modules] Error 2
make[2]: Leaving directory `/usr/src/modules/ipw2200/driver'
make[1]: *** [binary-modules] Error 2
make[1]: Leaving directory `/usr/src/modules/ipw2200'
make: *** [kdist_build] Error 2