I want to get the LLVM IR of the zephyr os (https://github.com/zephyrproject-rtos/zephyr) for static analysis. For this I need to get the IR for each file basically. But as pointed out each file cannot be compiled directly as zephyr requires a board architecture and and app for a Kconfig and then using python scripts produces some header files which are not present from beforehand. So can you pls suggest what I can do ? Is there some way that I can get all the files required for the compilation of each file seperately even if they dont compile all together.
I have been trying to do this but I am unable to do so. Can you pls suggest. Thanks.