diff mbox series

[meta-swupdate,<thud>] depend on efibootguard in legacy.inc

Message ID 20190709062637.27589-1-adrian.freihofer@siemens.com
State Accepted
Headers show
Series [meta-swupdate,<thud>] depend on efibootguard in legacy.inc | expand

Commit Message

Freihofer, Adrian July 9, 2019, 6:26 a.m. UTC
---
 recipes-support/swupdate/swupdate-legacy.inc | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Stefano Babic July 9, 2019, 7:48 p.m. UTC | #1
Hi Adrian,

On 09/07/19 08:26, Adrian Freihofer wrote:
> ---
>  recipes-support/swupdate/swupdate-legacy.inc | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/recipes-support/swupdate/swupdate-legacy.inc b/recipes-support/swupdate/swupdate-legacy.inc
> index 81dd2c8..3be261c 100644
> --- a/recipes-support/swupdate/swupdate-legacy.inc
> +++ b/recipes-support/swupdate/swupdate-legacy.inc
> @@ -95,6 +95,10 @@ python () {
>  
>      if 'CONFIG_MONGOOSE_WEB_API_V2=y\n' in features:
>          d.setVar('SWUPDATE_WWW', 'webapp')
> +
> +    if 'CONFIG_BOOTLOADER_EBG=y\n' in features:
> +        depends = d.getVar('DEPENDS', False)
> +        d.setVar('DEPENDS', depends + ' efibootguard')
>  }
>  
>  do_configure () {
> 

Ok, so commit c506a2d7529a35335a12450eb7b75772f1c8f8cd (this patch was
already merged should be set to -thud, too. I apply it.

Thanks,
Stefano
Stefano Babic July 9, 2019, 7:51 p.m. UTC | #2
On 09/07/19 21:48, Stefano Babic wrote:
> Hi Adrian,
> 
> On 09/07/19 08:26, Adrian Freihofer wrote:
>> ---
>>  recipes-support/swupdate/swupdate-legacy.inc | 4 ++++
>>  1 file changed, 4 insertions(+)
>>
>> diff --git a/recipes-support/swupdate/swupdate-legacy.inc b/recipes-support/swupdate/swupdate-legacy.inc
>> index 81dd2c8..3be261c 100644
>> --- a/recipes-support/swupdate/swupdate-legacy.inc
>> +++ b/recipes-support/swupdate/swupdate-legacy.inc
>> @@ -95,6 +95,10 @@ python () {
>>  
>>      if 'CONFIG_MONGOOSE_WEB_API_V2=y\n' in features:
>>          d.setVar('SWUPDATE_WWW', 'webapp')
>> +
>> +    if 'CONFIG_BOOTLOADER_EBG=y\n' in features:
>> +        depends = d.getVar('DEPENDS', False)
>> +        d.setVar('DEPENDS', depends + ' efibootguard')
>>  }
>>  
>>  do_configure () {
>>
> 
> Ok, so commit c506a2d7529a35335a12450eb7b75772f1c8f8cd (this patch was
> already merged should be set to -thud, too. I apply it.
> 

Mmmhh...it is already on -thud - which is the issue ?

Best regards,
Stefano Babic
Adrian Freihofer July 9, 2019, 8:49 p.m. UTC | #3
Am Dienstag, 9. Juli 2019 21:51:20 UTC+2 schrieb Stefano Babic:
> On 09/07/19 21:48, Stefano Babic wrote:
> > Hi Adrian,
> > 
> > On 09/07/19 08:26, Adrian Freihofer wrote:
> >> ---
> >>  recipes-support/swupdate/swupdate-legacy.inc | 4 ++++
> >>  1 file changed, 4 insertions(+)
> >>
> >> diff --git a/recipes-support/swupdate/swupdate-legacy.inc b/recipes-support/swupdate/swupdate-legacy.inc
> >> index 81dd2c8..3be261c 100644
> >> --- a/recipes-support/swupdate/swupdate-legacy.inc
> >> +++ b/recipes-support/swupdate/swupdate-legacy.inc
> >> @@ -95,6 +95,10 @@ python () {
> >>  
> >>      if 'CONFIG_MONGOOSE_WEB_API_V2=y\n' in features:
> >>          d.setVar('SWUPDATE_WWW', 'webapp')
> >> +
> >> +    if 'CONFIG_BOOTLOADER_EBG=y\n' in features:
> >> +        depends = d.getVar('DEPENDS', False)
> >> +        d.setVar('DEPENDS', depends + ' efibootguard')
> >>  }
> >>  
> >>  do_configure () {
> >>
> > 
> > Ok, so commit c506a2d7529a35335a12450eb7b75772f1c8f8cd (this patch was
> > already merged should be set to -thud, too. I apply it.
> > 
> 
> Mmmhh...it is already on -thud - which is the issue ?
> 
> Best regards,
> Stefano Babic
> 
> -- 
> =====================================================================
> DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic@denx.de
> =====================================================================

Hi Stefano

The issue is that there is a copy of the .inc file on the thud branch. The previous patch was applied to the swupdate.inc file. This patch applies to the swupdate-legacy.inc file.

Thank you and regards,
Adrian
Stefano Babic July 10, 2019, 11:04 a.m. UTC | #4
On 09/07/19 22:49, adrian.freihofer@gmail.com wrote:
> Am Dienstag, 9. Juli 2019 21:51:20 UTC+2 schrieb Stefano Babic:
>> On 09/07/19 21:48, Stefano Babic wrote:
>>> Hi Adrian,
>>>
>>> On 09/07/19 08:26, Adrian Freihofer wrote:
>>>> ---
>>>>  recipes-support/swupdate/swupdate-legacy.inc | 4 ++++
>>>>  1 file changed, 4 insertions(+)
>>>>
>>>> diff --git a/recipes-support/swupdate/swupdate-legacy.inc b/recipes-support/swupdate/swupdate-legacy.inc
>>>> index 81dd2c8..3be261c 100644
>>>> --- a/recipes-support/swupdate/swupdate-legacy.inc
>>>> +++ b/recipes-support/swupdate/swupdate-legacy.inc
>>>> @@ -95,6 +95,10 @@ python () {
>>>>  
>>>>      if 'CONFIG_MONGOOSE_WEB_API_V2=y\n' in features:
>>>>          d.setVar('SWUPDATE_WWW', 'webapp')
>>>> +
>>>> +    if 'CONFIG_BOOTLOADER_EBG=y\n' in features:
>>>> +        depends = d.getVar('DEPENDS', False)
>>>> +        d.setVar('DEPENDS', depends + ' efibootguard')
>>>>  }
>>>>  
>>>>  do_configure () {
>>>>
>>>
>>> Ok, so commit c506a2d7529a35335a12450eb7b75772f1c8f8cd (this patch was
>>> already merged should be set to -thud, too. I apply it.
>>>
>>
>> Mmmhh...it is already on -thud - which is the issue ?
>>
>> Best regards,
>> Stefano Babic
>>
>> -- 
>> =====================================================================
>> DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
>> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
>> Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic@denx.de
>> =====================================================================
> 
> Hi Stefano
> 
> The issue is that there is a copy of the .inc file on the thud branch. The previous patch was applied to the swupdate.inc file. This patch applies to the swupdate-legacy.inc file.
> 

Ok, got it.

Your Signed-off-by was missing, I have added it myself.

Best regards,
Stefano Babic
diff mbox series

Patch

diff --git a/recipes-support/swupdate/swupdate-legacy.inc b/recipes-support/swupdate/swupdate-legacy.inc
index 81dd2c8..3be261c 100644
--- a/recipes-support/swupdate/swupdate-legacy.inc
+++ b/recipes-support/swupdate/swupdate-legacy.inc
@@ -95,6 +95,10 @@  python () {
 
     if 'CONFIG_MONGOOSE_WEB_API_V2=y\n' in features:
         d.setVar('SWUPDATE_WWW', 'webapp')
+
+    if 'CONFIG_BOOTLOADER_EBG=y\n' in features:
+        depends = d.getVar('DEPENDS', False)
+        d.setVar('DEPENDS', depends + ' efibootguard')
 }
 
 do_configure () {