This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
resources:tools-software:linuxdsp:docs:quickstartguide:building-the-sdk [08 Nov 2021 15:13] Sammy Arschavir change quickstart_sc594_beta to quickstart_sc594 |
resources:tools-software:linuxdsp:docs:quickstartguide:building-the-sdk [24 May 2022 18:12] Sammy Arschavir remove pw prompt from output |
||
---|---|---|---|
Line 1: | Line 1: | ||
===== Building The SDK ===== | ===== Building The SDK ===== | ||
- | <note important>In order to build the SDK it is necessary to follow the instructions on [[resources:tools-software:linuxdsp:docs:quickstartguide:quickstart_sc594|Yocto Linux Quickstart Guide for ADSP-SC594]] for Setting Up Your Host PC.</note> | + | <note important>In order to build the SDK it is necessary to follow the relevant Quickstart Guide ([[resources:tools-software:linuxdsp:docs:quickstartguide:quickstart_sc589|SC589-EZKIT and SC589-MINI]], [[resources:tools-software:linuxdsp:docs:quickstartguide:quickstart_sc594|SC594-EZKIT]], [[resources:tools-software:linuxdsp:docs:quickstartguide:quickstart_sc598|SC598-EZKIT]]) for Setting Up Your Host PC.</note> |
==== Preparing the buildtool ==== | ==== 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. | + | Yocto requires the environment to be configured before building is possible. A setup-environment script in the griffin, gxp or gxp2 folder contains all the required environment settings. |
+ | <code> | ||
+ | $ source setup-environment -m adsp-sc589-ezkit | ||
+ | </code> | ||
+ | or | ||
+ | <code> | ||
+ | $ source setup-environment -m adsp-sc589-mini | ||
+ | </code> | ||
+ | or | ||
<code> | <code> | ||
$ source setup-environment -m adsp-sc594-som-ezkit | $ source setup-environment -m adsp-sc594-som-ezkit | ||
</code> | </code> | ||
+ | or | ||
+ | <code> | ||
+ | $ source setup-environment -m adsp-sc598-som-ezkit | ||
+ | </code> | ||
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. | 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. | ||
Line 16: | Line 27: | ||
\\ | \\ | ||
==== Building the SDK ==== | ==== Building the SDK ==== | ||
- | To build the SDK for the adsp-sc5xx-minimal image invoke bitbake from within the build directory created previously. | + | The SDK can be built for the adsp-sc5xx-minimal image or the adsp-sc5xx-full image. To build the SDK for the adsp-sc5xx-minimal image invoke bitbake from within the build directory created previously. |
<code> | <code> | ||
$ bitbake adsp-sc5xx-minimal -c populate_sdk | $ bitbake adsp-sc5xx-minimal -c populate_sdk | ||
+ | </code> | ||
+ | or for the adsp-sc5xx-full image | ||
+ | <code> | ||
+ | $ bitbake adsp-sc5xx-full -c populate_sdk | ||
</code> | </code> | ||
- | When the build has completed you will find a set of files in the <BUILD_DIR>/tmp/deploy/sdk directory | + | When the build has completed you will find a set of files in the <BUILD_DIR>/tmp/deploy/sdk directory. For the minimal image on SC594: |
<code> | <code> | ||
$ ls tmp/deploy/sdk | $ ls tmp/deploy/sdk | ||
Line 30: | Line 45: | ||
poky-glibc-x86_64-adsp-sc5xx-minimal-armv7at2hf-neon-adsp-sc594-som-ezkit-toolchain-3.1.8.testdata.json | poky-glibc-x86_64-adsp-sc5xx-minimal-armv7at2hf-neon-adsp-sc594-som-ezkit-toolchain-3.1.8.testdata.json | ||
</code> | </code> | ||
+ | or the full image on SC598: | ||
+ | <code> | ||
+ | $ ls tmp/deploy/sdk | ||
+ | poky-glibc-x86_64-adsp-sc5xx-full-aarch64-adsp-sc598-som-ezkit-toolchain-3.1.8.host.manifest | ||
+ | poky-glibc-x86_64-adsp-sc5xx-full-aarch64-adsp-sc598-som-ezkit-toolchain-3.1.8.sh | ||
+ | poky-glibc-x86_64-adsp-sc5xx-full-aarch64-adsp-sc598-som-ezkit-toolchain-3.1.8.target.manifest | ||
+ | poky-glibc-x86_64-adsp-sc5xx-full-aarch64-adsp-sc598-som-ezkit-toolchain-3.1.8.testdata.json | ||
+ | </code> | ||
+ | |||
- | 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. | + | The poky-glibc-x86_64-adsp-sc5xx-minimal-armv7at2hf-neon-adsp-sc594-som-ezkit-toolchain-3.1.8.sh and the poky-glibc-x86_64-adsp-sc5xx-full-aarch64-adsp-sc598-som-ezkit-toolchain-3.1.8.sh are self-extracting archives containing the SDK. |
\\ | \\ | ||
Line 37: | Line 61: | ||
Invoke the self-extracting archive. | Invoke the self-extracting archive. | ||
It will default to installing to /opt/poky/3.1.8 but gives you the option to select your own install folder during the installation. | It will default to installing to /opt/poky/3.1.8 but gives you the option to select your own install folder during the installation. | ||
+ | For the minimal image on SC594 | ||
<code> | <code> | ||
$ ./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.sh | ||
Line 49: | Line 73: | ||
Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g. | Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g. | ||
$ . /opt/poky/3.1.8/environment-setup-armv7at2hf-neon-poky-linux-gnueabi | $ . /opt/poky/3.1.8/environment-setup-armv7at2hf-neon-poky-linux-gnueabi | ||
+ | </code> | ||
+ | or for the full image on SC598 | ||
+ | <code> | ||
+ | ./tmp/deploy/sdk/poky-glibc-x86_64-adsp-sc5xx-full-aarch64-adsp-sc598-som-ezkit-toolchain-3.1.8.sh | ||
+ | Poky (Yocto Project Reference Distro) SDK installer version 3.1.8 | ||
+ | ================================================================= | ||
+ | Enter target directory for SDK (default: /opt/poky/3.1.8): | ||
+ | You are about to install the SDK to "/opt/poky/3.1.8". Proceed [Y/n]? y | ||
+ | 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. | ||
+ | $ . /opt/poky/3.1.8/environment-setup-aarch64-poky-linux | ||
</code> | </code> | ||
Your SDK is now installed. | Your SDK is now installed. |