PlatformIO Docker

This commit is contained in:
iranl
2024-04-28 21:51:22 +02:00
parent a6cb6c10dc
commit 96c3932917
11 changed files with 285 additions and 33 deletions

View File

@@ -654,10 +654,41 @@ To prevent this behaviour, unpair Nuki Hub, disable "Register as app", and re-pa
<b>Never enable "Register as app" unless you intend to use a Nuki Bridge in addition to Nuki Hub!</b>
## Building from source
<b>Docker (Preferred)</b><br>
See the [README](/Docker/README.md) in the Docker directory for instructions on building using Docker.<br>
<br>
<b>Platform IO, instructions for Debian-based Linux distro (e.g. Ubuntu)</b><br>
```console
apt-get update
apt-get install -y git python3 pip
python3 -m venv .venv
source .venv/bin/activate
pip install --upgrade platformio
pip install --upgrade esptool
git clone https://github.com/technyon/nuki_hub --recursive
cd nuki_hub
mkdir -p release/esp32
mkdir -p release/esp32s3
mkdir -p release/esp32c3
mkdir -p release/esp32solo1
pio run --environment esp32dev
cp .pio/build/esp32dev/bootloader.bin release/esp32/bootloader.bin
cp .pio/build/esp32dev/firmware.bin release/esp32/nuki_hub_esp32.bin
cp .pio/build/esp32dev/partitions.bin release/esp32/nuki_hub.partitions.bin
pio run --environment esp32-s3
cp .pio/build/esp32-s3/bootloader.bin release/esp32s3/bootloader.bin
cp .pio/build/esp32-s3/firmware.bin release/esp32s3/nuki_hub_esp32s3.bin
cp .pio/build/esp32-s3/partitions.bin release/esp32s3/nuki_hub.partitions.bin
pio run --environment esp32-c3
cp .pio/build/esp32-c3/bootloader.bin release/esp32c3/bootloader.bin
cp .pio/build/esp32-c3/firmware.bin release/esp32c3/nuki_hub_esp32c3.bin
cp .pio/build/esp32-c3/partitions.bin release/esp32c3/nuki_hub.partitions.bin
pio run --environment esp32solo1
cp .pio/build/esp32solo1/bootloader.bin release/esp32solo1/bootloader.bin
cp .pio/build/esp32solo1/firmware.bin release/esp32solo1/nuki_hub_esp32solo1.bin
cp .pio/build/esp32solo1/partitions.bin release/esp32solo1/nuki_hub.partitions.bin
```
<br>
<b>VMWare image (Not preferred, not using the latest Arduino ESP32 release at this time)</b><br>
A virtual machine (VMWare image) that is setup to compile Nuki Hub is available for download at:<br>
https://drive.google.com/file/d/1fUVYHDtxXAZOAfQ321iRNIwkqFwuDsBp/view?usp=share_link<br>