tinyG is very popular, but few have need (or capability/desire) to customize/port as you are attempting.
And perhaps I should observe that folks able to dig about in the weeds at that level don’t come here for help.
Those seeking the bleeding edge tinyG experience on new hardware tend to head down the tinyG2 path.
The issues link above is appropriate should you find inconsistencies in the source tree or makefiles, etc. This forum is more for operational issues when using ‘standard’ tinyG hardware and published binaries.
There is also