Created
November 13, 2019 13:38
-
-
Save kragniz/30edb98d1b870ba59acbdc0f1ea14f47 to your computer and use it in GitHub Desktop.
How to use vscode for linux kernel module development against linux git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"configurations": [ | |
{ | |
"name": "Linux", | |
"includePath": [ | |
"${workspaceFolder}/**", | |
"/home/kgz/git/linux/include/generated", | |
"/home/kgz/git/linux/arch/x86/include/generated", | |
"/home/kgz/git/linux/arch/x86/include", | |
"/home/kgz/git/linux/include" | |
], | |
"defines": [ | |
"__KERNEL__" | |
], | |
"compilerPath": "/usr/bin/gcc", | |
"cStandard": "c11", | |
"cppStandard": "c++17", | |
"intelliSenseMode": "gcc-x64" | |
} | |
], | |
"version": 4 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For me I had to define
defines
as[ "__KERNEL__", "MODULE"]
as well