Custom Build Guide - jaylikesbunda/Ghost_ESP GitHub Wiki
If you want to build GhostESP on your own computer using the ESP-IDF toolchain, follow these steps:
- ESP-IDF installed and set up on your system (v4.4 or later recommended)
 - Python 3.7 or newer
 - Git
 
- 
Clone the Repository
git clone https://github.com/<your-username>/Ghost_ESP.git cd Ghost_ESP
 - 
Copy the Appropriate sdkconfig Template
- Choose the correct configuration file for your board from the 
configs/directory (for example,sdkconfig.cyd,sdkconfig.s3, etc.). - Copy it to the project root as 
sdkconfig:Replacecp configs/sdkconfig.<your_board> sdkconfig cp configs/sdkconfig.<your_board> sdkconfig.defaults
<your_board>with the correct file for your hardware. 
 - Choose the correct configuration file for your board from the 
 - 
Set Up ESP-IDF Environment
- Run the ESP-IDF export script for your shell:
- Bash:
source $IDF_PATH/export.sh - Windows CMD:
%IDF_PATH%\export.bat - Windows PowerShell:
%IDF_PATH%\export.ps1 
 - Bash:
 
 - Run the ESP-IDF export script for your shell:
 - 
Configure the Project
- Run:
idf.py menuconfig
 - Use the menu to select your board, features, and custom options.
 
 - Run:
 - 
Build the Firmware
idf.py build
 - 
Flash the Firmware
- Connect your ESP32 device via USB.
 - Run:
Replace
idf.py -p /dev/ttyUSB0 flash
/dev/ttyUSB0with the correct port for your system. 
 - 
Monitor Serial Output (Optional)
idf.py -p /dev/ttyUSB0 monitor
 
- If you encounter build errors, ensure your ESP-IDF version matches the project's requirements.
 - You can clean the build with 
idf.py fullclean. - For advanced customization, edit files in the 
main/andinclude/directories. 
If your build fails, check the following:
- Ensure your fork is up to date with the main repository
 - Review the workflow logs for any error messages
 - Verify that you have selected compatible build options
 
Note: The build process may take several minutes to complete. You can monitor the progress in the Actions tab or your terminal.
For advanced users who want to modify the build process:
- Navigate to 
.github/workflows/in your forked repository - Locate the custom build workflow file
 - Edit the workflow file to customize the build process according to your needs
 - Commit your changes and run the workflow
 
Remember to follow the repository's guidelines and license terms when making modifications.