# Building yocto and legato using leaf

**URL:** <https://mangoh.discourse.group/t/building-yocto-and-legato-using-leaf/9429>\
**Category:** Uncategorized\
**Created:** [July 5, 2021, 5:29am UTC](https://mangoh.discourse.group/t/building-yocto-and-legato-using-leaf/9429 "2021-07-05T05:29:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![deadpoolcode](https://avatars.discourse-cdn.com/v4/letter/d/8797f3/32.png) [@deadpoolcode](https://mangoh.discourse.group/u/deadpoolcode)\
**Post date:** [July 5, 2021, 5:29am UTC](https://mangoh.discourse.group/t/building-yocto-and-legato-using-leaf/9429/1 "2021-07-05T05:29:06Z")

</div>

I have done the following steps:

wget [https://downloads.sierrawireless.com/tools/leaf/leaf\_latest.deb](https://downloads.sierrawireless.com/tools/leaf/leaf_latest.deb) -O /tmp/leaf\_latest.deb && sudo apt install /tmp/leaf\_latest.deb  
mkdir ~/Leaf; cd ~/Leaf  
leaf init  
leaf remote add external-stable [https://downloads.sierrawireless.com/leaf/legato/stable.json](https://downloads.sierrawireless.com/leaf/legato/stable.json)  
leaf search wp76  
leaf setup -p swi-wp76\_5.0.0  
leaf profile -v  
leaf getsrc swi-linux  
leaf getsrc swi-legato

all sources ware fetched OK

then when building I get this errorL  
I get this error  
$ make  
make: \*\*\* No targets specified and no makefile found. Stop.

please advice

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [July 5, 2021, 5:53am UTC](https://mangoh.discourse.group/t/building-yocto-and-legato-using-leaf/9429/2 "2021-07-05T05:53:05Z")

</div>

how about download yocto source by using github?

[Example on downloading WP76 yocto source from Github.docx](https://mangoh.discourse.group/uploads/short-url/kfWg8Zb7aayzdn3dIY7HT8Kf0Pn.docx) (90.5 KB)

---

<div class="post-metadata">

**Author:** ![deadpoolcode](https://avatars.discourse-cdn.com/v4/letter/d/8797f3/32.png) [@deadpoolcode](https://mangoh.discourse.group/u/deadpoolcode)\
**Post date:** [July 6, 2021, 4:43pm UTC](https://mangoh.discourse.group/t/building-yocto-and-legato-using-leaf/9429/3 "2021-07-06T16:43:16Z")

</div>

I managed now to fully build from source by downloading the Yocto source from GITHUB

---

<div class="post-metadata">

**Author:** ![jameswollaeger](https://avatars.discourse-cdn.com/v4/letter/j/e495f1/32.png) [@jameswollaeger](https://mangoh.discourse.group/u/jameswollaeger)\
**Post date:** [August 12, 2021, 4:43pm UTC](https://mangoh.discourse.group/t/building-yocto-and-legato-using-leaf/9429/4 "2021-08-12T16:43:09Z")

</div>

Has anyone run into the problem that when ‘repo sync’ is run, that it errors out because its using the python 2.7 instead of python3? Both are installed in my linux desktop. Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [August 13, 2021, 12:09am UTC](https://mangoh.discourse.group/t/building-yocto-and-legato-using-leaf/9429/5 "2021-08-13T00:09:12Z")

</div>

Yes, you need to use python3.

You can see the word document above.
