2020年6月10日
摘要: 使用tab键obj-m:=hello.o KDIR:=/lib/modules/$(shell uname -r)/build PWD:=$(shell pwd) default: $(MAKE) -C $(KDIR) M=$(PWD) modules clean: rm -f *.o *.ko ( 阅读全文
posted @ 2020-06-10 14:59 裸睡的猪 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 清理文件(在linux源码根目录):·make clean:只清理所有产生的文件·make mrproper:清理所有产生的文件与config配置文件·make distclean:清理所有产生的文件与config配置文件,并且编辑过的与补丁文件↓配置(收集硬件信息如cpu型号,网卡等...):·m 阅读全文
posted @ 2020-06-10 11:13 裸睡的猪 阅读(304) 评论(0) 推荐(0) 编辑
摘要: ln -s 绝对路径 目标目录文件 [root@localhost src]# ls debug kernels linux-2.6.20 linux-2.6.20.tar.gz [root@localhost src]# ln -sv /usr/src/linux-2.6.20 /home/zha 阅读全文
posted @ 2020-06-10 11:04 裸睡的猪 阅读(2128) 评论(0) 推荐(0) 编辑