I have a target in which i have the toolchain installed with the RFS image.
If i have the kernel source code in some PC in the network which i can mount via NFS, is it possible to compile the source code from the target?
If yes, could you explain how or what different techniques are available for it.
EDIT : The Scenario I wish to Execute -
When my board boots up it will mount my root file system(RFS) which has the toolchain and the binutils present within it.
After the RFS has been mounted successfully, it will connect to the NFS location where my kernel source is present and using the binutils in my RFS, it will try to compile that source code.
Once the compilation is successful the new executable (for eg. vmlinux.bin) will be flashed to the ROM and board will be restarted with the new image.
I just want to know if this scenario can be realized. If Yes, how can it be done in a more technical way?