Andrew Geissler | f034379 | 2020-11-18 10:42:21 -0600 | [diff] [blame] | 1 | .. SPDX-License-Identifier: CC-BY-SA-2.0-UK |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 2 | |
| 3 | ***************** |
| 4 | Obtaining the SDK |
| 5 | ***************** |
| 6 | |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 7 | Working with the SDK components directly in a Yocto build |
| 8 | ========================================================= |
| 9 | |
| 10 | Please refer to section |
| 11 | ":ref:`sdk-manual/extensible:Setting up the Extensible SDK environment directly in a Yocto build`" |
| 12 | |
| 13 | Note that to use this feature effectively either a powerful build |
| 14 | machine, or a well-functioning sstate cache infrastructure is required: |
| 15 | otherwise significant time could be spent waiting for components to be built |
| 16 | by BitBake from source code. |
| 17 | |
| 18 | Working with standalone SDK Installers |
| 19 | ====================================== |
| 20 | |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 21 | Locating Pre-Built SDK Installers |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 22 | --------------------------------- |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 23 | |
| 24 | You can use existing, pre-built toolchains by locating and running an |
| 25 | SDK installer script that ships with the Yocto Project. Using this |
| 26 | method, you select and download an architecture-specific SDK installer |
| 27 | and then run the script to hand-install the toolchain. |
| 28 | |
| 29 | Follow these steps to locate and hand-install the toolchain: |
| 30 | |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 31 | #. *Go to the Installers Directory:* Go to |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 32 | :yocto_dl:`/releases/yocto/yocto-&DISTRO;/toolchain/` |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 33 | |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 34 | #. *Open the Folder for Your Build Host:* Open the folder that matches |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 35 | your :term:`Build Host` (i.e. |
| 36 | ``i686`` for 32-bit machines or ``x86_64`` for 64-bit machines). |
| 37 | |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 38 | #. *Locate and Download the SDK Installer:* You need to find and |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 39 | download the installer appropriate for your build host, target |
| 40 | hardware, and image type. |
| 41 | |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 42 | The installer files (``*.sh``) follow this naming convention:: |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 43 | |
| 44 | poky-glibc-host_system-core-image-type-arch-toolchain[-ext]-release.sh |
| 45 | |
| 46 | Where: |
| 47 | host_system is a string representing your development system: |
| 48 | "i686" or "x86_64" |
| 49 | |
| 50 | type is a string representing the image: |
| 51 | "sato" or "minimal" |
| 52 | |
| 53 | arch is a string representing the target architecture: |
Andrew Geissler | 3b8a17c | 2021-04-15 15:55:55 -0500 | [diff] [blame] | 54 | "aarch64", "armv5e", "core2-64", "cortexa8hf-neon", "i586", "mips32r2", |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 55 | "mips64", or "ppc7400" |
| 56 | |
| 57 | release is the version of Yocto Project. |
| 58 | |
| 59 | NOTE: |
| 60 | The standard SDK installer does not have the "-ext" string as |
| 61 | part of the filename. |
| 62 | |
| 63 | |
| 64 | The toolchains provided by the Yocto |
| 65 | Project are based off of the ``core-image-sato`` and |
| 66 | ``core-image-minimal`` images and contain libraries appropriate for |
| 67 | developing against those images. |
| 68 | |
| 69 | For example, if your build host is a 64-bit x86 system and you need |
| 70 | an extended SDK for a 64-bit core2 target, go into the ``x86_64`` |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 71 | folder and download the following installer:: |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 72 | |
Andrew Geissler | d1e8949 | 2021-02-12 15:35:20 -0600 | [diff] [blame] | 73 | poky-glibc-x86_64-core-image-sato-core2-64-toolchain-ext-&DISTRO;.sh |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 74 | |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 75 | #. *Run the Installer:* Be sure you have execution privileges and run |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 76 | the installer. Following is an example from the ``Downloads`` |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 77 | directory:: |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 78 | |
Andrew Geissler | d1e8949 | 2021-02-12 15:35:20 -0600 | [diff] [blame] | 79 | $ ~/Downloads/poky-glibc-x86_64-core-image-sato-core2-64-toolchain-ext-&DISTRO;.sh |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 80 | |
| 81 | During execution of the script, you choose the root location for the |
Andrew Geissler | 3b8a17c | 2021-04-15 15:55:55 -0500 | [diff] [blame] | 82 | toolchain. See the |
| 83 | ":ref:`sdk-manual/appendix-obtain:installed standard sdk directory structure`" |
| 84 | section and the |
| 85 | ":ref:`sdk-manual/appendix-obtain:installed extensible sdk directory structure`" |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 86 | section for more information. |
| 87 | |
| 88 | Building an SDK Installer |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 89 | ------------------------- |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 90 | |
| 91 | As an alternative to locating and downloading an SDK installer, you can |
| 92 | build the SDK installer. Follow these steps: |
| 93 | |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 94 | #. *Set Up the Build Environment:* Be sure you are set up to use BitBake |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 95 | in a shell. See the ":ref:`dev-manual/start:preparing the build host`" section |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 96 | in the Yocto Project Development Tasks Manual for information on how |
| 97 | to get a build host ready that is either a native Linux machine or a |
| 98 | machine that uses CROPS. |
| 99 | |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 100 | #. *Clone the ``poky`` Repository:* You need to have a local copy of the |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 101 | Yocto Project :term:`Source Directory` |
| 102 | (i.e. a local |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 103 | ``poky`` repository). See the ":ref:`dev-manual/start:cloning the \`\`poky\`\` repository`" and |
| 104 | possibly the ":ref:`dev-manual/start:checking out by branch in poky`" and |
| 105 | ":ref:`dev-manual/start:checking out by tag in poky`" sections |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 106 | all in the Yocto Project Development Tasks Manual for information on |
| 107 | how to clone the ``poky`` repository and check out the appropriate |
| 108 | branch for your work. |
| 109 | |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 110 | #. *Initialize the Build Environment:* While in the root directory of |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 111 | the Source Directory (i.e. ``poky``), run the |
| 112 | :ref:`structure-core-script` environment |
| 113 | setup script to define the OpenEmbedded build environment on your |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 114 | build host:: |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 115 | |
| 116 | $ source oe-init-build-env |
| 117 | |
Patrick Williams | 2390b1b | 2022-11-03 13:47:49 -0500 | [diff] [blame] | 118 | Among other things, the script creates the :term:`Build Directory`, which |
| 119 | is ``build`` in this case and is located in the Source Directory. After |
| 120 | the script runs, your current working directory is set to the ``build`` |
| 121 | directory. |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 122 | |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 123 | #. *Make Sure You Are Building an Installer for the Correct Machine:* |
Patrick Williams | 2390b1b | 2022-11-03 13:47:49 -0500 | [diff] [blame] | 124 | Check to be sure that your :term:`MACHINE` variable in the ``local.conf`` |
| 125 | file in your :term:`Build Directory` matches the architecture |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 126 | for which you are building. |
| 127 | |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 128 | #. *Make Sure Your SDK Machine is Correctly Set:* If you are building a |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 129 | toolchain designed to run on an architecture that differs from your |
| 130 | current development host machine (i.e. the build host), be sure that |
Patrick Williams | 2390b1b | 2022-11-03 13:47:49 -0500 | [diff] [blame] | 131 | the :term:`SDKMACHINE` variable in the ``local.conf`` file in your |
| 132 | :term:`Build Directory` is correctly set. |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 133 | |
| 134 | .. note:: |
| 135 | |
| 136 | If you are building an SDK installer for the Extensible SDK, the |
Patrick Williams | 2390b1b | 2022-11-03 13:47:49 -0500 | [diff] [blame] | 137 | :term:`SDKMACHINE` value must be set for the architecture of the |
| 138 | machine you are using to build the installer. If :term:`SDKMACHINE` |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 139 | is not set appropriately, the build fails and provides an error |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 140 | message similar to the following:: |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 141 | |
Patrick Williams | 2390b1b | 2022-11-03 13:47:49 -0500 | [diff] [blame] | 142 | The extensible SDK can currently only be built for the same |
| 143 | architecture as the machine being built on --- :term:`SDK_ARCH` |
| 144 | is set to ``i686`` (likely via setting :term:`SDKMACHINE`) which is |
| 145 | different from the architecture of the build machine (``x86_64``). |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 146 | |
| 147 | |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 148 | #. *Build the SDK Installer:* To build the SDK installer for a standard |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 149 | SDK and populate the SDK image, use the following command form. Be |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 150 | sure to replace ``image`` with an image (e.g. "core-image-sato"):: |
| 151 | |
| 152 | $ bitbake image -c populate_sdk |
| 153 | |
| 154 | You can do the same for the extensible SDK using this command form:: |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 155 | |
| 156 | $ bitbake image -c populate_sdk_ext |
| 157 | |
| 158 | These commands produce an SDK installer that contains the sysroot |
| 159 | that matches your target root filesystem. |
| 160 | |
| 161 | When the ``bitbake`` command completes, the SDK installer will be in |
Patrick Williams | 2390b1b | 2022-11-03 13:47:49 -0500 | [diff] [blame] | 162 | ``tmp/deploy/sdk`` in the :term:`Build Directory`. |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 163 | |
| 164 | .. note:: |
| 165 | |
| 166 | - By default, the previous BitBake command does not build static |
| 167 | binaries. If you want to use the toolchain to build these types |
| 168 | of libraries, you need to be sure your SDK has the appropriate |
| 169 | static development libraries. Use the |
| 170 | :term:`TOOLCHAIN_TARGET_TASK` |
| 171 | variable inside your ``local.conf`` file before building the |
| 172 | SDK installer. Doing so ensures that the eventual SDK |
| 173 | installation process installs the appropriate library packages |
| 174 | as part of the SDK. Following is an example using ``libc`` |
Patrick Williams | 0ca19cc | 2021-08-16 14:03:13 -0500 | [diff] [blame] | 175 | static development libraries: TOOLCHAIN_TARGET_TASK:append = " |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 176 | libc-staticdev" |
| 177 | |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 178 | #. *Run the Installer:* You can now run the SDK installer from |
Patrick Williams | 2390b1b | 2022-11-03 13:47:49 -0500 | [diff] [blame] | 179 | ``tmp/deploy/sdk`` in the :term:`Build Directory`. Following is an example:: |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 180 | |
Andrew Geissler | 95ac1b8 | 2021-03-31 14:34:31 -0500 | [diff] [blame] | 181 | $ cd poky/build/tmp/deploy/sdk |
Andrew Geissler | d1e8949 | 2021-02-12 15:35:20 -0600 | [diff] [blame] | 182 | $ ./poky-glibc-x86_64-core-image-sato-core2-64-toolchain-ext-&DISTRO;.sh |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 183 | |
| 184 | During execution of the script, you choose the root location for the |
Andrew Geissler | 3b8a17c | 2021-04-15 15:55:55 -0500 | [diff] [blame] | 185 | toolchain. See the |
| 186 | ":ref:`sdk-manual/appendix-obtain:installed standard sdk directory structure`" |
| 187 | section and the |
| 188 | ":ref:`sdk-manual/appendix-obtain:installed extensible sdk directory structure`" |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 189 | section for more information. |
| 190 | |
| 191 | Extracting the Root Filesystem |
| 192 | ============================== |
| 193 | |
| 194 | After installing the toolchain, for some use cases you might need to |
| 195 | separately extract a root filesystem: |
| 196 | |
| 197 | - You want to boot the image using NFS. |
| 198 | |
| 199 | - You want to use the root filesystem as the target sysroot. |
| 200 | |
| 201 | - You want to develop your target application using the root filesystem |
| 202 | as the target sysroot. |
| 203 | |
| 204 | Follow these steps to extract the root filesystem: |
| 205 | |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 206 | #. *Locate and Download the Tarball for the Pre-Built Root Filesystem |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 207 | Image File:* You need to find and download the root filesystem image |
| 208 | file that is appropriate for your target system. These files are kept |
| 209 | in machine-specific folders in the |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 210 | :yocto_dl:`Index of Releases </releases/yocto/yocto-&DISTRO;/machines/>` |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 211 | in the "machines" directory. |
| 212 | |
| 213 | The machine-specific folders of the "machines" directory contain |
| 214 | tarballs (``*.tar.bz2``) for supported machines. These directories |
| 215 | also contain flattened root filesystem image files (``*.ext4``), |
| 216 | which you can use with QEMU directly. |
| 217 | |
| 218 | The pre-built root filesystem image files follow these naming |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 219 | conventions:: |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 220 | |
| 221 | core-image-profile-arch.tar.bz2 |
| 222 | |
| 223 | Where: |
| 224 | profile is the filesystem image's profile: |
| 225 | lsb, lsb-dev, lsb-sdk, minimal, minimal-dev, minimal-initramfs, |
| 226 | sato, sato-dev, sato-sdk, sato-sdk-ptest. For information on |
| 227 | these types of image profiles, see the "Images" chapter in |
| 228 | the Yocto Project Reference Manual. |
| 229 | |
| 230 | arch is a string representing the target architecture: |
| 231 | beaglebone-yocto, beaglebone-yocto-lsb, edgerouter, edgerouter-lsb, |
| 232 | genericx86, genericx86-64, genericx86-64-lsb, genericx86-lsb and qemu*. |
| 233 | |
| 234 | The root filesystems |
| 235 | provided by the Yocto Project are based off of the |
| 236 | ``core-image-sato`` and ``core-image-minimal`` images. |
| 237 | |
| 238 | For example, if you plan on using a BeagleBone device as your target |
| 239 | hardware and your image is a ``core-image-sato-sdk`` image, you can |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 240 | download the following file:: |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 241 | |
| 242 | core-image-sato-sdk-beaglebone-yocto.tar.bz2 |
| 243 | |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 244 | #. *Initialize the Cross-Development Environment:* You must ``source`` |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 245 | the cross-development environment setup script to establish necessary |
| 246 | environment variables. |
| 247 | |
| 248 | This script is located in the top-level directory in which you |
| 249 | installed the toolchain (e.g. ``poky_sdk``). |
| 250 | |
| 251 | Following is an example based on the toolchain installed in the |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 252 | ":ref:`sdk-manual/appendix-obtain:locating pre-built sdk installers`" section:: |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 253 | |
Andrew Geissler | 95ac1b8 | 2021-03-31 14:34:31 -0500 | [diff] [blame] | 254 | $ source poky_sdk/environment-setup-core2-64-poky-linux |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 255 | |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 256 | #. *Extract the Root Filesystem:* Use the ``runqemu-extract-sdk`` |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 257 | command and provide the root filesystem image. |
| 258 | |
| 259 | Following is an example command that extracts the root filesystem |
| 260 | from a previously built root filesystem image that was downloaded |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 261 | from the :yocto_dl:`Index of Releases </releases/yocto/yocto-&DISTRO;/machines/>`. |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 262 | This command extracts the root filesystem into the ``core2-64-sato`` |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 263 | directory:: |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 264 | |
| 265 | $ runqemu-extract-sdk ~/Downloads/core-image-sato-sdk-beaglebone-yocto.tar.bz2 ~/beaglebone-sato |
| 266 | |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 267 | You could now point to the target sysroot at ``beaglebone-sato``. |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 268 | |
| 269 | Installed Standard SDK Directory Structure |
| 270 | ========================================== |
| 271 | |
| 272 | The following figure shows the resulting directory structure after you |
| 273 | install the Standard SDK by running the ``*.sh`` SDK installation |
| 274 | script: |
| 275 | |
| 276 | .. image:: figures/sdk-installed-standard-sdk-directory.png |
Andrew Geissler | d583833 | 2022-05-27 11:33:10 -0500 | [diff] [blame] | 277 | :scale: 100% |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 278 | |
| 279 | The installed SDK consists of an environment setup script for the SDK, a |
| 280 | configuration file for the target, a version file for the target, and |
| 281 | the root filesystem (``sysroots``) needed to develop objects for the |
| 282 | target system. |
| 283 | |
| 284 | Within the figure, italicized text is used to indicate replaceable |
| 285 | portions of the file or directory name. For example, install_dir/version |
| 286 | is the directory where the SDK is installed. By default, this directory |
| 287 | is ``/opt/poky/``. And, version represents the specific snapshot of the |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 288 | SDK (e.g. &DISTRO;). Furthermore, target represents the target architecture |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 289 | (e.g. ``i586``) and host represents the development system's |
| 290 | architecture (e.g. ``x86_64``). Thus, the complete names of the two |
| 291 | directories within the ``sysroots`` could be ``i586-poky-linux`` and |
| 292 | ``x86_64-pokysdk-linux`` for the target and host, respectively. |
| 293 | |
| 294 | Installed Extensible SDK Directory Structure |
| 295 | ============================================ |
| 296 | |
| 297 | The following figure shows the resulting directory structure after you |
| 298 | install the Extensible SDK by running the ``*.sh`` SDK installation |
| 299 | script: |
| 300 | |
| 301 | .. image:: figures/sdk-installed-extensible-sdk-directory.png |
| 302 | :scale: 80% |
| 303 | :align: center |
| 304 | |
| 305 | The installed directory structure for the extensible SDK is quite |
| 306 | different than the installed structure for the standard SDK. The |
| 307 | extensible SDK does not separate host and target parts in the same |
| 308 | manner as does the standard SDK. The extensible SDK uses an embedded |
| 309 | copy of the OpenEmbedded build system, which has its own sysroots. |
| 310 | |
| 311 | Of note in the directory structure are an environment setup script for |
| 312 | the SDK, a configuration file for the target, a version file for the |
| 313 | target, and log files for the OpenEmbedded build system preparation |
| 314 | script run by the installer and BitBake. |
| 315 | |
| 316 | Within the figure, italicized text is used to indicate replaceable |
| 317 | portions of the file or directory name. For example, install_dir is the |
| 318 | directory where the SDK is installed, which is ``poky_sdk`` by default, |
| 319 | and target represents the target architecture (e.g. ``i586``). |