This is a quick summary of how to compile a custom build NodeMCU and the procedure for writing the firmware to ESP-01.
OS used: Windows 8.1
Compile the NodeMCU firmware
This site - https://nodemcu-build.com/index.php is very helpful for building customized NodeMCU firmware. If you find it useful, please make some donation to reward the author and to keep the site running.
For this post, below is the configuration used for making the NodeMCU firmware.