{"id":15003675,"url":"https://github.com/amezin/vscode-linux-kernel","last_synced_at":"2025-04-04T08:06:41.678Z","repository":{"id":37301877,"uuid":"150919136","full_name":"amezin/vscode-linux-kernel","owner":"amezin","description":"Visual Studio Code project/compile_commands.json generator for Linux kernel sources and out-of-tree modules","archived":false,"fork":false,"pushed_at":"2023-09-23T09:44:56.000Z","size":9,"stargazers_count":616,"open_issues_count":10,"forks_count":161,"subscribers_count":22,"default_branch":"master","last_synced_at":"2025-03-28T07:05:20.893Z","etag":null,"topics":["kernel","linux-kernel","visual-studio-code","vscode"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amezin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-30T01:51:20.000Z","updated_at":"2025-03-28T02:29:53.000Z","dependencies_parsed_at":"2024-10-30T08:21:01.823Z","dependency_job_id":null,"html_url":"https://github.com/amezin/vscode-linux-kernel","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amezin%2Fvscode-linux-kernel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amezin%2Fvscode-linux-kernel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amezin%2Fvscode-linux-kernel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amezin%2Fvscode-linux-kernel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amezin","download_url":"https://codeload.github.com/amezin/vscode-linux-kernel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247142032,"owners_count":20890651,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["kernel","linux-kernel","visual-studio-code","vscode"],"created_at":"2024-09-24T19:00:09.236Z","updated_at":"2025-04-04T08:06:41.659Z","avatar_url":"https://github.com/amezin.png","language":"Python","readme":"Visual Studio Code project for Linux kernel sources\n===================================================\n\nEnsure the kernel is built (at least, all `*.cmd` files should be generated):\n\n    $ make defconfig\n    $ make\n\nClone this repository as \".vscode\":\n\n    $ git clone git@github.com:amezin/vscode-linux-kernel.git .vscode\n\nGenerate compile_commands.json:\n\n    $ python .vscode/generate_compdb.py\n\nIf you are not compiling kernel for x64, change `intelliSenseMode` in\n`c_cpp_properties.json`. Possible values as of vscode-cpptools 1.0.1:\n\n* `gcc-x86`\n* `gcc-x64`\n* `gcc-arm`\n* `gcc-arm64`\n\nOpen the project:\n\n    $ code .\n\nOut-of-tree builds\n------------------\n\nhttps://github.com/amezin/vscode-linux-kernel/issues/4\n\nKernel can be built with separate output directory:\n\n    $ make O=../linux-build defconfig\n    $ make O=../linux-build\n\nIn this case, you should pass the directory to `generate_compdb.py`:\n\n    $ python .vscode/generate_compdb.py -O ../linux-build\n\n`compile_commands.json` will still be generated in the current directory (root of the `linux` repository).\nUnfortunately, `tasks.json` will not work out of the box in this configuration (TODO).\n\nOut-of-tree module development\n------------------------------\n\nIf you build your module with this command:\n\n    $ make -C $KDIR M=$PWD modules\n\nYou could generate `compile_commands.json` with:\n\n    $ python .vscode/generate_compdb.py -O $KDIR $PWD\n\nExample: https://github.com/amezin/nzxt-rgb-fan-controller-dkms\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famezin%2Fvscode-linux-kernel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famezin%2Fvscode-linux-kernel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famezin%2Fvscode-linux-kernel/lists"}