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

Imx build update 0424 #17675

Merged
merged 2 commits into from
Apr 25, 2022
Merged

Conversation

FaqiangZhu-nxp
Copy link
Contributor

This pulle request have two commits to do below two things:

  1. the "imxlinux_example.sh" previously uses the shell envs exported in the imx yocto SDK setup script. The setup script exports too many shell envs which pollute the matter developemnt env. make this script only depend on one shell env named "IMX_SDK_ROOT" which specifies the path of the installed SDK.
  2. update the help script about how to build linux examples with the imx yocto SDK. remove the part of how to build examples with individual gn and ninja commands. describe how to build the examples with build_examples.py and imxlinux_example.sh

@github-actions
Copy link

github-actions bot commented Apr 24, 2022

PR #17675: Size comparison from 0cbfaec to 58d57e6

Full report (32 builds for cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
platform target config section 0cbfaec 58d57e6 change % change
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 690967 690967 0 0.0
(read/write) 161960 161960 0 0.0
.bss 75912 75912 0 0.0
.data 3396 3396 0 0.0
.rodata 106015 106015 0 0.0
.text 584472 584472 0 0.0
lock-ftd LP_CC2652R7 (read only) 677331 677331 0 0.0
(read/write) 166564 166564 0 0.0
.bss 73936 73936 0 0.0
.data 3220 3220 0 0.0
.rodata 98787 98787 0 0.0
.text 578060 578060 0 0.0
lock-mtd LP_CC2652R7 (read only) 626083 626083 0 0.0
(read/write) 146732 146732 0 0.0
.bss 69656 69656 0 0.0
.data 3220 3220 0 0.0
.rodata 98667 98667 0 0.0
.text 526924 526924 0 0.0
pump-app LP_CC2652R7 (read only) 649847 649847 0 0.0
(read/write) 152532 152532 0 0.0
.bss 74400 74400 0 0.0
.data 3252 3252 0 0.0
.rodata 75631 75631 0 0.0
.text 573728 573728 0 0.0
pump-controller-app LP_CC2652R7 (read only) 642835 642835 0 0.0
(read/write) 151944 151944 0 0.0
.bss 74104 74104 0 0.0
.data 3216 3216 0 0.0
.rodata 78771 78771 0 0.0
.text 563576 563576 0 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 618118 618118 0 0.0
.app_xip_area 525124 525124 0 0.0
.bss 75652 75652 0 0.0
.data 692 692 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
lock cyw930739m2evb_01 (read/write) 613066 613066 0 0.0
.app_xip_area 521552 521552 0 0.0
.bss 74204 74204 0 0.0
.data 656 656 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 565710 565710 0 0.0
.app_xip_area 464608 464608 0 0.0
.bss 83496 83496 0 0.0
.data 568 568 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A (read only) 905848 905848 0 0.0
(read/write) 129392 129392 0 0.0
.bss 127344 127344 0 0.0
.data 2044 2044 0 0.0
.text 905840 905840 0 0.0
BRD4161A+rpc (read only) 940264 940264 0 0.0
(read/write) 146072 146072 0 0.0
.bss 143824 143824 0 0.0
.data 2248 2248 0 0.0
.text 940256 940256 0 0.0
window-app BRD4161A (read only) 843320 843320 0 0.0
(read/write) 127480 127480 0 0.0
.bss 125520 125520 0 0.0
.data 1956 1956 0 0.0
.text 843312 843312 0 0.0
esp32 all-clusters-app c3devkit (read only) 997972 997972 0 0.0
(read/write) 1468074 1468074 0 0.0
.dram0.bss 62640 62640 0 0.0
.dram0.data 14428 14428 0 0.0
.flash.rodata 206560 206560 0 0.0
.flash.text 997972 997972 0 0.0
.iram0.text 62020 62020 0 0.0
m5stack (read only) 1052155 1052155 0 0.0
(read/write) 470080 470080 0 0.0
.dram0.bss 68160 68160 0 0.0
.dram0.data 34168 34168 0 0.0
.flash.rodata 235916 235916 0 0.0
.flash.text 1046771 1046771 0 0.0
.iram0.text 123107 123107 0 0.0
k32w light k32w061+release (read/write) 684112 684112 0 0.0
.bss 77656 77656 0 0.0
.data 2000 2000 0 0.0
.text 598656 598656 0 0.0
lock k32w061+release (read/write) 725204 725204 0 0.0
.bss 78288 78288 0 0.0
.data 1960 1960 0 0.0
.text 639156 639156 0 0.0
linux all-clusters-app debug (read only) 2727929 2727929 0 0.0
(read/write) 149600 149600 0 0.0
.bss 59936 59936 0 0.0
.data 1984 1984 0 0.0
.data.rel.ro 81624 81624 0 0.0
.dynamic 608 608 0 0.0
.got 4448 4448 0 0.0
.init 27 27 0 0.0
.init_array 984 984 0 0.0
.rodata 233221 233221 0 0.0
.text 2319986 2319986 0 0.0
bridge-app debug+rpc (read only) 1841757 1841757 0 0.0
(read/write) 91984 91984 0 0.0
.bss 44136 44136 0 0.0
.data 3072 3072 0 0.0
.data.rel.ro 39704 39704 0 0.0
.dynamic 592 592 0 0.0
.got 3920 3920 0 0.0
.init 27 27 0 0.0
.init_array 544 544 0 0.0
.rodata 148961 148961 0 0.0
.text 1573797 1573797 0 0.0
chip-tool debug (read only) 10938197 10938197 0 0.0
(read/write) 375728 375728 0 0.0
.bss 22592 22592 0 0.0
.data 1136 1136 0 0.0
.data.rel.ro 345768 345768 0 0.0
.dynamic 624 624 0 0.0
.got 4936 4936 0 0.0
.init 27 27 0 0.0
.init_array 648 648 0 0.0
.rodata 547189 547189 0 0.0
.text 9551285 9551285 0 0.0
chip-tool-no-interactive-ipv6only arm64 (read only) 10549724 10549724 0 0.0
(read/write) 497633 497633 0 0.0
.bss 40865 40865 0 0.0
.data 1192 1192 0 0.0
.data.rel.ro 393088 393088 0 0.0
.dynamic 560 560 0 0.0
.got 58680 58680 0 0.0
.init 24 24 0 0.0
.init_array 184 184 0 0.0
.rodata 521052 521052 0 0.0
.text 8911012 8911012 0 0.0
lighting-app debug+rpc (read only) 2319241 2319241 0 0.0
(read/write) 128080 128080 0 0.0
.bss 50048 50048 0 0.0
.data 1984 1984 0 0.0
.data.rel.ro 70328 70328 0 0.0
.dynamic 608 608 0 0.0
.got 4304 4304 0 0.0
.init 27 27 0 0.0
.init_array 776 776 0 0.0
.rodata 183121 183121 0 0.0
.text 1969602 1969602 0 0.0
lock-app debug (read only) 2145769 2145769 0 0.0
(read/write) 120280 120280 0 0.0
.bss 47808 47808 0 0.0
.data 1504 1504 0 0.0
.data.rel.ro 65368 65368 0 0.0
.dynamic 592 592 0 0.0
.got 4264 4264 0 0.0
.init 27 27 0 0.0
.init_array 720 720 0 0.0
.rodata 189441 189441 0 0.0
.text 1799330 1799330 0 0.0
ota-provider-app debug (read only) 2052345 2052345 0 0.0
(read/write) 115648 115648 0 0.0
.bss 48000 48000 0 0.0
.data 1672 1672 0 0.0
.data.rel.ro 60216 60216 0 0.0
.dynamic 608 608 0 0.0
.got 4464 4464 0 0.0
.init 27 27 0 0.0
.init_array 632 632 0 0.0
.rodata 173595 173595 0 0.0
.text 1721506 1721506 0 0.0
ota-requestor-app debug (read only) 2083561 2083561 0 0.0
(read/write) 118456 118456 0 0.0
.bss 48672 48672 0 0.0
.data 1928 1928 0 0.0
.data.rel.ro 62248 62248 0 0.0
.dynamic 592 592 0 0.0
.got 4304 4304 0 0.0
.init 27 27 0 0.0
.init_array 656 656 0 0.0
.rodata 169916 169916 0 0.0
.text 1754914 1754914 0 0.0
shell debug (read only) 2554425 2554425 0 0.0
(read/write) 150376 150376 0 0.0
.bss 67336 67336 0 0.0
.data 1360 1360 0 0.0
.data.rel.ro 75952 75952 0 0.0
.dynamic 592 592 0 0.0
.got 4168 4168 0 0.0
.init 27 27 0 0.0
.init_array 920 920 0 0.0
.rodata 215410 215410 0 0.0
.text 2177202 2177202 0 0.0
thermostat-no-ble arm64 (read only) 2361276 2361276 0 0.0
(read/write) 151137 151137 0 0.0
.bss 62897 62897 0 0.0
.data 1488 1488 0 0.0
.data.rel.ro 78992 78992 0 0.0
.dynamic 560 560 0 0.0
.got 4744 4744 0 0.0
.init 24 24 0 0.0
.init_array 368 368 0 0.0
.rodata 145164 145164 0 0.0
.text 1987072 1987072 0 0.0
tv-app debug (read only) 2837457 2837457 0 0.0
(read/write) 253360 253360 0 0.0
.bss 165944 165944 0 0.0
.data 4640 4640 0 0.0
.data.rel.ro 76560 76560 0 0.0
.dynamic 592 592 0 0.0
.got 4680 4680 0 0.0
.init 27 27 0 0.0
.init_array 912 912 0 0.0
.rodata 215371 215371 0 0.0
.text 2439746 2439746 0 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2410108 2410108 0 0.0
.bss 184996 184996 0 0.0
.data 5848 5848 0 0.0
.text 1372708 1372708 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1170627 1170627 0 0.0
bss 136264 136264 0 0.0
rodata 150052 150052 0 0.0
text 805652 805652 0 0.0
p6 all-clusters-app default (read/write) 2525136 2525136 0 0.0
.bss 118376 118376 0 0.0
.data 2784 2784 0 0.0
.text 1483400 1483400 0 0.0
light-app default (read/write) 2416904 2416904 0 0.0
.bss 111856 111856 0 0.0
.data 2584 2584 0 0.0
.text 1375168 1375168 0 0.0
lock-app default (read/write) 2421080 2421080 0 0.0
.bss 111656 111656 0 0.0
.data 2544 2544 0 0.0
.text 1379344 1379344 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 801032 801032 0 0.0
bss 69696 69696 0 0.0
noinit 40416 40416 0 0.0
text 570376 570376 0 0.0

Previously, before building the linux examples with the imx yocto SDK in
the imxlinux_example.sh, the yocto SDK setup script is firstly executed
to export many shell envs to be used. This pollutes the matter
development shell env.

In this patch, code the sysroot and compiler info with only one shell
env named IMX_SDK_ROOT.

Signed-off-by: faqiang.zhu <[email protected]>
Change-Id: Iae32c714824adbe072fdb2351a0f73df4e5a9c0f
Remove the description about how to build the examples with gn and ninja
commands, instead, describe how to build the examples with the tool
build_examples.py and imxlinux_example.sh.

Signed-off-by: faqiang.zhu <[email protected]>
Change-Id: Iafaca855680f373054ed593b9641924e8f5f66bc
@FaqiangZhu-nxp FaqiangZhu-nxp force-pushed the imx_build_update_0424 branch from 58d57e6 to 7fcfdf5 Compare April 25, 2022 12:39
@bzbarsky-apple bzbarsky-apple merged commit 6a8eedd into project-chip:master Apr 25, 2022
@dvagner dvagner deleted the imx_build_update_0424 branch October 24, 2022 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation review - approved scripts
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants