1 个不稳定版本
0.1.0 | 2024年7月23日 |
---|
#273 在 可视化
每月 129 次下载
31KB
552 行
下游依赖映射
分析下游内核模块及其依赖项
Usage: downstream_dependency_map [downstream_compile_commands.json] [downstream kernel directory] [relative build directory name (must be in the high source tree)] [mainline kernel directory] [option] ...
Example: downstream_dependency_map downstream_kernel/build/compile_commands.json downstream_kernel/ build/ mainline_kernel/ -pd
Options:
--path-absolute, -a : Use absolute path to the source directory
--print-dependencies, -pd : Print dependencies tree
--print-includes, -pi : Print includes
--dependencies-json, -dj [output.json] : Export dependencies tree to a .json file
--dependencies-dot, -dd [output.dot] : Export dependencies tree to a .dot file
--includes-json, -ij [output.json] : Export includes to a .json file
--includes-dot, -id [output.dot] : Export includes to a .dot file
如何使其工作
- 使用 Clang 编译您的下游内核,从构建中生成 "compile_commands.json",我建议使用
bear -- [./build_script.sh]
- 下载与此版本完全相同的主线内核
- 使用此工具生成依赖和包含树
依赖项
~0.5–1MB
~21K SLoC