# Question about Yocto build with IMA

**URL:** https://forum.legato.io/t/question-about-yocto-build-with-ima/6121
**Category:** Legato Linux distribution (Yocto project)
**Created:** [February 25, 2022, 3:19am UTC](https://forum.legato.io/t/question-about-yocto-build-with-ima/6121 "2022-02-25T03:19:04Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![babang.parhusip](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@babang.parhusip](https://forum.legato.io/u/babang.parhusip)
#### Post date: [February 25, 2022, 3:19am UTC](https://forum.legato.io/t/question-about-yocto-build-with-ima/6121/1 "2022-02-25T03:19:04Z")

</div>

I follow attached official Sierra-Wireless doc to build yocto for WP7603 module with IMA enabled. I have created the IMA related keys, follow the step till step 4.4.  
[AirPrime - WP76xx - Integrity Measurement Architecture Application Note - Rev1.0.pdf](https://forum.legato.io/uploads/short-url/3W06wEBcIkEQbHAtDSxzbU29PEF.pdf) (457.7 KB)

```auto
4.4 Yocto Build Process
Build all in Yocto with IMA support.
[user@x86-Linux]$ IMA_BUILD=1 IMA_CONFIG=<path-to>/ima.conf make <build-target>

```

My question:

1. What we should put in build-target parameter?
2. I tried just

> $ IMA\_BUILD=1 IMA\_CONFIG=/ima.conf make

And it finishes instantly without anything in console output, which is strange, I was expecting it to build the yocto linux which should take long time. Do I miss anything?

---

<div class="post-metadata">

### Author: ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)
#### Post date: [February 25, 2022, 4:18am UTC](https://forum.legato.io/t/question-about-yocto-build-with-ima/6121/2 "2022-02-25T04:18:38Z")

</div>

is this path correct???

IMA\_CONFIG=/ima.conf

---

<div class="post-metadata">

### Author: ![babang.parhusip](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@babang.parhusip](https://forum.legato.io/u/babang.parhusip)
#### Post date: [February 25, 2022, 4:30am UTC](https://forum.legato.io/t/question-about-yocto-build-with-ima/6121/3 "2022-02-25T04:30:49Z")

</div>

Yes correct, I simply did not make my true path used in my machine for privacy

---

<div class="post-metadata">

### Author: ![babang.parhusip](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@babang.parhusip](https://forum.legato.io/u/babang.parhusip)
#### Post date: [February 25, 2022, 4:31am UTC](https://forum.legato.io/t/question-about-yocto-build-with-ima/6121/4 "2022-02-25T04:31:43Z")

</div>

I was trying to show this, but this forum remove what is in between \<\>

![image](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/2X/8/858c0719580f59b10289d5a622216429b74f5d88.png)

---

<div class="post-metadata">

### Author: ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)
#### Post date: [February 25, 2022, 4:34am UTC](https://forum.legato.io/t/question-about-yocto-build-with-ima/6121/5 "2022-02-25T04:34:30Z")

</div>

are you compiling in R16?  
I can see the appsboot\_rw\_ima\_wp76xx.cwe is compiled out after  
IMA\_BUILD=1 IMA\_CONFIG=/home/owner/ima.conf make

---

<div class="post-metadata">

### Author: ![babang.parhusip](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@babang.parhusip](https://forum.legato.io/u/babang.parhusip)
#### Post date: [February 25, 2022, 4:56am UTC](https://forum.legato.io/t/question-about-yocto-build-with-ima/6121/6 "2022-02-25T04:56:08Z")

</div>

Yes r16. Could you give me the complete command(s) used to build please? How long did it take to complete?

---

<div class="post-metadata">

### Author: ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)
#### Post date: [February 25, 2022, 4:59am UTC](https://forum.legato.io/t/question-about-yocto-build-with-ima/6121/7 "2022-02-25T04:59:30Z")

</div>

didn’t i already give the command to you?

Maybe you can try “make clean” and “make” first

---

<div class="post-metadata">

### Author: ![babang.parhusip](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@babang.parhusip](https://forum.legato.io/u/babang.parhusip)
#### Post date: [February 25, 2022, 5:02am UTC](https://forum.legato.io/t/question-about-yocto-build-with-ima/6121/8 "2022-02-25T05:02:29Z")

</div>

> [@jyijyi](#):
>
> IMA\_BUILD=1 IMA\_CONFIG=/home/owner/ima.conf make

I did the same command and nothing happen. Did it produce build\_\* directory for you?  
I simply want to follow the official sierra wireless, but so far it does not work.

---

<div class="post-metadata">

### Author: ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)
#### Post date: [February 25, 2022, 5:14am UTC](https://forum.legato.io/t/question-about-yocto-build-with-ima/6121/9 "2022-02-25T05:14:24Z")

</div>

yes, I can see build\_bin folder  
Maybe you can try “make clean” and “make” first

---

<div class="post-metadata">

### Author: ![babang.parhusip](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@babang.parhusip](https://forum.legato.io/u/babang.parhusip)
#### Post date: [February 25, 2022, 5:17am UTC](https://forum.legato.io/t/question-about-yocto-build-with-ima/6121/10 "2022-02-25T05:17:29Z")

</div>

But I dont see how it build with IMA?

so are you saying the steps should be ?:

1. $ make clean
2. $ make
3. $ IMA\_BUILD=1 IMA\_CONFIG=\<path\>/ima.conf make

---

<div class="post-metadata">

### Author: ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)
#### Post date: [February 25, 2022, 5:21am UTC](https://forum.legato.io/t/question-about-yocto-build-with-ima/6121/11 "2022-02-25T05:21:40Z")

</div>

you can first try

1. $ make clean
2. $ make

see if there is yocto image come out.

---

<div class="post-metadata">

### Author: ![babang.parhusip](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@babang.parhusip](https://forum.legato.io/u/babang.parhusip)
#### Post date: [February 25, 2022, 5:24am UTC](https://forum.legato.io/t/question-about-yocto-build-with-ima/6121/12 "2022-02-25T05:24:40Z")

</div>

I did before it does generate yocto image. But now I want it with IMA.

It means at one time:  
$ make clean  
$ make

It generates yocto image and do testing.

Now I want with IMA:  
$ make clean  
$ IMA\_BUILD=1 IMA\_CONFIG=/ima.conf make  
Then nothing happen.

---

<div class="post-metadata">

### Author: ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)
#### Post date: [February 25, 2022, 5:30am UTC](https://forum.legato.io/t/question-about-yocto-build-with-ima/6121/13 "2022-02-25T05:30:04Z")

</div>

then you can try:

1. $ make clean
2. $ make
3. $ IMA\_BUILD=1 IMA\_CONFIG=/ima.conf make

---

<div class="post-metadata">

### Author: ![babang.parhusip](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@babang.parhusip](https://forum.legato.io/u/babang.parhusip)
#### Post date: [February 25, 2022, 5:32am UTC](https://forum.legato.io/t/question-about-yocto-build-with-ima/6121/14 "2022-02-25T05:32:26Z")

</div>

Are you saying the following step in official sierra is not suffice?

![image](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/2X/a/aec874c18fd67d546cfae165354066b593e89402.png)

Please my intention is not just to see what seems working, but to understand it. May I know if you represent Sierra Wireless?

---

<div class="post-metadata">

### Author: ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)
#### Post date: [February 25, 2022, 5:36am UTC](https://forum.legato.io/t/question-about-yocto-build-with-ima/6121/15 "2022-02-25T05:36:25Z")

</div>

what did you see for

1. $ make clean
2. $ make
3. $ IMA\_BUILD=1 IMA\_CONFIG=/ima.conf make

---

<div class="post-metadata">

### Author: ![babang.parhusip](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@babang.parhusip](https://forum.legato.io/u/babang.parhusip)
#### Post date: [February 25, 2022, 5:42am UTC](https://forum.legato.io/t/question-about-yocto-build-with-ima/6121/16 "2022-02-25T05:42:23Z")

</div>

I see user’s frustration, going round and round.

My objective simply to know official Sierra-Wireless steps to build yocto with IMA. If you can’t confirm, let’s give other people chance.

If you are from Sierra, please adjust the documentation if not suffice, no finger pointing.

No user like to be told trial and errors.

so far I have bad experience in this forum ☹

---

<div class="post-metadata">

### Author: ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)
#### Post date: [February 25, 2022, 5:47am UTC](https://forum.legato.io/t/question-about-yocto-build-with-ima/6121/17 "2022-02-25T05:47:38Z")

</div>

ok, no problem.  
You can wait and see if there is other people sharing their experience
