All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] multiconfig: Adapt to bitbake switch 'multiconfig' -> 'mc'
@ 2019-06-07 15:48 Richard Purdie
  2019-06-07 15:51 ` Joshua Watt
  0 siblings, 1 reply; 8+ messages in thread
From: Richard Purdie @ 2019-06-07 15:48 UTC (permalink / raw)
  To: openembedded-core

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 .../recipes-test/multiconfig/multiconfig-image-packager_0.1.bb  | 2 +-
 meta/lib/oe/sstatesig.py                                        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta-selftest/recipes-test/multiconfig/multiconfig-image-packager_0.1.bb b/meta-selftest/recipes-test/multiconfig/multiconfig-image-packager_0.1.bb
index 3dbc0f5d155..a76a6bea1b8 100644
--- a/meta-selftest/recipes-test/multiconfig/multiconfig-image-packager_0.1.bb
+++ b/meta-selftest/recipes-test/multiconfig/multiconfig-image-packager_0.1.bb
@@ -8,7 +8,7 @@ MCIMGTYPE_virtclass-mcextend-tiny = "cpio.gz"
 
 MC_DEPLOY_DIR_IMAGE = "${TOPDIR}/tmp-mc-${MCNAME}/deploy/images/${MCMACHINE}"
 
-do_install[mcdepends] += "multiconfig::${MCNAME}:core-image-minimal:do_image_complete multiconfig::${MCNAME}:virtual/kernel:do_deploy"
+do_install[mcdepends] += "mc::${MCNAME}:core-image-minimal:do_image_complete mc::${MCNAME}:virtual/kernel:do_deploy"
 
 do_install () {
     install -d ${D}/var/lib/machines/${MCNAME}
diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py
index 417943db902..13af16e473c 100644
--- a/meta/lib/oe/sstatesig.py
+++ b/meta/lib/oe/sstatesig.py
@@ -155,7 +155,7 @@ class SignatureGeneratorOEBasicHash(bb.siggen.SignatureGeneratorBasicHash):
         else:
             def get_mc(tid):
                 tid = tid.rsplit('.', 1)[0]
-                if tid.startswith('multiconfig:'):
+                if tid.startswith('mc:'):
                     elems = tid.split(':')
                     return elems[1]
             def recipename_from_dep(dep):
-- 
2.20.1



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH] multiconfig: Adapt to bitbake switch 'multiconfig' -> 'mc'
  2019-06-07 15:48 [PATCH] multiconfig: Adapt to bitbake switch 'multiconfig' -> 'mc' Richard Purdie
@ 2019-06-07 15:51 ` Joshua Watt
  2019-06-07 16:23   ` richard.purdie
  2019-06-07 20:08   ` akuster808
  0 siblings, 2 replies; 8+ messages in thread
From: Joshua Watt @ 2019-06-07 15:51 UTC (permalink / raw)
  To: Richard Purdie, openembedded-core

Is there a reason for this change other than aesthetics?

FWIW, we maintain some recipes across several versions of poky, so this 
rename is going to cause me some headaches

On 6/7/19 10:48 AM, Richard Purdie wrote:
> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
> ---
>   .../recipes-test/multiconfig/multiconfig-image-packager_0.1.bb  | 2 +-
>   meta/lib/oe/sstatesig.py                                        | 2 +-
>   2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/meta-selftest/recipes-test/multiconfig/multiconfig-image-packager_0.1.bb b/meta-selftest/recipes-test/multiconfig/multiconfig-image-packager_0.1.bb
> index 3dbc0f5d155..a76a6bea1b8 100644
> --- a/meta-selftest/recipes-test/multiconfig/multiconfig-image-packager_0.1.bb
> +++ b/meta-selftest/recipes-test/multiconfig/multiconfig-image-packager_0.1.bb
> @@ -8,7 +8,7 @@ MCIMGTYPE_virtclass-mcextend-tiny = "cpio.gz"
>   
>   MC_DEPLOY_DIR_IMAGE = "${TOPDIR}/tmp-mc-${MCNAME}/deploy/images/${MCMACHINE}"
>   
> -do_install[mcdepends] += "multiconfig::${MCNAME}:core-image-minimal:do_image_complete multiconfig::${MCNAME}:virtual/kernel:do_deploy"
> +do_install[mcdepends] += "mc::${MCNAME}:core-image-minimal:do_image_complete mc::${MCNAME}:virtual/kernel:do_deploy"
>   
>   do_install () {
>       install -d ${D}/var/lib/machines/${MCNAME}
> diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py
> index 417943db902..13af16e473c 100644
> --- a/meta/lib/oe/sstatesig.py
> +++ b/meta/lib/oe/sstatesig.py
> @@ -155,7 +155,7 @@ class SignatureGeneratorOEBasicHash(bb.siggen.SignatureGeneratorBasicHash):
>           else:
>               def get_mc(tid):
>                   tid = tid.rsplit('.', 1)[0]
> -                if tid.startswith('multiconfig:'):
> +                if tid.startswith('mc:'):
>                       elems = tid.split(':')
>                       return elems[1]
>               def recipename_from_dep(dep):


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] multiconfig: Adapt to bitbake switch 'multiconfig' -> 'mc'
  2019-06-07 15:51 ` Joshua Watt
@ 2019-06-07 16:23   ` richard.purdie
  2019-06-07 16:30     ` Joshua Watt
  2019-06-07 20:08   ` akuster808
  1 sibling, 1 reply; 8+ messages in thread
From: richard.purdie @ 2019-06-07 16:23 UTC (permalink / raw)
  To: Joshua Watt, openembedded-core

On Fri, 2019-06-07 at 10:51 -0500, Joshua Watt wrote:
> Is there a reason for this change other than aesthetics?

I have had a lot of complaints and in real world use I can understand
why...

> FWIW, we maintain some recipes across several versions of poky, so
> this rename is going to cause me some headaches

The mcdepends code is tollerant of either naming. We could teach cooker
to translate any commandline references so both worked there. Would
that be good enough to work for you?

Cheers,

Richard



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] multiconfig: Adapt to bitbake switch 'multiconfig' -> 'mc'
  2019-06-07 16:23   ` richard.purdie
@ 2019-06-07 16:30     ` Joshua Watt
  2019-06-10 17:53       ` Alejandro Hernandez
  0 siblings, 1 reply; 8+ messages in thread
From: Joshua Watt @ 2019-06-07 16:30 UTC (permalink / raw)
  To: richard.purdie, openembedded-core

On 6/7/19 11:23 AM, richard.purdie@linuxfoundation.org wrote:
> On Fri, 2019-06-07 at 10:51 -0500, Joshua Watt wrote:
>> Is there a reason for this change other than aesthetics?
> I have had a lot of complaints and in real world use I can understand
> why...
>
>> FWIW, we maintain some recipes across several versions of poky, so
>> this rename is going to cause me some headaches
> The mcdepends code is tollerant of either naming. We could teach cooker
> to translate any commandline references so both worked there. Would
> that be good enough to work for you?

Ya, that would be sufficient. I'll work up a patch for that.

>
> Cheers,
>
> Richard
>


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] multiconfig: Adapt to bitbake switch 'multiconfig' -> 'mc'
  2019-06-07 15:51 ` Joshua Watt
  2019-06-07 16:23   ` richard.purdie
@ 2019-06-07 20:08   ` akuster808
  2019-06-07 20:27     ` Joshua Watt
  1 sibling, 1 reply; 8+ messages in thread
From: akuster808 @ 2019-06-07 20:08 UTC (permalink / raw)
  To: Joshua Watt, Richard Purdie, openembedded-core



On 6/7/19 8:51 AM, Joshua Watt wrote:
> Is there a reason for this change other than aesthetics?
>
> FWIW, we maintain some recipes across several versions of poky, so
> this rename is going to cause me some headaches
Versions.. as in stable branches?

- armin
>
> On 6/7/19 10:48 AM, Richard Purdie wrote:
>> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
>> ---
>>   .../recipes-test/multiconfig/multiconfig-image-packager_0.1.bb  | 2 +-
>>   meta/lib/oe/sstatesig.py                                        | 2 +-
>>   2 files changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git
>> a/meta-selftest/recipes-test/multiconfig/multiconfig-image-packager_0.1.bb
>> b/meta-selftest/recipes-test/multiconfig/multiconfig-image-packager_0.1.bb
>>
>> index 3dbc0f5d155..a76a6bea1b8 100644
>> ---
>> a/meta-selftest/recipes-test/multiconfig/multiconfig-image-packager_0.1.bb
>> +++
>> b/meta-selftest/recipes-test/multiconfig/multiconfig-image-packager_0.1.bb
>> @@ -8,7 +8,7 @@ MCIMGTYPE_virtclass-mcextend-tiny = "cpio.gz"
>>     MC_DEPLOY_DIR_IMAGE =
>> "${TOPDIR}/tmp-mc-${MCNAME}/deploy/images/${MCMACHINE}"
>>   -do_install[mcdepends] +=
>> "multiconfig::${MCNAME}:core-image-minimal:do_image_complete
>> multiconfig::${MCNAME}:virtual/kernel:do_deploy"
>> +do_install[mcdepends] +=
>> "mc::${MCNAME}:core-image-minimal:do_image_complete
>> mc::${MCNAME}:virtual/kernel:do_deploy"
>>     do_install () {
>>       install -d ${D}/var/lib/machines/${MCNAME}
>> diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py
>> index 417943db902..13af16e473c 100644
>> --- a/meta/lib/oe/sstatesig.py
>> +++ b/meta/lib/oe/sstatesig.py
>> @@ -155,7 +155,7 @@ class
>> SignatureGeneratorOEBasicHash(bb.siggen.SignatureGeneratorBasicHash):
>>           else:
>>               def get_mc(tid):
>>                   tid = tid.rsplit('.', 1)[0]
>> -                if tid.startswith('multiconfig:'):
>> +                if tid.startswith('mc:'):
>>                       elems = tid.split(':')
>>                       return elems[1]
>>               def recipename_from_dep(dep):



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] multiconfig: Adapt to bitbake switch 'multiconfig' -> 'mc'
  2019-06-07 20:08   ` akuster808
@ 2019-06-07 20:27     ` Joshua Watt
  0 siblings, 0 replies; 8+ messages in thread
From: Joshua Watt @ 2019-06-07 20:27 UTC (permalink / raw)
  To: akuster808, Joshua Watt, Richard Purdie, openembedded-core


On 6/7/19 3:08 PM, akuster808 wrote:
>
> On 6/7/19 8:51 AM, Joshua Watt wrote:
>> Is there a reason for this change other than aesthetics?
>>
>> FWIW, we maintain some recipes across several versions of poky, so
>> this rename is going to cause me some headaches
> Versions.. as in stable branches?

Yes.

>
> - armin
>> On 6/7/19 10:48 AM, Richard Purdie wrote:
>>> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
>>> ---
>>>    .../recipes-test/multiconfig/multiconfig-image-packager_0.1.bb  | 2 +-
>>>    meta/lib/oe/sstatesig.py                                        | 2 +-
>>>    2 files changed, 2 insertions(+), 2 deletions(-)
>>>
>>> diff --git
>>> a/meta-selftest/recipes-test/multiconfig/multiconfig-image-packager_0.1.bb
>>> b/meta-selftest/recipes-test/multiconfig/multiconfig-image-packager_0.1.bb
>>>
>>> index 3dbc0f5d155..a76a6bea1b8 100644
>>> ---
>>> a/meta-selftest/recipes-test/multiconfig/multiconfig-image-packager_0.1.bb
>>> +++
>>> b/meta-selftest/recipes-test/multiconfig/multiconfig-image-packager_0.1.bb
>>> @@ -8,7 +8,7 @@ MCIMGTYPE_virtclass-mcextend-tiny = "cpio.gz"
>>>      MC_DEPLOY_DIR_IMAGE =
>>> "${TOPDIR}/tmp-mc-${MCNAME}/deploy/images/${MCMACHINE}"
>>>    -do_install[mcdepends] +=
>>> "multiconfig::${MCNAME}:core-image-minimal:do_image_complete
>>> multiconfig::${MCNAME}:virtual/kernel:do_deploy"
>>> +do_install[mcdepends] +=
>>> "mc::${MCNAME}:core-image-minimal:do_image_complete
>>> mc::${MCNAME}:virtual/kernel:do_deploy"
>>>      do_install () {
>>>        install -d ${D}/var/lib/machines/${MCNAME}
>>> diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py
>>> index 417943db902..13af16e473c 100644
>>> --- a/meta/lib/oe/sstatesig.py
>>> +++ b/meta/lib/oe/sstatesig.py
>>> @@ -155,7 +155,7 @@ class
>>> SignatureGeneratorOEBasicHash(bb.siggen.SignatureGeneratorBasicHash):
>>>            else:
>>>                def get_mc(tid):
>>>                    tid = tid.rsplit('.', 1)[0]
>>> -                if tid.startswith('multiconfig:'):
>>> +                if tid.startswith('mc:'):
>>>                        elems = tid.split(':')
>>>                        return elems[1]
>>>                def recipename_from_dep(dep):


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] multiconfig: Adapt to bitbake switch 'multiconfig' -> 'mc'
  2019-06-07 16:30     ` Joshua Watt
@ 2019-06-10 17:53       ` Alejandro Hernandez
  2019-06-11  9:02         ` richard.purdie
  0 siblings, 1 reply; 8+ messages in thread
From: Alejandro Hernandez @ 2019-06-10 17:53 UTC (permalink / raw)
  To: Joshua Watt, richard.purdie, openembedded-core


On 6/7/2019 9:30 AM, Joshua Watt wrote:
> On 6/7/19 11:23 AM, richard.purdie@linuxfoundation.org wrote:
>> On Fri, 2019-06-07 at 10:51 -0500, Joshua Watt wrote:
>>> Is there a reason for this change other than aesthetics?
>> I have had a lot of complaints and in real world use I can understand
>> why...
>>
>>> FWIW, we maintain some recipes across several versions of poky, so
>>> this rename is going to cause me some headaches
>> The mcdepends code is tollerant of either naming. We could teach cooker
>> to translate any commandline references so both worked there. Would
>> that be good enough to work for you?
>
> Ya, that would be sufficient. I'll work up a patch for that.

I believe that I originally named it 'multiconfig' to try to make it 
more explicit for users,

but if people think its more intuitive to use 'mc' I'm not against it, 
using either also

works for me.


Cheers,

Alejandro


>
>>
>> Cheers,
>>
>> Richard
>>


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] multiconfig: Adapt to bitbake switch 'multiconfig' -> 'mc'
  2019-06-10 17:53       ` Alejandro Hernandez
@ 2019-06-11  9:02         ` richard.purdie
  0 siblings, 0 replies; 8+ messages in thread
From: richard.purdie @ 2019-06-11  9:02 UTC (permalink / raw)
  To: Alejandro Hernandez, Joshua Watt, openembedded-core

On Mon, 2019-06-10 at 10:53 -0700, Alejandro Hernandez wrote:
> On 6/7/2019 9:30 AM, Joshua Watt wrote:
> > On 6/7/19 11:23 AM, richard.purdie@linuxfoundation.org wrote:
> > > On Fri, 2019-06-07 at 10:51 -0500, Joshua Watt wrote:
> > > > Is there a reason for this change other than aesthetics?
> > > I have had a lot of complaints and in real world use I can
> > > understand
> > > why...
> > > 
> > > > FWIW, we maintain some recipes across several versions of poky,
> > > > so
> > > > this rename is going to cause me some headaches
> > > The mcdepends code is tollerant of either naming. We could teach
> > > cooker
> > > to translate any commandline references so both worked there.
> > > Would
> > > that be good enough to work for you?
> > 
> > Ya, that would be sufficient. I'll work up a patch for that.
> 
> I believe that I originally named it 'multiconfig' to try to make it 
> more explicit for users,

I remember the discussions and I was fairly strongly in favour of
"multiconfig" as well...

> but if people think its more intuitive to use 'mc' I'm not against
> it, using either also works for me.

On balance its proving annoying to people and the feedback I'm getting
is people strongly prefer "mc:", even if it makes me think midnight
commander! :)

Cheers,

Richard



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-06-11 10:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-07 15:48 [PATCH] multiconfig: Adapt to bitbake switch 'multiconfig' -> 'mc' Richard Purdie
2019-06-07 15:51 ` Joshua Watt
2019-06-07 16:23   ` richard.purdie
2019-06-07 16:30     ` Joshua Watt
2019-06-10 17:53       ` Alejandro Hernandez
2019-06-11  9:02         ` richard.purdie
2019-06-07 20:08   ` akuster808
2019-06-07 20:27     ` Joshua Watt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.