-
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
Fix lighting-app build error for nrf52840dongle #13285
Conversation
Restyled is blocking review due to workflow permission, not sure what I need to do, would still appreciate if this one gets looked at. |
@lmpprk, try these changes: lmpprk#1. Line 44 replaces the tab with 4 spaces. Line 47 double quotes Restyled is trying to force push the workflow file since it is part of the commit but is blocked here: connectedhomeip/.restyled.yaml Line 43 in d4d57f6
If the fixes I linked are applied, I don't think restyled will find any changes and will therefore not try and push anything. These changes were found by running the scripts locally that were found to modify the source in https://restyled.io/gh/project-chip/repos/connectedhomeip/jobs/1394929. The flags used were extracted from https://github.com/lmpprk/connectedhomeip/blob/nrf-dongle/.restyled.yaml. docker run --rm -it -v $PWD/scripts/examples/nrfconnect_example.sh:/tmp/nrfconnect_example.sh restyled/restyler-shfmt:v3.0.1 shfmt -i 4 -ci /tmp/nrfconnect_example.sh > /tmp/nrfconnect_example.sh
vimdiff scripts/examples/nrfconnect_example.sh /tmp/nrfconnect_example.sh
docker run --rm -it -v $PWD/scripts/examples/nrfconnect_example.sh:/tmp/nrfconnect_example.sh restyled/restyler-shellharden:v4.1.1-2 shellharden --transform /tmp/nrfconnect_example.sh > /tmp/nrfconnect_example.sh
vimdiff scripts/examples/nrfconnect_example.sh /tmp/nrfconnect_example.sh |
For tests, run them and replace with the generated files. I do something like: gn gen aabb
cd aabb
ninja -t targets | grep script | grep test # Because I always forget what target to run
ninja scripts/build:build_examples.tests This will tell you what is different and you can copy the expected files into |
PR #13285: Size comparison from b81facc to 3134ce5 Increases above 0.2%:
Increases (7 builds for nrfconnect)
Decreases (7 builds for nrfconnect)
Full report (31 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
|
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.
Thanks for the fix! Just have one comment on including the board overlays.
PR #13285: Size comparison from b81facc to 35ddfef Increases above 0.2%:
Increases (6 builds for k32w, linux, qpg, telink)
Decreases (4 builds for k32w, qpg, telink)
Full report (8 builds for k32w, linux, qpg, telink)
|
PR #13285: Size comparison from 0e5bc69 to e65ed93 Full report (14 builds for efr32, k32w, linux, p6, qpg, telink)
|
PR #13285: Size comparison from 36a759d to 1e97bf3 Full report (21 builds for efr32, esp32, k32w, linux, mbed, p6, qpg, telink)
|
/rebase |
1e97bf3
to
82c892a
Compare
PR #13285: Size comparison from f2c2650 to 82c892a Increases above 0.2%:
Increases (7 builds for nrfconnect)
Decreases (6 builds for nrfconnect)
Full report (31 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
|
* Update for building nrf52840dongle with zephyr 2.7 * Fix example script not loading the board overlays * restyle update * Use array for params avoid empty string in param * fix style * update to support nrf52840 dongle * fix for restyle * limit dongle to lighting-app target; update test data * avoid empty args; fix root path * fix CMakeList.txt isntead of fixing the scripts
Problem
What is being fixed?
The nrf light example app gets error when building for
nrf52840dongle_nrf52840
with following unrecognized symbols in kconfigChange overview
CONFIG_USB
withCONFIG_USB_DEVICE_STACK
CONFIG_USB_UART_CONSOLE
CONFIG_UART_SHELL_ON_DEV_NAME="CDC_ACM_0"
Build example nRF Connect SDK Lighting App on nRF52840 Dongle
in the nrfconnect example workflowboards/$BOARD.conf
file exists for the exampleTesting
How was this tested? (at least one bullet point required)
west build -b nrf52840dongle_nrf52840
built successfully