This repository contains the scripts that produce the libraries included with esp32-arduino.
Tested on Ubuntu (32 and 64 bit), Raspberry Pi and MacOS.
sudo apt-get install git wget curl libssl-dev libncurses-dev flex bison gperf python python-pip python-setuptools python-serial python-click python-cryptography python-future python-pyparsing python-pyelftools cmake ninja-build ccache jq
sudo pip install --upgrade pip
git clone https://github.com/espressif/esp32-arduino-lib-builder
cd esp32-arduino-lib-builder
./build.sh
### Build for Bluepad32
Copy Bluepad32 components.
```sh
cd components
cp -r ~/esp-idf-arduino-bluepad32-template/components/* .
Build it
# All targets. esp32-s2 already removed from the supported boards
./build.sh -s
Update:
# Already patched to copy to ~/Arduino/hardware/retro.moe/esp32-bluepad32
. ./tools/copy-to-arduino.sh
- Download the .zip from: https://github.com/espressif/arduino-esp32/releases
- Unzip it in ~/Arduino/hardware/retro.moe/...
- rename it to esp32-bluepad32
- create
package
folder:mkdir esp32-bluepad32/package
- copy
boards.txt
from the downloaded file tobluepad32_files
- Manually remove all esp32s2 boards from
bluepad32_files/boards.txt
And repeat the previous steps.
- Copy
bluepad32_files/boards.txt
andbluepad32_files/platform.txt
to~/Arduino/hardware/retro.moe/esp32-bluepad32
- Copy
bluepad32_files/libraries/
to~/Arduino/hardware/retro.moe/esp32-bluepad32/libraries/
- Upload .zip to https://github.com/ricardoquesada/esp32-arduino-lib-builder
- Update
bluepad32_files/package_esp32_bluepad32_index.json
accordingly. Updatepackage_esp32_bluepad32_index.json
inmaster
branch as well.
cp bluepad32_files/boards.txt bluepad32_files/platform.txt bluepad32_files/package.json ~/Arduino/hardware/retro.moe/esp32-bluepad32
cp -r bluepad32_files/libraries/* ~/Arduino/hardware/retro.moe/esp32-bluepad32/libraries/