Hi, thanks for helping me with my previous issue, and would like to report another one.
I am trying to generate board that uses cortex-m4 which is defined in "hw/arm/armv7m.h"
and function that shortens included headers is actually removing too much of the folders in relative path. If I comment out header_paths_shortening call then I have a correct path generated.

I have attached sample project that illustrates the issue.
PS. additionally to make it build for version of Qemu I used 7.1.94
I have to replace softmmu_ss to arm_ss like so

project.zip