-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESP32: Deprecate make support #7034
Conversation
98ab556
to
9dc74e6
Compare
632e674
to
3d60ee3
Compare
Github CI fails with this error https://github.com/project-chip/connectedhomeip/runs/2639767629?check_suite_focus=true#step:4:504 How can it be resolved? |
3d60ee3
to
3578d21
Compare
I believe we need to update the docker image. Discussed with @dhrishi - I believe updating the esp32 images should work (and tie them to a commit instead of a branch). |
Is the README at https://github.com/project-chip/connectedhomeip/tree/master/examples/all-clusters-app/esp32 still accurate regarding the instructions on how to build esp32 image after this change? If not, can you please update it as well? Thanks. |
@arunbharadwaj We had previously removed the mention of "idf make" from the README.md so that the new folks use CMake. But we can check if things need to be cleaned up there. Thanks! cc @sweetymhaiske |
b6bdb75
to
529ec11
Compare
@dhrishi resolved. Thanks |
529ec11
to
5d6a8ad
Compare
LGTM. @andreilitvin Can you please review this? @rgoliver This PR is ready now. So you should be unblocked. |
scripts/examples/esp_example.sh
Outdated
@@ -31,16 +31,21 @@ fi | |||
|
|||
source "scripts/activate.sh" | |||
# shellcheck source=/dev/null | |||
source "$root"/idf.sh | |||
cd "$IDF_PATH" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does source "${IDF_PATH}/export.sh"
work to save some cd operations?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should work, IMO
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
scripts/examples/esp_example.sh
Outdated
for sdkconfig in "$root"/sdkconfig*.defaults; do | ||
# remove root path to get sdkconfig*.defaults name | ||
sdkconfig_name=${sdkconfig#"$root"/} | ||
rm -f "$root"/sdkconfig | ||
SDKCONFIG_DEFAULTS=$sdkconfig_name idf make -j8 -C "$root" defconfig "$@" | ||
idf make -j8 -C "$root" "$@" || { | ||
cd "$root" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it may be nice to avoid changing directories in case someone marks a script with "-e" (which is frequently used).
Could you run these in a subshell? Like:
(cd "$root"; idf.py -D SDKCONFIG_DEFAULTS="$sdkconfig_name" build)
(cd "$root"; idf.py build "$@") || {
# ...
I am not sure if the latter works, however if it does then we do not need the extra "cd" operations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@andy31415 it works. I have made the needed changes.
5d6a8ad
to
28aa2be
Compare
28aa2be
to
e521296
Compare
@sweetymhaiske - merge conflicts - should be able to merge once those are fixed. |
df60213
to
cae76d7
Compare
@andy31415 Resolved. |
cae76d7
to
4ad1033
Compare
@sweetymhaiske There seems to be a merge conflict again. |
4ad1033
to
7446848
Compare
7446848
to
faafa7c
Compare
Resolved. |
Problem
Change overview
Testing