操作系统: FC6
# mkdir 8139too
# cp linux-2.6.18.1/drivers/net/8139too.c 8139too/ -a
# ls 8139too/
8139too.c
# cd 8139too
# touch Makefile
# touch compile.sh
# chmod a+x compile.sh
# ./compile.sh
//edit compile.sh
#!/bin/bash
make CONFIG_FUSE_FS=m -C /lib/modules/2.6.18-1.2798.fc6/build M=$(pwd) modules
//edit Makefile
#
# Makefile for the FUSE filesystem.
#
obj-$(CONFIG_FUSE_FS) += 8139too.o
转载于:https://blog.51cto.com/lion3875/532271