Giter Site home page Giter Site logo

Comments (4)

Lapshin avatar Lapshin commented on July 25, 2024

Hi @gopakumarce !

Before GCC release 13 we had to build toolchain for every chip. Before building we just replaced files in binutils/gcc/newlib from this repository xtensa-overlays. It contains all chip-specific information.

After GCC 13 is released the repository xtensa-dynconfig used to build chip-specific dynamic libraries that contains information from xtensa-overlays. (You can find libraries xtensa_esp*.so in the latest toolchain distribution).

Also, for backward compatibility gcc-wrappers xtensa-[esp32|esp32s2|esp32s3]-elf-* exists in the distro. When executing they just append your command line with -mdynconfig=xtensa_[esp32|esp32s2|esp32s3].so. And also sets env variable XTENSA_GNU_CONFIG.
Note: in general set XTENSA_GNU_CONFIG is enough to use the right chip-specific configuration. -mdynconfig option needs to find the right libc for this chip in multilibs.

Hope this helps you. If you still have any questions, I'd be happy to answer them.

from crosstool-ng.

gopakumarce avatar gopakumarce commented on July 25, 2024

Hi @gopakumarce !

Before GCC release 13 we had to build toolchain for every chip. Before building we just replaced files in binutils/gcc/newlib from this repository xtensa-overlays. It contains all chip-specific information.

After GCC 13 is released the repository xtensa-dynconfig used to build chip-specific dynamic libraries that contains information from xtensa-overlays. (You can find libraries xtensa_esp*.so in the latest toolchain distribution).

Also, for backward compatibility gcc-wrappers xtensa-[esp32|esp32s2|esp32s3]-elf-* exists in the distro. When executing they just append your command line with -mdynconfig=xtensa_[esp32|esp32s2|esp32s3].so. And also sets env variable XTENSA_GNU_CONFIG. Note: in general set XTENSA_GNU_CONFIG is enough to use the right chip-specific configuration. -mdynconfig option needs to find the right libc for this chip in multilibs.

Hope this helps you. If you still have any questions, I'd be happy to answer them.

Thanks a ton @Lapshin for the response, that would have taken me a long time to figure out. So I was searching for where in the latest esp-idf (makefiles/cmakefiles) do they set XTENSA_GNU_CONFIG or pass -mdynconfig and I cant find it, do you know if they are already using xtensa-esp-elf or they are still using the wrappers ?

from crosstool-ng.

Lapshin avatar Lapshin commented on July 25, 2024

@gopakumarce , it using wrappers. for example see this file: https://github.com/espressif/esp-idf/blob/master/tools/cmake/toolchain-esp32s3.cmake#L5-L8

from crosstool-ng.

gopakumarce avatar gopakumarce commented on July 25, 2024

@gopakumarce , it using wrappers. for example see this file: https://github.com/espressif/esp-idf/blob/master/tools/cmake/toolchain-esp32s3.cmake#L5-L8

Thx again @Lapshin

from crosstool-ng.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.