OpenWrt Forum Archive

Topic: How to add a toolchain to the output image created using openwrt?

The content of this topic has been archived on 30 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

In the output image that I got after compiling the openwrt (chaos calmer-raspberry pi).In the /lib/modules/`uname -r`/ there is no build directory.Without that directory,compiling a new kernel module in the target board is not possible.So what is the way to bring up a build/ directory to make kernel module in the output image.

Thanks.

Usually modules for OpenWrt kernels are built on the build host at the same time with the kernel. Building kernel modules as an after-thought on the target is not directly supported by the OpenWrt build environment.

Why do you need to build kernel modules on the target, instead of building them on the build host?

The discussion might have continued from here.