Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/smrtos/ZephyrIncludeMap
Header include map generator for Zephyr RTOS
https://github.com/smrtos/ZephyrIncludeMap
Last synced: 3 months ago
JSON representation
Header include map generator for Zephyr RTOS
- Host: GitHub
- URL: https://github.com/smrtos/ZephyrIncludeMap
- Owner: smrtos
- Created: 2021-09-14T09:38:45.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-11-25T09:14:00.000Z (about 2 years ago)
- Last Synced: 2024-07-31T09:08:23.246Z (6 months ago)
- Language: Python
- Size: 1.35 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-zephyr-rtos - Header include map generator for Zephyr RTOS
README
# ZephyrIncludeMap
Header include map generator for Zephyr RTOSThis tool generates include map for a Zephyr C source file.
The generation is based on C preprocessor result.
So it is NOT necessarily exactly the same as what you see in C source file.For example, a xxx.h file with include guard will not be included at a certain position
if a previous yyy.h file has included it indirectly first.
The include map will only show the xxx.h file under yyy.h.In short, it reflects the final effecive result of the include hierarchy.
But it is good enough, isn't it?A sample command:
> python3 GenIncludeMap2.py ~/sources/zephyrproject/zephyr/ ~/sources/zephyrproject/zephyr/bld4 ~/zephyr-sdk-0.15.0/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc ~/sources/zephyrproject/zephyr/samples/drivers/uart/echo_bot/src/main.c