chore: unify building system with Makefile (#398)

* reorder and extend platformio config

* update gitignore

* add processing extra_script

* add makefile

* update github workflow

* update docker build

* add release and debug targets

* define custom_build debug

* fix custom_build target

* update README
This commit is contained in:
David Girón
2024-06-09 04:31:05 +02:00
committed by GitHub
parent a79ce7883b
commit d8dd08edf7
12 changed files with 193 additions and 198 deletions

View File

@@ -706,33 +706,18 @@ See the [README](/Docker/README.md) in the Docker directory for instructions on
<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
apt-get install -y git python3 pip make
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
# install tools platformio and esptool
make deps
# build all binary boards
make release
```
<br>
<b>VMWare image (Not preferred, not using the latest Arduino ESP32 release at this time)</b><br>