Skip to content

ricardoquesada/esp32-arduino-lib-builder

Repository files navigation

ESP32 Arduino Lib Builder ESP32 Arduino Libs CI

This repository contains the scripts that produce the libraries included with esp32-arduino.

Tested on Ubuntu (32 and 64 bit), Raspberry Pi and MacOS.

Build on Ubuntu and Raspberry Pi

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

When ESP32 releases a new version

  1. Download the .zip from: https://github.com/espressif/arduino-esp32/releases
  2. Unzip it in ~/Arduino/hardware/retro.moe/...
  3. rename it to esp32-bluepad32
  4. create package folder: mkdir esp32-bluepad32/package
  5. copy boards.txt from the downloaded file to bluepad32_files
  6. Manually remove all esp32s2 boards from bluepad32_files/boards.txt

And repeat the previous steps.

Release

  1. Copy bluepad32_files/boards.txt and bluepad32_files/platform.txt to ~/Arduino/hardware/retro.moe/esp32-bluepad32
  2. Copy bluepad32_files/libraries/ to ~/Arduino/hardware/retro.moe/esp32-bluepad32/libraries/
  3. Upload .zip to https://github.com/ricardoquesada/esp32-arduino-lib-builder
  4. Update bluepad32_files/package_esp32_bluepad32_index.json accordingly. Update package_esp32_bluepad32_index.json in master 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/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 33.1%
  • Shell 31.5%
  • Python 27.5%
  • C++ 3.2%
  • CMake 2.3%
  • Dockerfile 1.4%
  • Other 1.0%