{"id":13457908,"url":"https://github.com/smrtos/ZephyrIncludeMap","last_synced_at":"2025-03-24T14:32:28.883Z","repository":{"id":123007798,"uuid":"406307646","full_name":"smrtos/ZephyrIncludeMap","owner":"smrtos","description":"Header include map generator for Zephyr RTOS","archived":false,"fork":false,"pushed_at":"2022-11-25T09:14:00.000Z","size":1411,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-29T02:31:37.087Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/smrtos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-09-14T09:38:45.000Z","updated_at":"2021-12-21T02:06:27.000Z","dependencies_parsed_at":"2024-01-16T04:31:02.280Z","dependency_job_id":"db931832-0ee4-4ec0-a443-236e2f44d131","html_url":"https://github.com/smrtos/ZephyrIncludeMap","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/smrtos%2FZephyrIncludeMap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smrtos%2FZephyrIncludeMap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smrtos%2FZephyrIncludeMap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smrtos%2FZephyrIncludeMap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smrtos","download_url":"https://codeload.github.com/smrtos/ZephyrIncludeMap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245289710,"owners_count":20591119,"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":[],"created_at":"2024-07-31T09:00:39.387Z","updated_at":"2025-03-24T14:32:28.871Z","avatar_url":"https://github.com/smrtos.png","language":"Python","funding_links":[],"categories":["Examples"],"sub_categories":["More useful APIs"],"readme":"# ZephyrIncludeMap\nHeader include map generator for Zephyr RTOS\n\nThis tool generates include map for a Zephyr C source file.\nThe generation is based on C preprocessor result.\nSo it is NOT necessarily exactly the same as what you see in C source file.\n\nFor example, A xxx.h file with include guard will not be included at a certain position\nof yyy.c if a previous zzz.h in yyy.c has included xxx.h already.\nThe include map will only show the xxx.h file under zzz.h rather than under yyy.c.\n\nIn short, it reflects the final effecive result of the include hierarchy.\nBut it is good enough, isn't it?\n\n```\nIncludeMap ver 0.1\nBy Shao, Ming (smwikipedia@163.com)\n[Description]:\n  This tool generates a map of included headers for a Zephyr .c file in the context of a Zephyr build.\n[Pre-condition]:\n  A Zephyr build must be made before using this tool because some build-generated files are needed.\n[Usage]:\n  GenIncludeMap \u003csrcDir\u003e \u003cbldDir\u003e \u003cgccFullPath\u003e \u003csrcFileFullPath\u003e\n  \u003csrcDir\u003e: the Zephyr folder path.\n  \u003cbldDir\u003e: the Zephyr build folder where build.ninja file is located.\n  \u003cgccFullPath\u003e: the full path of the GCC used to build Zephyr.\n  \u003cgccIncludePath\u003e: the full path of the include directory that comes with your GCC bundle.\n  \u003csrcFileFullPath\u003e: the full path of the Zephyr source file to generate include map for.\n```\n\nA sample command:\n\n\u003e python3 GenIncludeMap2.py  ~/sources/zephyrproject/zephyr/ ~/sources/zephyrproject/zephyr/build ~/dev/toolchain/arm32-none-eabi/bin/arm-none-eabi-gcc ~/dev/toolchain/arm32-none-eabi/lib/gcc/arm-none-eabi/13.3.1/include ~/sources/zephyrproject/zephyr/samples/drivers/uart/echo_bot/src/main.c\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmrtos%2FZephyrIncludeMap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmrtos%2FZephyrIncludeMap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmrtos%2FZephyrIncludeMap/lists"}