Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions patches/gcc-ar-ranlib.patch

This file was deleted.

15 changes: 6 additions & 9 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,8 @@ default_envs = esp32dev
; src_dir = ./src

[env:esp32dev]
; 22 Dec 2021: #feature/arduino-idf-master is 33ff4132ef9a79be50552bd89e6fd44b9518643c
platform = https://github.com/platformio/platform-espressif32.git#feature/arduino-idf-master
platform_packages =
; use upstream Git version
; 01 Jan 2022: #2.0.2 is caef4006af491130136b219c1205bdcf8f08bf2b
framework-arduino-esp32 @ https://github.com/espressif/arduino-esp32#2.0.2
platform = espressif32 @ 5.3.0
platform_packages = platformio/framework-arduinoespressif32@^3.20006.221224

board = esp32dev
framework = arduino
Expand All @@ -31,10 +27,11 @@ extra_scripts =
scripts/extra_linker_flags.py
; fix the platform package to use gcc-ar and gcc-ranlib to enable lto linker plugin
; more detail: https://embeddedartistry.com/blog/2020/04/13/prefer-gcc-ar-to-ar-in-your-buildsystems/
pre:scripts/apply_patches.py
pre:scripts/gcc_toolchain.py

; Not using OTAs for now, so this can be used to increase the flash capacity
; board_build.partitions = no_ota.csv
; TODO - using LTO we used to fit without changing partitions, need to investiagte how to achieve that again
board_build.partitions = no_ota.csv

build_flags =
-DCORE_DEBUG_LEVEL=0
Expand All @@ -58,8 +55,8 @@ build_flags =
-std=gnu++17
-Wall
-Wextra

-flto

build_unflags =
-std=gnu++11
; re-enable lto - afaik it was only disabled because of https://github.com/espressif/esp-idf/issues/3989
Expand Down
28 changes: 0 additions & 28 deletions scripts/apply_patches.py

This file was deleted.

6 changes: 6 additions & 0 deletions scripts/gcc_toolchain.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Import("env")

env.Replace(
AR="xtensa-esp32-elf-gcc-ar",
RANLIB="xtensa-esp32-elf-gcc-ranlib"
)