Greetings on this mighty forum.
I have a question about building host tools by openWRT buildsystem. Is there any possibility to turn off this feature and use real host tools like binutils, or CMake. I'm trying to build firmware on docker image on macOS system. In this case building firmware take 2 hours and native build without docker is taking 33 minutes. As a part of docker image environment i could prepare my own tools used by buildsystem, but i'm lack finding solution to turn off automatic build of host tools.
Thanks in advance for help!
You can't force to use the host-toolchain, since openwrt expects specific versions/libs. Yet there are precompiled SDK's archives you can download/extract inside your container, so the toolchain don't need to-be compiled every time.
Alternatively you can just keep your container and build the tool-chain once and than just update and reuse. The compiler/musl versions only change rarely so can be reused for quite some time.
PS: You can check my docker based package-builder as an example on how to download/extract the SDK archives.
No, it would be support nightmare.
In this case building firmware take 2 hours and native build without docker is taking 33 minutes
I don't follow here. You should be able to build OpenWrt natively on macOS.
Thank you all for replies. In my project I have very custom toolchain and linux kernel. which are taken to openwrt from outside the source directory. But for example i will take a CMake. It's build using local (host) toolchain and used to cross compile packages that are CMake based. I was thinking that it's possibile to use CMake from host bin dir and don't compile it as "tools" target inside SDK.