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: about 7 hours ago
JSON representation

Header include map generator for Zephyr RTOS

Lists

README

        

# ZephyrIncludeMap
Header include map generator for Zephyr RTOS

This 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