Skip to content

Commit

Permalink
Platform IO stage
Browse files Browse the repository at this point in the history
  • Loading branch information
rouing committed Dec 22, 2024
1 parent d1cf850 commit 47758c6
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 7 deletions.
6 changes: 6 additions & 0 deletions build.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Import("env")
env.AddCustomTarget(
"build-firmware",
["$BUILD_DIR/bootloader.bin","$BUILD_DIR/partitions.bin","$BUILD_DIR/firmware.bin"],
'pio pkg exec -p "tool-esptoolpy" -- esptool.py --chip ${BOARD_MCU} merge_bin --output Bruce_${PIOENV}.bin 0x0 ${BUILD_DIR}\\bootloader.bin 0x8000 ${BUILD_DIR}\\partitions.bin 0x10000 ${BUILD_DIR}\\firmware.bin'
)
25 changes: 18 additions & 7 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,21 @@ default_envs =
;uncomment to not use global dirs to avoid possible conflicts
;platforms_dir = .pio/platforms
;packages_dir = .pio/packages
;build_cache_dir = .pio/buildcache
;cache_dir = .pio/cache
build_cache_dir = .pio/buildcache
cache_dir = .pio/cache

extra_configs =
ports/*/platformio.ini
boards/*.ini
boards/*/*.ini

[env]
monitor_filters = esp32_exception_decoder
platform = espressif32
platform_packages =
framework-arduinoespressif32 @ https://github.com/bmorcelli/arduino-esp32/releases/download/2.0.17e/esp32-2.0.17e.zip
monitor_filters = esp32_exception_decoder, send_on_enter, colorize
framework = arduino
board_build.variants_dir = boards
board_build.filesystem = littlefs
build_flags =
-DBRUCE_VERSION='"dev"'
-DEEPROMSIZE=128
Expand All @@ -50,12 +57,16 @@ build_flags =
;-DRF_MODULE_GDO2=RADIOLIB_NC ; CC1101 pin GDO2
;-DRF_MODULE_INIT_STATUS=true

extra_scripts =
pre:patch.py
post:build.py

lib_deps =
WireGuard-ESP32
IRremoteESP8266
Time
LibSSH-ESP32
PCA9554
bakadave/PCA9554
https://github.com/bmorcelli/ESPping
https://github.com/rennancockles/PN532
https://github.com/rennancockles/MFRC522-I2C
Expand All @@ -69,8 +80,8 @@ lib_deps =
https://github.com/bmorcelli/rc-switch
ESP8266Audio
FFat
ESP8266SAM
TinyGPSPlus
earlephilhower/ESP8266SAM@^1.0.1
mikalhart/TinyGPSPlus
tinyu-zhao/FFT@^0.0.1
h2zero/NimBLE-Arduino@^1.4.0
nrf24/RF24 @ ^1.4.9
Expand Down

0 comments on commit 47758c6

Please sign in to comment.