标签:相关 ted min ret generate import xpl sha 结束
准备配置文件
创建Project1.vcxproj配置文件
Debug
x64
Linux
Project1
15.0
Linux
1.0
Generic
{2238F9CD-F817-4ECC-BD14-2524D2669B35}
true
D:/Linux/linux-3.4.39.6818/include;
D:/Linux/linux-3.4.39.6818/arch/arm/include;
D:/Linux/linux-3.4.39.6818/arch/arm/include/generated;
D:/Linux/linux-3.4.39.6818/arch/arm/mach-s5p6818/include;
D:/Linux/linux-3.4.39.6818/arch/arm/plat-s5p6818/include;
D:/Linux/linux-3.4.39.6818/arch/arm/plat-s5p6818/common;
D:/Linux/linux-3.4.39.6818/arch/arm/plat-s5p6818/GEC6818/include;
%(AdditionalIncludeDirectories)
__KERNEL__;CONFIG_RWSEM_GENERIC_SPINLOCK
#include
#include
static int __init xxx6818_hello_module_init(void)
{
printk("<0>""Hello, hello module is installed !\n");
return 0;
}
static void __exit xxx6818_hello_module_cleanup(void)
{
printk("<0>""Good-bye, hello module was removed!\n");
}
module_init(xxx6818_hello_module_init);
module_exit(xxx6818_hello_module_cleanup);
MODULE_LICENSE("GPL");
项 | 描述 |
---|---|
kernel/include | 内核头文件 |
kernel/arch/arm/include | 内核平台相关 |
kernel/arch/arm/include/generated | 内核编译后生成的头文件放置目录 |
kernel/arch/arm/mach-s5p6818/include | mach-xx需要根据芯片选择 |
结束
使用 VS2019、VSCode 编辑 Linux 驱动工程
标签:相关 ted min ret generate import xpl sha 结束
原文地址:https://www.cnblogs.com/long-bky/p/12501820.html