今天改造了一下Makefile,现在只需要运行make就可以了
# If KERNELRELEASE is defined, we've been invoked from the
# kernel build system and can use its language.
ifneq ($(KERNELRELEASE),)
obj-m := hello_world.o # Otherwise we were called directly from the command
# line; invoke the kernel build system.
else
KERNELDIR ?= /usr/src/linux-2.6.8.1-zzm PWD := $(shell pwd)
default: $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
clean: $(MAKE) -C $(KERNELDIR) M=$(PWD) clean
endif
|
另外:启动脚本集中在 /etc/ 和 /usr/etc/ 两个文件夹下
阅读(634) | 评论(0) | 转发(0) |