12.2. Fetching¶
Figure 12.1 Source Fetching with Details¶
The first stages of building a recipe are to fetch and unpack the source code. The do_fetch and do_unpack tasks fetch the source files and unpack them into the Build Directory. BitBake uses the SRC_URI variable to point to source files regardless of their location.
Fetching in Recipe¶
https://github.com/lipro-yocto/meta-lpn-apps (dummy, not yet)
The meta-lpn-apps layer may provides private (closed) recipes.
The following related SRC_URI may being used:
lib-utility_hg.bb:
"${CENTRAL_HG};module=lib_utility;branch=default;rev=${SRCREV};protocol=ssh"
lib-crypto_hg.bb:
"${CENTRAL_HG};module=lib_crypto;branch=default;rev=${SRCREV};protocol=ssh"
app-mcu-ctrl_hg.bb:
"${CENTRAL_HG};module=app_mcu_ctrl;branch=default;rev=${SRCREV};protocol=ssh"
boost_1.75.0.bb:
"https://dl.bintray.com/boostorg/release/${PV}/source/${BOOST_P}.tar.bz2"
For private recipes: SRCREV is set to SRCREV = "default"
and CENTRAL_HG should comes from e.g. meta/conf/layer.conf.