linux设备驱动Makefile
Linux2.4内核中,模块的编译只需求内核源码头文件,并在包括linux/modules.h头文件之前定义MODULES,且其编译、连接后生成的内核模块后缀为.o。而在2.6内核中,模块的编译需求依赖配置过的内核源码,编译进程首要会到内核源码对象下,读取顶层的Makefile文件,且编译、连接后生成的内核模块后缀为.ko(In the Linux 2.4 kernel, the compilation of modules only requires the kernel source dock file, and the MODULES is defined before the Linux/modules. h header file is included, and the suffix of the kernel modules generated after the compilation and connection is. o. In the 2.6 kernel, the compilation requirements of modules depend on the configured kernel source code. The compilation process will first go to the kernel source code object to read the top-level Makefile file, and the suffix of the kernel module generated after compilation and connection is. ko)
页:
[1]