OK so your patch compiles and builds without error on 6.3.0 - now to try it out.
I've also been talking to one of the crosstool maintainers, who was kind of horrified with our ESP8266 approach to creating a customised config file, but I'm still trying to get a way to run
in headless mode so that we can automate it from a Makefile.
Having said that, they've come up with quite a few really good points and I think a review of our Makefile and build process is in order:
- sysroot based toolchains for 'bare metal' (ie. Non-OS based) systems were removed in 1.22 because there was unnecessary and incorrect duplication of include and lib structures.
- our current Makefile pollutes the crosstool-NG tree and doesn't completely clean up after itself
- the current xtensa build process patches source code in place, making it impossible to build the same toolchain for different architectures (eg. esp8266 and ESP32) without doing a full clean
- the current toolchain directory format could be changed so that multiple architectures are supported file structure
I'm thinking of having a go at refactoring the Makefile to accommodate this - do you think this is useful?