Skip to content
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

Adding a way to override feature flags (for commissioner discovery) for Python chip-device-ctrl tool #9757

Merged
merged 3 commits into from
Sep 22, 2021

Conversation

sharadb-amazon
Copy link
Contributor

Problem

The flags defined in src/platform/include/CHIPDeviceConfig.h could be overriden by various example apps, but not for the python controller. And we needed a way to set the commissioner discovery flags to true for the python controller.

Change overview

  • Creates a way to override feature flags for the python controller.
  • Sets CHIP_DEVICE_CONFIG_ENABLE_COMMISSIONER_DISCOVERY and CHIP_DEVICE_CONFIG_ENABLE_BOTH_COMMISSIONER_AND_COMMISSIONEE to 1

Testing

Tested against the minimal-mdns client and verified that the py chip-device-ctrl tool advertises itself as a commissioner after this config change.

@sharadb-amazon
Copy link
Contributor Author

optional features be able to be disabled without recompiling the code and that Linux should by default have a maximalist compile-time configuration and enable or disable features as appropriate at runtime.

Opened an issue to track this work: #9889

@andy31415 andy31415 merged commit a5731da into project-chip:master Sep 22, 2021
@sharadb-amazon sharadb-amazon deleted the py-conf branch September 22, 2021 19:59
andy31415 pushed a commit that referenced this pull request Sep 23, 2021
…or Python chip-device-ctrl tool (#9757)

* Overriding project_config_include_dirs for python chip-device-ctrl tool and setting commissioner discovery flags to 1

* Overriding chip_project_config_include_dirs directly in build_python.sh

* Restyled by shfmt

Co-authored-by: Restyled.io <[email protected]>
@franck-apple
Copy link

This seems to be breaking BLE provisioning in the TE6 branch. Need to remove it from the TE6 branch.

@andy31415
Copy link
Contributor

Revert done.

andy31415 pushed a commit that referenced this pull request Sep 24, 2021
…overy) for Python chip-device-ctrl tool (#9757)"

This reverts commit fd8a17f.
hank820 pushed a commit to hank820/connectedhomeip that referenced this pull request Sep 27, 2021
…or Python chip-device-ctrl tool (project-chip#9757)

* Overriding project_config_include_dirs for python chip-device-ctrl tool and setting commissioner discovery flags to 1

* Overriding chip_project_config_include_dirs directly in build_python.sh

* Restyled by shfmt

Co-authored-by: Restyled.io <[email protected]>
hank820 pushed a commit to hank820/connectedhomeip that referenced this pull request Sep 27, 2021
…overy) for Python chip-device-ctrl tool (project-chip#9757)"

This reverts commit fd8a17f.
mkardous-silabs added a commit to mkardous-silabs/connectedhomeip that referenced this pull request Sep 27, 2021
…overy) for Python chip-device-ctrl tool (project-chip#9757)"

This reverts commit a5731da.
TE-N-ElvenWang added a commit to TE-N-ElvenWang/connectedhomeip that referenced this pull request Sep 29, 2021
…overy) for Python chip-device-ctrl tool (project-chip#9757)"

This reverts commit fd8a17f.
mkardous-silabs added a commit to mkardous-silabs/connectedhomeip that referenced this pull request Oct 1, 2021
…overy) for Python chip-device-ctrl tool (project-chip#9757)"

This reverts commit a5731da.
mkardous-silabs added a commit to mkardous-silabs/connectedhomeip that referenced this pull request Oct 5, 2021
…overy) for Python chip-device-ctrl tool (project-chip#9757)"

This reverts commit a5731da.
mkardous-silabs added a commit to mkardous-silabs/connectedhomeip that referenced this pull request Oct 12, 2021
…overy) for Python chip-device-ctrl tool (project-chip#9757)"

This reverts commit a5731da.
mkardous-silabs added a commit to mkardous-silabs/connectedhomeip that referenced this pull request Oct 20, 2021
…overy) for Python chip-device-ctrl tool (project-chip#9757)"

This reverts commit a5731da.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants