-
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
[platform] [WIP] make setup constants configurable in gn #2296
Conversation
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.
Should there also be some documentation changes to accompany this change?
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.
Can we pass this on the command line instead of environment?
Now you can use: ``` ./gn_build.sh --pincode=87654321 --discriminator=1024 ``` to specify the setup constants.
720aed3
to
fc3b314
Compare
Size increase report for "nrfconnect-example-build"
Full report output
|
Size increase report for "esp32-example-build"
Full report output
|
Size increase report for "gn_nrf-example-build"
Full report output
|
Size increase report for "gn_linux-example-build"
Full report output
|
DO NOT SUBMIT Causes build errors(macro redefinition) after #2270 is merged. We need to find a way to unify how we configure these macros. |
@@ -99,6 +99,25 @@ else | |||
echo "Hint: Set \$EFR32_SDK_ROOT to enable building for EFR32" | |||
fi | |||
|
|||
opts=$(getopt --longoptions "pincode:,discriminator:" -n "$0" --options "" -- "$@") |
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.
Disagree with creating new bespoke options here, instead we could just generically accept args:
gn_build.sh chip_device_config_use_test_setup_pin_code=12345
But really, if you want a custom configuration, I'd actually recommend not using gn_build.sh at all and following the documented instructions for creating a custom configuration.
gn_build.sh is more intended to build what CI builds, without any local deviations.
@gjc13 are you still working on this? |
* Fixed issue #561and #562 TSTAT-2.1 TSTAT-2.2 * Auto generated files * Restyled by whitespace * Disabled TSTAT tests in Darwin * Auto generated files * Restyled by whitespace * Fix #2296 * Auto generated files Co-authored-by: Restyled.io <[email protected]>
* Fixed issue #561and #562 TSTAT-2.1 TSTAT-2.2 * Auto generated files * Restyled by whitespace * Disabled TSTAT tests in Darwin * Auto generated files * Restyled by whitespace * Fix #2296 * Auto generated files Co-authored-by: Restyled.io <[email protected]>
Now you can use:
to specify the setup constants.
Also updated the device name in ble advertisements to make the devices more distinguishable.