{"id":22370077,"url":"https://github.com/andreicherniaev/cmake_helloworlddriver","last_synced_at":"2026-01-06T15:05:50.719Z","repository":{"id":111401877,"uuid":"578592593","full_name":"AndreiCherniaev/cmake_helloworldDriver","owner":"AndreiCherniaev","description":"example of cmake for dummy linux driver","archived":false,"fork":false,"pushed_at":"2022-12-16T12:22:02.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-31T19:42:54.437Z","etag":null,"topics":["cmake","linux-driver"],"latest_commit_sha":null,"homepage":"","language":"CMake","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AndreiCherniaev.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":"2022-12-15T12:26:27.000Z","updated_at":"2022-12-15T12:36:06.000Z","dependencies_parsed_at":"2023-05-18T17:31:01.922Z","dependency_job_id":null,"html_url":"https://github.com/AndreiCherniaev/cmake_helloworldDriver","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/AndreiCherniaev%2Fcmake_helloworldDriver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiCherniaev%2Fcmake_helloworldDriver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiCherniaev%2Fcmake_helloworldDriver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiCherniaev%2Fcmake_helloworldDriver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndreiCherniaev","download_url":"https://codeload.github.com/AndreiCherniaev/cmake_helloworldDriver/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245690556,"owners_count":20656605,"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":["cmake","linux-driver"],"created_at":"2024-12-04T19:32:44.515Z","updated_at":"2026-01-06T15:05:50.642Z","avatar_url":"https://github.com/AndreiCherniaev.png","language":"CMake","readme":"# cmake_helloworldDriver\n example of cmake for driver (linux)\n \n A simple hello world kernel module, that can be build with cmake.\nUtilize Kbuild through cmake, and do it in a build directory.\n\n\nUsage:\n1) got clone \n2) create a folder: mkdir build\n3) navigate into build: cd build\n4) run cmake: cmake ../\n5) build it: make\n\n\n\nExpected behavior: \n\ncmake ../ shall do:\n```\n$ cmake ../\n-- The C compiler identification is GNU 11.3.0\n-- Detecting C compiler ABI info\n-- Detecting C compiler ABI info - done\n-- Check for working C compiler: /usr/bin/cc - skipped\n-- Detecting C compile features\n-- Detecting C compile features - done\nmy kerneldir path is \"/lib/modules/5.15.0-56-generic/build\"\n-- Configuring done\n-- Generating done\n-- Build files have been written to: /home/a/Downloads/upd1553lin407a/test2/cmake-kernel-module/build\n```\nmake shall do:\n```\nmake\n[100%] Generating hello.ko\n[100%] Built target driver\n```\n\nAmong others the hello.ko is now present. \n\nSee also about linux driver for beginner\nhttps://habr.com/ru/post/342668/\nhttps://habr.com/ru/company/timeweb/blog/680850/\nhttps://habr.com/ru/company/otus/blog/597993/\n\nThoughts and comments are welcome. \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreicherniaev%2Fcmake_helloworlddriver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandreicherniaev%2Fcmake_helloworlddriver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreicherniaev%2Fcmake_helloworlddriver/lists"}