# New comprehensive build script

**URL:** <https://forum.legato.io/t/new-comprehensive-build-script/3770>\
**Category:** Legato Linux distribution (Yocto project)\
**Created:** [October 15, 2018, 11:45am UTC](https://forum.legato.io/t/new-comprehensive-build-script/3770 "2018-10-15T11:45:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![makelinux](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/makelinux/32/557_2.png) [@makelinux](https://forum.legato.io/u/makelinux)\
**Post date:** [October 15, 2018, 11:45am UTC](https://forum.legato.io/t/new-comprehensive-build-script/3770/1 "2018-10-15T11:45:19Z")

</div>

Features:  
runs on fresh OS  
downloads and installs required OS packages  
installs sierra tools: toolchain, legato\_spm, swicwe  
builds Legato, mangOH, Yocto  
works on Ubuntu 16.04 and partially 18.04  
tested on wp76xx green, expandable for more boards

> **[Files · master · Costa Shulyupin / sierra · GitLab](https://gitlab.com/makelinux/sierra/tree/master)**
>
> A library of Sierra, mangOH and legato tools

Comments and patched would be appreciated.

---

<div class="post-metadata">

**Author:** ![mehdiALL1](https://avatars.discourse-cdn.com/v4/letter/m/f6c823/32.png) [@mehdiALL1](https://forum.legato.io/u/mehdiALL1)\
**Post date:** [November 7, 2018, 5:17pm UTC](https://forum.legato.io/t/new-comprehensive-build-script/3770/2 "2018-11-07T17:17:12Z")

</div>

Hello @makelinux

I tested this script, but I got the below error :

```
error: open("arch/arm/boot/dts/include/dt-bindings"): Permission denied
error: unable to index file arch/arm/boot/dts/include/dt-bindings
fatal: updating files failed
ERROR: ExpansionError during parsing /home/mallaoui/testForPIERRE/yocto/meta-swi/meta-swi-mdm9x28/recipes-kernel/linux/linux-quic_git.bb | ETA: 0:01:28
Traceback (most recent call last):
bb.data_smart.ExpansionError: Failure expanding variable do_compile[file-checksums], expression was ${@srctree_hash_files(d)} which triggered exception CalledProcessError: Command '['git', 'add', '.']' returned non-zero exit status 128

Summary: There were 6 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
Makefile:247: recipe for target 'image_bin' failed
make: *** [image_bin] Error 1

```

With automatic & manual steps

```
lsb_release -a : 

Distributor ID: Ubuntu
Description: Ubuntu 16.04.5 LTS
Release: 16.04
Codename: xenial

```

---

<div class="post-metadata">

**Author:** ![makelinux](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/makelinux/32/557_2.png) [@makelinux](https://forum.legato.io/u/makelinux)\
**Post date:** [November 8, 2018, 8:37am UTC](https://forum.legato.io/t/new-comprehensive-build-script/3770/3 "2018-11-08T08:37:26Z")

</div>

> [@mehdiALL1](#):
>
> ERROR: ExpansionError during parsing /home/mallaoui/testForPIERRE/yocto/meta-swi/meta-swi-mdm9x28/recipes-kernel/linux/linux-quic\_git.bb | ETA: 0:01:28

Thank you for using and testing the script!  
As I see, there is permission problem during deep kernel build.  
Usually such errors happens generally when you run build from root before build from user.  
Sometimes it could happen when you build directory is not local mount (nfs, etc ).  
Would you like to check ownership of `ls -l /home/mallaoui/testForPIERRE/yocto/kernel/arch/arm/boot/dts/include/dt-bindings` ?  
Then may be it is need to remove old build\_bin from root and start new build from user again.

Thanks

---

<div class="post-metadata">

**Author:** ![mehdiALL1](https://avatars.discourse-cdn.com/v4/letter/m/f6c823/32.png) [@mehdiALL1](https://forum.legato.io/u/mehdiALL1)\
**Post date:** [November 8, 2018, 10:49am UTC](https://forum.legato.io/t/new-comprehensive-build-script/3770/4 "2018-11-08T10:49:11Z")

</div>

@makelinux, yes it was a permission problem, now everything is well.  
In the near future, Sierra will provide a new workspace manager named Leaf.  
Leaf brings some exciting new features that will help you easily set up and install the software and tools needed to develop with the Legato Application Framework.

Thank’s  
Regard
