This shows you the differences between two versions of the page.
Previous revisionNext revision | |||
— | resources:tools-software:linuxdsp:docs:quickstartguide:building-the-sdk [08 Nov 2021 15:13] – change quickstart_sc594_beta to quickstart_sc594 Sammy Arschavir | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Building The SDK ===== | ||
+ | <note important> | ||
+ | |||
+ | ==== Preparing the buildtool ==== | ||
+ | Yocto requires the environment to be configured before building is possible. A setup-environment script in the gxp folder contains all the required environment settings. | ||
+ | |||
+ | < | ||
+ | $ source setup-environment -m adsp-sc594-som-ezkit | ||
+ | </ | ||
+ | |||
+ | Sourcing the script will configure your build environment and create a build folder along with a local build configuration file. See the Yocto Manual for further details. | ||
+ | |||
+ | <note important> | ||
+ | |||
+ | \\ | ||
+ | ==== Building the SDK ==== | ||
+ | To build the SDK for the adsp-sc5xx-minimal image invoke bitbake from within the build directory created previously. | ||
+ | |||
+ | < | ||
+ | $ bitbake adsp-sc5xx-minimal -c populate_sdk | ||
+ | </ | ||
+ | |||
+ | When the build has completed you will find a set of files in the < | ||
+ | < | ||
+ | $ ls tmp/ | ||
+ | poky-glibc-x86_64-adsp-sc5xx-minimal-armv7at2hf-neon-adsp-sc594-som-ezkit-toolchain-3.1.8.host.manifest | ||
+ | poky-glibc-x86_64-adsp-sc5xx-minimal-armv7at2hf-neon-adsp-sc594-som-ezkit-toolchain-3.1.8.sh | ||
+ | poky-glibc-x86_64-adsp-sc5xx-minimal-armv7at2hf-neon-adsp-sc594-som-ezkit-toolchain-3.1.8.target.manifest | ||
+ | poky-glibc-x86_64-adsp-sc5xx-minimal-armv7at2hf-neon-adsp-sc594-som-ezkit-toolchain-3.1.8.testdata.json | ||
+ | </ | ||
+ | |||
+ | The poky-glibc-x86_64-adsp-sc5xx-minimal-armv7at2hf-neon-adsp-sc594-som-ezkit-toolchain-3.1.8.sh is a self-extracting archive containing the SDK. | ||
+ | |||
+ | \\ | ||
+ | ==== Installing the SDK ==== | ||
+ | Invoke the self-extracting archive. | ||
+ | It will default to installing to / | ||
+ | |||
+ | < | ||
+ | $ ./ | ||
+ | Poky (Yocto Project Reference Distro) SDK installer version 3.1.8 | ||
+ | ================================================================= | ||
+ | Enter target directory for SDK (default: / | ||
+ | You are about to install the SDK to "/ | ||
+ | Extracting SDK...................................................................done | ||
+ | Setting it up...done | ||
+ | SDK has been successfully set up and is ready to be used. | ||
+ | Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g. | ||
+ | $ . / | ||
+ | </ | ||
+ | |||
+ | Your SDK is now installed. |