Skip to contentSkip to conversation

multiconfig: Adapt to bitbake switch 'multiconfig' -> 'mc'

PATCH In review Richard Purdie 5 participants 8 messages Jun 7, 2019 – Jun 11, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 multiconfig: Adapt to bitbake switch 'multiconfig' -> 'mc'

---
 .../recipes-test/multiconfig/multiconfig-image-packager_0.1.bb  | 2 +-
 meta/lib/oe/sstatesig.py                                        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
meta-selftest/recipes-test/multiconfig/multiconfig-image-packager_0.1.bb +1 -1
index 3dbc0f5d155..a76a6bea1b8 100644
@@ -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}
meta/lib/oe/sstatesig.py +1 -1
index 417943db902..13af16e473c 100644
@@ -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):
Signature · 1 line
2.20.1
#1 lore raw

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

Quoted 32 lines · Richard Purdie
---
  .../recipes-test/multiconfig/multiconfig-image-packager_0.1.bb  | 2 +-
  meta/lib/oe/sstatesig.py                                        | 2 +-
  2 files changed, 2 insertions(+), 2 deletions(-)
meta-selftest/recipes-test/multiconfig/multiconfig-image-packager_0.1.bb +1 -1
index 3dbc0f5d155..a76a6bea1b8 100644
@@ -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}
meta/lib/oe/sstatesig.py +1 -1
index 417943db902..13af16e473c 100644
@@ -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 lore raw
Quoted 1 line · Joshua Watt

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...

Quoted 2 lines

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

#3 lore raw
Quoted 10 lines · On 6/7/19 11:23 AM, [email protected] wrote:
Quoted 1 line · Joshua Watt

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...

Quoted 2 lines

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.

Quoted 5 lines

Cheers,

Richard

#4 lore raw
Quoted 6 lines · Joshua Watt
Quoted 5 lines · On 6/7/19 11:23 AM, [email protected] wrote:
Quoted 1 line · Joshua Watt

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...

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

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

Quoted 6 lines
Quoted 6 lines

Cheers,

Richard

#5 lore raw
Quoted 17 lines · Alejandro Hernandez
Quoted 16 lines · Joshua Watt
Quoted 14 lines · On 6/7/19 11:23 AM, [email protected] wrote:
Quoted 1 line · Joshua Watt

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...

Quoted 3 lines

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?

Quoted 4 lines
Quoted 1 line

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...

Quoted 2 lines

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

#6 lore raw
In reply to Joshua Watt
Quoted 4 lines · Joshua Watt

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

Quoted 42 lines · Richard Purdie
Quoted 40 lines

---
  .../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

(quoted diff) +0 -0
@@ -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}

meta/lib/oe/sstatesig.py +0 -0
index 417943db902..13af16e473c 100644
@@ -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):

#7 lore raw
Quoted 7 lines · On 6/7/19 3:08 PM, akuster808 wrote:
Quoted 4 lines · Joshua Watt

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.

Quoted 43 lines

- armin

Quoted 41 lines · Richard Purdie
Quoted 40 lines
---
   .../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

(quoted diff) +0 -0
@@ -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}

meta/lib/oe/sstatesig.py +0 -0
index 417943db902..13af16e473c 100644
@@ -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):