Building Single Toolchain

I am having some difficulty in understanding how to compile single toolchains.

The one specifically I am wishing to compile shows up as:


I wonder if anyone can help me with this.


'make menuconfig' and select 'Package the OpenWrt-based Toolchain'

1 Like

Is there any way of building a single one, or just have to build the lot?

My computer is slower than the speed of dark, so trying to streamline things a bit.


Single one as in specific for you device? Choose target system, possible subtarget and then your device. Then it'll build a toolchain used for that device.


Yes, looking for the one just for my device as listed above.

OK, I did try that before and it still appeared to build multiple ones, so I stopped it and thought I would ask here first incase I could get it to build just the one.

Have started it again now, so will see what it turns out.

Thanks again.

Having let it run, it created just 2 toolchains, but unfortunately not the one I wanted.

It created 'target-mipsel_mips32_musl' and 'toolchain-mipsel_mips32_gcc-8.4.0_musl'.

Neither of these were the one I was looking to create, which the source I am trying to compile used, which was


Any other suggestions would be very gratefully received.


You should not be looking under build_dir/ for the toolchain. Those are working directories used during building the target and toolchain packages, respectively. Packaged toolchain goes under bin/targets/...

As to the toolchain type you may want to investigate settings under
Advanced configuration options (for developers) ->Toolchain Options

Apologies. I should have made myself clearer.

The path was from grepping around in a previously compiled package which I have the source for but don't have the toolchain.

The toolchain I need is toolchain-mipsel_gcc-10.2.0_uClibc-


Googling around and that uClibc version refers to something that was released in 2012. I would be surprised if you could pull out something like that with current OpenWrt. Your best bet could be to try to turn back time and find OpenWrt version that used uClibc or to build your own uClibc based toolchain with instructions from here.

1 Like

uClibc support has been removed from OpenWrt in 2015, well before GCC 10 was released in 2020.

They have never been supported in OpenWrt at the same time.

If you have stumbled upon that combo, it is somebody's private development. (Some OEM that has bumped an ancient OpenWrt codebase (pre-2015) to use the brand new GCC version ???)


Thank you both for your replies. That all makes a little more sense now. I should have googled the age of that uClibc version myself actually, makes a bit more sense why I couldn't get OpenWrt to build it.

I will have a look at the instructions that sandberg has linked too, and hopefully get something together there.

Thanks again for all the help.

1 Like