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

Add python building build capabilities to build_examples.py #17341

Merged
merged 4 commits into from
Apr 14, 2022

Conversation

andy31415
Copy link
Contributor

Problem

Looking to have a very uniform build logic by using build_examples.

Change overview

Adds python binding compile support - both host and cross compile if applicable.

Testing

CI and unit tests were updated. Compiled locally too.

@github-actions
Copy link

github-actions bot commented Apr 13, 2022

PR #17341: Size comparison from 94e8197 to a87f565

Full report (22 builds for cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
platform target config section 94e8197 a87f565 change % change
cc13x2_26x2 lock-ftd LP_CC2652R7 (read only) 640435 640435 0 0.0
(read/write) 151212 151212 0 0.0
.bss 74144 74144 0 0.0
.data 3212 3212 0 0.0
.rodata 80227 80227 0 0.0
.text 559716 559716 0 0.0
lock-mtd LP_CC2652R7 (read only) 589171 589171 0 0.0
(read/write) 146932 146932 0 0.0
.bss 69864 69864 0 0.0
.data 3212 3212 0 0.0
.rodata 80107 80107 0 0.0
.text 508572 508572 0 0.0
pump-app LP_CC2652R7 (read only) 648527 648527 0 0.0
(read/write) 152508 152508 0 0.0
.bss 74640 74640 0 0.0
.data 3244 3244 0 0.0
.rodata 75415 75415 0 0.0
.text 572624 572624 0 0.0
pump-controller-app LP_CC2652R7 (read only) 642499 642499 0 0.0
(read/write) 152176 152176 0 0.0
.bss 74344 74344 0 0.0
.data 3208 3208 0 0.0
.rodata 79051 79051 0 0.0
.text 562960 562960 0 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 619042 619042 0 0.0
.app_xip_area 525752 525752 0 0.0
.bss 75956 75956 0 0.0
.data 684 684 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
lock cyw930739m2evb_01 (read/write) 576646 576646 0 0.0
.app_xip_area 484892 484892 0 0.0
.bss 74452 74452 0 0.0
.data 648 648 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 565170 565170 0 0.0
.app_xip_area 463788 463788 0 0.0
.bss 83784 83784 0 0.0
.data 564 564 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A (read only) 908052 908052 0 0.0
(read/write) 133144 133144 0 0.0
.bss 131104 131104 0 0.0
.data 2040 2040 0 0.0
.text 908044 908044 0 0.0
BRD4161A+rpc (read only) 942420 942420 0 0.0
(read/write) 149828 149828 0 0.0
.bss 147584 147584 0 0.0
.data 2244 2244 0 0.0
.text 942412 942412 0 0.0
window-app BRD4161A (read only) 844708 844708 0 0.0
(read/write) 131148 131148 0 0.0
.bss 129200 129200 0 0.0
.data 1948 1948 0 0.0
.text 844700 844700 0 0.0
esp32 all-clusters-app c3devkit (read only) 979972 979972 0 0.0
(read/write) 1397578 1397578 0 0.0
.dram0.bss 62624 62624 0 0.0
.dram0.data 14420 14420 0 0.0
.flash.rodata 201616 201616 0 0.0
.flash.text 979972 979972 0 0.0
.iram0.text 62016 62016 0 0.0
m5stack (read only) 1035459 1035459 0 0.0
(read/write) 465316 465316 0 0.0
.dram0.bss 68144 68144 0 0.0
.dram0.data 34152 34152 0 0.0
.flash.rodata 231184 231184 0 0.0
.flash.text 1030075 1030075 0 0.0
.iram0.text 123107 123107 0 0.0
k32w light k32w061+release (read/write) 687260 687260 0 0.0
.bss 78128 78128 0 0.0
.data 2036 2036 0 0.0
.text 601296 601296 0 0.0
lock k32w061+release (read/write) 691892 691892 0 0.0
.bss 78704 78704 0 0.0
.data 1996 1996 0 0.0
.text 605392 605392 0 0.0
linux chip-tool-no-interactive-ipv6only arm64 (read only) 10283492 10283492 0 0.0
(read/write) 492273 492273 0 0.0
.bss 41025 41025 0 0.0
.data 1168 1168 0 0.0
.data.rel.ro 388840 388840 0 0.0
.dynamic 560 560 0 0.0
.got 57440 57440 0 0.0
.init 24 24 0 0.0
.init_array 184 184 0 0.0
.rodata 513028 513028 0 0.0
.text 8667044 8667044 0 0.0
thermostat-no-ble arm64 (read only) 2353620 2353620 0 0.0
(read/write) 151121 151121 0 0.0
.bss 63153 63153 0 0.0
.data 1424 1424 0 0.0
.data.rel.ro 78752 78752 0 0.0
.dynamic 560 560 0 0.0
.got 4768 4768 0 0.0
.init 24 24 0 0.0
.init_array 368 368 0 0.0
.rodata 144548 144548 0 0.0
.text 1980496 1980496 0 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2368516 2368516 0 0.0
.bss 185236 185236 0 0.0
.data 5840 5840 0 0.0
.text 1331116 1331116 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1163459 1163459 0 0.0
bss 136528 136528 0 0.0
rodata 147364 147364 0 0.0
text 800940 800940 0 0.0
p6 all-clusters-app default (read/write) 2515120 2515120 0 0.0
.bss 118640 118640 0 0.0
.data 2768 2768 0 0.0
.text 1473384 1473384 0 0.0
light-app default (read/write) 2415592 2415592 0 0.0
.bss 112136 112136 0 0.0
.data 2576 2576 0 0.0
.text 1373856 1373856 0 0.0
lock-app default (read/write) 2379160 2379160 0 0.0
.bss 111880 111880 0 0.0
.data 2536 2536 0 0.0
.text 1337424 1337424 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 801516 801516 0 0.0
bss 69988 69988 0 0.0
noinit 40416 40416 0 0.0
text 570132 570132 0 0.0

Copy link
Contributor

@mrjerryjohns mrjerryjohns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great, thanks @andreilitvin for turning this around so quickly.

@github-actions
Copy link

github-actions bot commented Apr 13, 2022

PR #17341: Size comparison from 94e8197 to dc6c9a3

Increases (8 builds for efr32, esp32, mbed, nrfconnect, telink)
platform target config section 94e8197 dc6c9a3 change % change
efr32 lighting-app BRD4161A (read only) 908052 908068 16 0.0
.text 908044 908060 16 0.0
BRD4161A+rpc (read only) 942420 942436 16 0.0
.text 942412 942428 16 0.0
window-app BRD4161A (read only) 844708 844724 16 0.0
.text 844700 844716 16 0.0
esp32 all-clusters-app c3devkit (read only) 979972 979976 4 0.0
.flash.text 979972 979976 4 0.0
m5stack (read only) 1035459 1035487 28 0.0
.flash.text 1030075 1030103 28 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read/write) 2368516 2369412 896 0.0
.text 1331116 1332012 896 0.1
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1163459 1163491 32 0.0
text 800940 800968 28 0.0
telink lighting-app tlsr9518adk80d (read/write) 801516 801524 8 0.0
text 570132 570136 4 0.0
Decreases (4 builds for cc13x2_26x2, cyw30739, linux)
platform target config section 94e8197 dc6c9a3 change % change
cc13x2_26x2 pump-app LP_CC2652R7 (read only) 648527 648519 -8 -0.0
.text 572624 572616 -8 -0.0
cyw30739 lock cyw930739m2evb_01 (read/write) 576646 576638 -8 -0.0
.app_xip_area 484892 484884 -8 -0.0
linux chip-tool-no-interactive-ipv6only arm64 (read only) 10283492 10283348 -144 -0.0
.text 8667044 8666900 -144 -0.0
thermostat-no-ble arm64 (read only) 2353620 2353476 -144 -0.0
.text 1980496 1980352 -144 -0.0
Full report (22 builds for cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
platform target config section 94e8197 dc6c9a3 change % change
cc13x2_26x2 lock-ftd LP_CC2652R7 (read only) 640435 640435 0 0.0
(read/write) 151212 151212 0 0.0
.bss 74144 74144 0 0.0
.data 3212 3212 0 0.0
.rodata 80227 80227 0 0.0
.text 559716 559716 0 0.0
lock-mtd LP_CC2652R7 (read only) 589171 589171 0 0.0
(read/write) 146932 146932 0 0.0
.bss 69864 69864 0 0.0
.data 3212 3212 0 0.0
.rodata 80107 80107 0 0.0
.text 508572 508572 0 0.0
pump-app LP_CC2652R7 (read only) 648527 648519 -8 -0.0
(read/write) 152508 152508 0 0.0
.bss 74640 74640 0 0.0
.data 3244 3244 0 0.0
.rodata 75415 75415 0 0.0
.text 572624 572616 -8 -0.0
pump-controller-app LP_CC2652R7 (read only) 642499 642499 0 0.0
(read/write) 152176 152176 0 0.0
.bss 74344 74344 0 0.0
.data 3208 3208 0 0.0
.rodata 79051 79051 0 0.0
.text 562960 562960 0 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 619042 619042 0 0.0
.app_xip_area 525752 525752 0 0.0
.bss 75956 75956 0 0.0
.data 684 684 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
lock cyw930739m2evb_01 (read/write) 576646 576638 -8 -0.0
.app_xip_area 484892 484884 -8 -0.0
.bss 74452 74452 0 0.0
.data 648 648 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 565170 565170 0 0.0
.app_xip_area 463788 463788 0 0.0
.bss 83784 83784 0 0.0
.data 564 564 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A (read only) 908052 908068 16 0.0
(read/write) 133144 133144 0 0.0
.bss 131104 131104 0 0.0
.data 2040 2040 0 0.0
.text 908044 908060 16 0.0
BRD4161A+rpc (read only) 942420 942436 16 0.0
(read/write) 149828 149828 0 0.0
.bss 147584 147584 0 0.0
.data 2244 2244 0 0.0
.text 942412 942428 16 0.0
window-app BRD4161A (read only) 844708 844724 16 0.0
(read/write) 131148 131148 0 0.0
.bss 129200 129200 0 0.0
.data 1948 1948 0 0.0
.text 844700 844716 16 0.0
esp32 all-clusters-app c3devkit (read only) 979972 979976 4 0.0
(read/write) 1397578 1397578 0 0.0
.dram0.bss 62624 62624 0 0.0
.dram0.data 14420 14420 0 0.0
.flash.rodata 201616 201616 0 0.0
.flash.text 979972 979976 4 0.0
.iram0.text 62016 62016 0 0.0
m5stack (read only) 1035459 1035487 28 0.0
(read/write) 465316 465316 0 0.0
.dram0.bss 68144 68144 0 0.0
.dram0.data 34152 34152 0 0.0
.flash.rodata 231184 231184 0 0.0
.flash.text 1030075 1030103 28 0.0
.iram0.text 123107 123107 0 0.0
k32w light k32w061+release (read/write) 687260 687260 0 0.0
.bss 78128 78128 0 0.0
.data 2036 2036 0 0.0
.text 601296 601296 0 0.0
lock k32w061+release (read/write) 691892 691892 0 0.0
.bss 78704 78704 0 0.0
.data 1996 1996 0 0.0
.text 605392 605392 0 0.0
linux chip-tool-no-interactive-ipv6only arm64 (read only) 10283492 10283348 -144 -0.0
(read/write) 492273 492273 0 0.0
.bss 41025 41025 0 0.0
.data 1168 1168 0 0.0
.data.rel.ro 388840 388840 0 0.0
.dynamic 560 560 0 0.0
.got 57440 57440 0 0.0
.init 24 24 0 0.0
.init_array 184 184 0 0.0
.rodata 513028 513028 0 0.0
.text 8667044 8666900 -144 -0.0
thermostat-no-ble arm64 (read only) 2353620 2353476 -144 -0.0
(read/write) 151121 151121 0 0.0
.bss 63153 63153 0 0.0
.data 1424 1424 0 0.0
.data.rel.ro 78752 78752 0 0.0
.dynamic 560 560 0 0.0
.got 4768 4768 0 0.0
.init 24 24 0 0.0
.init_array 368 368 0 0.0
.rodata 144548 144548 0 0.0
.text 1980496 1980352 -144 -0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2368516 2369412 896 0.0
.bss 185236 185236 0 0.0
.data 5840 5840 0 0.0
.text 1331116 1332012 896 0.1
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1163459 1163491 32 0.0
bss 136528 136528 0 0.0
rodata 147364 147364 0 0.0
text 800940 800968 28 0.0
p6 all-clusters-app default (read/write) 2515120 2515120 0 0.0
.bss 118640 118640 0 0.0
.data 2768 2768 0 0.0
.text 1473384 1473384 0 0.0
light-app default (read/write) 2415592 2415592 0 0.0
.bss 112136 112136 0 0.0
.data 2576 2576 0 0.0
.text 1373856 1373856 0 0.0
lock-app default (read/write) 2379160 2379160 0 0.0
.bss 111880 111880 0 0.0
.data 2536 2536 0 0.0
.text 1337424 1337424 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 801516 801524 8 0.0
bss 69988 69988 0 0.0
noinit 40416 40416 0 0.0
text 570132 570136 4 0.0

@andy31415 andy31415 merged commit ea4c3dd into project-chip:master Apr 14, 2022
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.

3 participants