How is toolchain (musl for example) built on OpenWRT

Hello everyone!

I am trying to build OpenWRT for my project. I have the following question: how do I understand the version of musl that I am using? I know for sure that I use musl, as I have this token present in my configuration file: CONFIG_LIBC_USE_MUSL=y.

I also know that for regular packages, one simply needs to see the build_dir/target-<...> directory and find the sources of their package there. But in my case, what I want is the toolchain and libc. I want to find the sources of musl inside the build_dir. Where are they located?

Another thing that I am trying to do is to find out which version of musl I am using. For that task, with regular packages, I would go to feeds directory and there find the Makefile that is accountable for the package in question. Then, I would simply see the version there. But I cannot (seemingly) do that with musl library. How do I approach this task?

Please, help me.

Thank you.

It's in toolchain/musl and build_dir/toolchain-*/musl-*.

2 Likes
hostle@hostle-Satellite-L775:~/openwrt$ ls dl | grep musl
musl-1.2.5.tar.gz
musl-fts-1.2.7.tar.xz