Last active
October 30, 2023 08:27
-
-
Save nouredd2/e2a46ea5316fcc206e7e944dab95eeb2 to your computer and use it in GitHub Desktop.
Config options for using VSCode for kernel module development.
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", | |
"browse": { | |
"path":[ | |
"/usr/include", | |
"/usr/local/include", | |
"/usr/src/linux-headers-5.8.0-41-generic/include", | |
"/usr/src/linux-headers-5.8.0-41-generic/arch/x86/include/", | |
"${workspaceFolder}" | |
] | |
}, | |
"defines": [ | |
"__KERNEL__", | |
"MODULE" | |
], | |
"compilerPath": "/usr/bin/gcc", | |
"cStandard": "c99", | |
"cppStandard": "c++14", | |
"intelliSenseMode": "gcc-x64", | |
"includePath": [ | |
"${workspaceFolder}/**", | |
"/usr/include/**", | |
"/usr/src/linux-headers-5.8.0-41-generic/arch/x86/include", | |
"/usr/src/linux-headers-5.8.0-41-generic/arch/x86/include/generated", | |
"/usr/src/linux-headers-5.8.0-41-generic/include", | |
"/usr/src/linux-headers-5.8.0-41-generic/arch/x86/include/uapi", | |
"/usr/src/linux-headers-5.8.0-41-generic/arch/x86/include/generated/uapi", | |
"/usr/src/linux-headers-5.8.0-41-generic/include/uapi", | |
"/usr/src/linux-headers-5.8.0-41-generic/include/generated/uapi", | |
"/usr/src/linux-headers-5.8.0-41-generic/ubuntu/include", | |
"/usr/lib/gcc/x86_64-linux-gnu/9/include" | |
], | |
"compilerArgs": [ | |
"-nostdinc", | |
"-include", "/usr/src/linux-headers-5.8.0-41-generic/include/linux/kconfig.h", | |
"-include", "/usr/src/linux-headers-5.8.0-41-generic/include/linux/compiler_types.h" | |
] | |
} | |
], | |
"version": 4 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment