-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Determine build tools & args based on yocto sdk env setup script (#19369
) Previously, the yocto SDK for i.MX 8M devices of version 5.10-hardknott is the only one to be supported, the build tools and arguments are hard-coded. Now to support different versions of SDKs for different devices, read from the SDK env setup script to get info about build tools and arguments. env PKG_CONFIG_PATH is removed because with the gn arg sysroot correctly set the package config path info can be retrieved automatically in the build system. For debug build, to eliminate warnings, optimize_debug is set. With this patch applied, example commands to build the binaries are: export IMX_SDK_ROOT=/opt/fsl-imx-xwayland/5.15-kirkstone source scripts/activate.sh ./scripts/build/build_examples.py --target imx-all-clusters-app build ./scripts/build/build_examples.py --target \ imx-all-clusters-app-release build ./scripts/examples/imxlinux_example.sh \ examples/all-clusters-app/linux \ examples/all-clusters-app/linux/out/aarch64 ./scripts/examples/imxlinux_example.sh \ examples/all-clusters-app/linux \ examples/all-clusters-app/linux/out/aarch64 debug if the value of shell env IMX_SDK_ROOT is "IMX_SDK_ROOT", then it is in CI test, use the default value from 5.10 5.10-hardknott to pass the test. Change-Id: I3e2a30f56a95bb13cbf43855c8edeeb9e63469eb Signed-off-by: faqiang.zhu <faqiang.zhu@nxp.com> Restyled by shellharden Restyled by shfmt Restyled by autopep8
- Loading branch information
1 parent
278e35f
commit 3264212
Showing
3 changed files
with
184 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.