我正在尝试编译一个驱动程序。我的内核版本是3.2.0-27-generic。
我留下的只包括我需要的:
#include <linux/init.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/proc_fs.h>
#include <linux/pci.h>
#include <linux/delay.h>
#include <linux/dmi.h>
找到这些标头。但是当我尝试编译时出现错误,找不到 asm/cache.h 文件。
当我挖掘dipper时,我发现没有“asm”这样的文件夹,而是asm-generic并且它包含所需的标头。
It's structure of folder with headers:
Why was it renamed? Because of it I can't compile another drivers. If I rename "asm-geneic "to "asm" it will lead to other missing headers. What's wrong here?
asm/cache.h与架构相关,不同的架构有不同的asm目录
arch/powerpc/include/asm/
arch/x86/include/asm/
arch/arm/include/asm
[...]
你无法重命名包含/asm 通用 to 包含/汇编因为你的问题是你无法到达架构asm文件夹。尝试检查您的 .config 文件或手动设置ARCH多变的。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)