Reader small image

You're reading from  Embedded Linux Development Using Yocto Project - Third Edition

Product typeBook
Published inApr 2023
PublisherPackt
ISBN-139781804615065
Edition3rd Edition
Right arrow
Authors (2):
Otavio Salvador
Otavio Salvador
author image
Otavio Salvador

Otavio Salvador loves technology and started his free software activities in 1999. In 2002, he founded O.S. Systems, a company focused on embedded system development services and consultancy worldwide, creating and maintaining customized BSPs, and helping companies with their product developments challenges. This resulted in his joining the OpenEmbedded community in 2008, when he became an active contributor to the OpenEmbedded project.
Read more about Otavio Salvador

Daiane Angolini
Daiane Angolini
author image
Daiane Angolini

Daiane Angolini has been working with embedded Linux since 2008. She has been working as an application engineer at NXP, acting on internal development, porting custom applications from Android, and on-site customer support for i.MX architectures in areas such as the Linux kernel, u-boot, Android, Yocto Project, and user-space applications. However, it was on the Yocto Project that she found her place.
Read more about Daiane Angolini

View More author details
Right arrow

Optimizing the source code download

To improve the robustness of source code download, Poky provides a mirror mechanism that can provide the following:

  • A centrally preferred server for download
  • A set of fallback servers

To provide this robust download mechanism, BitBake follows defined logic steps. During the build, the first BitBake step is to search for the source code within the local download directory (specified by DL_DIR). If this fails, the next step is to try the locations defined by the PREMIRRORS variable. Finally, BitBake searches the locations specified in the MIRRORS variable in a failure case. In summary, these steps are as follows:

  1. DL_DIR: Look for the download on the host machine.
  2. MIRRORS: Search for the download in a list of mirrors.
  3. PREMIRRORS: This is used to reduce the download from external servers and is usually used inside companies to reduce or forbid internet use.

For example, when configuring a local server, https...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Embedded Linux Development Using Yocto Project - Third Edition
Published in: Apr 2023Publisher: PacktISBN-13: 9781804615065

Authors (2)

author image
Otavio Salvador

Otavio Salvador loves technology and started his free software activities in 1999. In 2002, he founded O.S. Systems, a company focused on embedded system development services and consultancy worldwide, creating and maintaining customized BSPs, and helping companies with their product developments challenges. This resulted in his joining the OpenEmbedded community in 2008, when he became an active contributor to the OpenEmbedded project.
Read more about Otavio Salvador

author image
Daiane Angolini

Daiane Angolini has been working with embedded Linux since 2008. She has been working as an application engineer at NXP, acting on internal development, porting custom applications from Android, and on-site customer support for i.MX architectures in areas such as the Linux kernel, u-boot, Android, Yocto Project, and user-space applications. However, it was on the Yocto Project that she found her place.
Read more about Daiane Angolini