=== Clone the repositories ===
* clone ''recursively'' the Boot repositories
<pre class="workstation-terminal">
dvdk@vagrant:~/desk-mx-l$ git clone --recursive git@git.dave.eu:desk-mx-l/desk-mx8-mkimage.git
</pre>
* update the submodule (i.e. sync the sub-repositories)
<pre class="workstation-terminal">
dvdk@vagrant:~/desk-mx-l/desk-mx8-mkimage$ git submodule update
Cloning into '/home/dvdk/desk-mx-l/desk-mx8-mkimage/imx-atf'...
Cloning into '/home/dvdk/desk-mx-l/desk-mx8-mkimage/imx-mkimage'...
Cloning into '/home/dvdk/desk-mx-l/desk-mx8-mkimage/u-boot-imx'...
Submodule path 'imx-atf': checked out 'a72158b5e10527b9e13a64f8305b4210423fa09b'
Submodule path 'imx-mkimage': checked out '8947fea369ab3932259630232cfb9f87b8f9dda1'
Submodule path 'u-boot-imx': checked out '2af0221006d686ae561a68f324c56bf2da3953ad'
dvdk@vagrant:~/desk-mx-l/desk-mx8-mkimage$
</pre>
In case of ca-certificates failures, which may appears during https access to some repo:
<pre>
fatal: unable to access 'https://source.codeaurora.org/external/imx/imx-mkimage.git/': server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
fatal: clone of 'https://source.codeaurora.org/external/imx/imx-mkimage.git' into submodule path '/home/dvdk/desk-mx-l/desk-mx8-mkimage/imx-mkimage' failed
Failed to clone 'imx-mkimage'. Retry scheduled
...
</pre>
a possible solution is to disable the SSL verification setting:
export GIT_SSL_NO_VERIFY=1
=== Enable the cross-compilation ===
* configure the build environment for cross-compilation