Skip to content

Commit

Permalink
Esp32 build fix (#12700)
Browse files Browse the repository at this point in the history
* Fix up esp32 builds and make sure CI will catch future errors in using build_examples to compile

* Fix build instruction typo
  • Loading branch information
andy31415 authored and pull[bot] committed Feb 18, 2022
1 parent b4e2c6a commit 1079151
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
29 changes: 15 additions & 14 deletions .github/workflows/examples-esp32.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ jobs:
name: ESP32
timeout-minutes: 85

env:
BUILD_TYPE: esp32

runs-on: ubuntu-latest
if: github.actor != 'restyled-io[bot]'

Expand Down Expand Up @@ -62,29 +59,33 @@ jobs:
path: |
.environment/gn_out/.ninja_log
.environment/pigweed-venv/*.log
- name: Build example All Clusters App
timeout-minutes: 10
run: scripts/examples/esp_example.sh all-clusters-app sdkconfig_m5stack.defaults
- name: Copy aside build products
- name: Build some M5Stack variations
timeout-minutes: 20
run: |
./scripts/run_in_build_env.sh \
"./scripts/build/build_examples.py \
--enable-flashbundle \
--target-glob '*-m5stack-{all-clusters,all-clusters-rpc-ipv6only}' \
build \
--copy-artifacts-to out/artifacts \
"
- name: Prepare bloat report
run: |
mkdir -p example_binaries/$BUILD_TYPE-build
cp examples/all-clusters-app/esp32/build/chip-all-clusters-app.elf \
example_binaries/$BUILD_TYPE-build/chip-all-clusters-app.elf
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
esp32 m5stack all-clusters-app \
example_binaries/$BUILD_TYPE-build/chip-all-clusters-app.elf \
out/esp32-m5stack-all-clusters/chip-all-clusters-app.elf \
/tmp/bloat_reports/
- name: Build example All Clusters App C3
timeout-minutes: 10
run: scripts/examples/esp_example.sh all-clusters-app sdkconfig_c3devkit.defaults
- name: Copy aside build products
run: |
mkdir -p example_binaries/$BUILD_TYPE-build
mkdir -p example_binaries/esp32-build
cp examples/all-clusters-app/esp32/build/chip-all-clusters-app.elf \
example_binaries/$BUILD_TYPE-build/chip-all-clusters-app.elf
example_binaries/esp32-build/chip-all-clusters-app.elf
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
esp32 c3devkit all-clusters-app \
example_binaries/$BUILD_TYPE-build/chip-all-clusters-app.elf \
example_binaries/esp32-build/chip-all-clusters-app.elf \
/tmp/bloat_reports/
- name: Build example Pigweed App
timeout-minutes: 10
Expand Down
2 changes: 1 addition & 1 deletion scripts/build/runner/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def __init__(self, level):
self.daemon = False
self.level = level
self.fd_read, self.fd_write = os.pipe()
self.pipeReader = os.fdopen(self.fd_read)
self.pipeReader = os.fdopen(self.fd_read, errors='replace')
self.start()

def fileno(self):
Expand Down
1 change: 0 additions & 1 deletion src/platform/ESP32/InetPlatformConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,3 @@
#ifndef INET_CONFIG_NUM_UDP_ENDPOINTS
#define INET_CONFIG_NUM_UDP_ENDPOINTS CONFIG_NUM_UDP_ENDPOINTS
#endif // INET_CONFIG_NUM_UDP_ENDPOINTS
#define INET_CONFIG_ENABLE_IPV4 1

0 comments on commit 1079151

Please sign in to comment.