Skip to contentSkip to conversation

meta-yocto: Rename to meta-poky to better match its purpose

PATCH In review Richard Purdie 2 participants 4 messages Feb 28, 2016 – Feb 29, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 meta-yocto: Rename to meta-poky to better match its purpose

"poky" is the reference distribution for the Yocto Project. This renames the layer within the meta-yocto repository to meta-poky, better matching what that layer contains.

A layer.conf file is left behind as this is the only way which allows existing builds to migrate safely to the new name. It will be removed at some future point.

This change requires the corresponding OE-Core change to handle the migration and the changes to the infrastructure to support this.

---
 .templateconf                                      |  2 +-
 README                                             |  2 +-
 meta-poky/classes/poky-sanity.bbclass              | 12 ++++++++++
 .../conf/bblayers.conf.sample                      |  8 +++----
 {meta-yocto => meta-poky}/conf/conf-notes.txt      |  0
 .../conf/distro/include/maintainers.inc            |  0
 .../distro/include/poky-floating-revisions.inc     |  0
 .../conf/distro/include/poky-world-exclude.inc     |  0
 .../conf/distro/poky-bleeding.conf                 |  0
 .../conf/distro/poky-lsb.conf                      |  0
 .../conf/distro/poky-tiny.conf                     |  0
 {meta-yocto => meta-poky}/conf/distro/poky.conf    |  0
 meta-poky/conf/layer.conf                          | 18 ++++++++++++++
 {meta-yocto => meta-poky}/conf/local.conf.sample   |  0
 .../conf/local.conf.sample.extended                |  0
 {meta-yocto => meta-poky}/conf/site.conf.sample    |  0
 {meta-yocto => meta-poky}/conf/toasterconf.json    | 10 ++++----
 .../busybox/busybox/poky-tiny/defconfig            |  0
 .../recipes-core/busybox/busybox_%.bbappend        |  0
 .../recipes-core/psplash/files/psplash-poky-img.h  |  0
 .../recipes-core/psplash/psplash_git.bbappend      |  0
 .../recipes-core/tiny-init/files/init              |  0
 .../recipes-core/tiny-init/files/rc.local.sample   |  0
 .../recipes-core/tiny-init/tiny-init.bb            |  0
 meta-yocto/classes/poky-sanity.bbclass             | 28 ----------------------
 meta-yocto/conf/layer.conf                         | 18 ++------------
 scripts/lib/bsp/help.py                            |  2 +-
 scripts/lib/bsp/substrate/target/arch/layer/README |  2 +-
 28 files changed, 45 insertions(+), 57 deletions(-)
 create mode 100644 meta-poky/classes/poky-sanity.bbclass
 rename {meta-yocto => meta-poky}/conf/bblayers.conf.sample (53%)
 rename {meta-yocto => meta-poky}/conf/conf-notes.txt (100%)
 rename {meta-yocto => meta-poky}/conf/distro/include/maintainers.inc (100%)
 rename {meta-yocto => meta-poky}/conf/distro/include/poky-floating-revisions.inc (100%)
 rename {meta-yocto => meta-poky}/conf/distro/include/poky-world-exclude.inc (100%)
 rename {meta-yocto => meta-poky}/conf/distro/poky-bleeding.conf (100%)
 rename {meta-yocto => meta-poky}/conf/distro/poky-lsb.conf (100%)
 rename {meta-yocto => meta-poky}/conf/distro/poky-tiny.conf (100%)
 rename {meta-yocto => meta-poky}/conf/distro/poky.conf (100%)
 create mode 100644 meta-poky/conf/layer.conf
 rename {meta-yocto => meta-poky}/conf/local.conf.sample (100%)
 rename {meta-yocto => meta-poky}/conf/local.conf.sample.extended (100%)
 rename {meta-yocto => meta-poky}/conf/site.conf.sample (100%)
 rename {meta-yocto => meta-poky}/conf/toasterconf.json (93%)
 rename {meta-yocto => meta-poky}/recipes-core/busybox/busybox/poky-tiny/defconfig (100%)
 rename {meta-yocto => meta-poky}/recipes-core/busybox/busybox_%.bbappend (100%)
 rename {meta-yocto => meta-poky}/recipes-core/psplash/files/psplash-poky-img.h (100%)
 rename {meta-yocto => meta-poky}/recipes-core/psplash/psplash_git.bbappend (100%)
 rename {meta-yocto => meta-poky}/recipes-core/tiny-init/files/init (100%)
 rename {meta-yocto => meta-poky}/recipes-core/tiny-init/files/rc.local.sample (100%)
 rename {meta-yocto => meta-poky}/recipes-core/tiny-init/tiny-init.bb (100%)
 delete mode 100644 meta-yocto/classes/poky-sanity.bbclass
.templateconf +1 -1
index 0650a46..0fe6f82 100644
@@ -1,2 +1,2 @@
 # Template settings
-TEMPLATECONF=${TEMPLATECONF:-meta-yocto/conf}
+TEMPLATECONF=${TEMPLATECONF:-meta-poky/conf}
README +1 -1
index 4e295c4..9ee0078 100644
@@ -42,7 +42,7 @@ documentation:
     Git repository: http://git.yoctoproject.org/cgit/cgit.cgi/yocto-docs/
     Mailing list: [email protected]
 
-meta-yocto(-bsp):
+meta-poky, meta-yocto-bsp:
     Git repository: http://git.yoctoproject.org/cgit/cgit.cgi/meta-yocto(-bsp)
     Mailing list: [email protected]
 
meta-poky/classes/poky-sanity.bbclass new file +12 -0
new file mode 100644
index 0000000..287a9e3
@@ -0,0 +1,12 @@
+# Provide some extensions to sanity.bbclass to handle poky-specific conf file upgrades
+
+python poky_update_bblayersconf() {
+    current_version = int(d.getVar('POKY_BBLAYERS_CONF_VERSION', True) or -1)
+    latest_version = int(d.getVar('REQUIRED_POKY_BBLAYERS_CONF_VERSION', True) or -1)
+
+    # No version transitions here yet
+    raise NotImplementedError("You need to update bblayers.conf manually for this version transision")
+}
+
+# Prepend to ensure our function runs before the OE-Core one
+BBLAYERS_CONF_UPDATE_FUNCS =+ "conf/bblayers.conf:POKY_BBLAYERS_CONF_VERSION:REQUIRED_POKY_BBLAYERS_CONF_VERSION:poky_update_bblayersconf"
meta-poky/conf/bblayers.conf.sample renamed from meta-yocto/conf/bblayers.conf.sample +4 -4
similarity index 53%
rename from meta-yocto/conf/bblayers.conf.sample
rename to meta-poky/conf/bblayers.conf.sample
index 0eda565..b948df2 100644
@@ -1,16 +1,16 @@
-# LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf
+# POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf
 # changes incompatibly
-LCONF_VERSION = "6"
+POKY_BBLAYERS_CONF_VERSION = "1"
 
 BBPATH = "${TOPDIR}"
 BBFILES ?= ""
 
 BBLAYERS ?= " \
   ##OEROOT##/meta \
-  ##OEROOT##/meta-yocto \
+  ##OEROOT##/meta-poky \
   ##OEROOT##/meta-yocto-bsp \
   "
 BBLAYERS_NON_REMOVABLE ?= " \
   ##OEROOT##/meta \
-  ##OEROOT##/meta-yocto \
+  ##OEROOT##/meta-poky \
   "
meta-poky/conf/conf-notes.txt renamed from meta-yocto/conf/conf-notes.txt +0 -0
similarity index 100%
rename from meta-yocto/conf/conf-notes.txt
rename to meta-poky/conf/conf-notes.txt
meta-poky/conf/distro/include/maintainers.inc renamed from meta-yocto/conf/distro/include/maintainers.inc +0 -0
similarity index 100%
rename from meta-yocto/conf/distro/include/maintainers.inc
rename to meta-poky/conf/distro/include/maintainers.inc
meta-poky/conf/distro/include/poky-floating-revisions.inc renamed from meta-yocto/conf/distro/include/poky-floating-revisions.inc +0 -0
similarity index 100%
rename from meta-yocto/conf/distro/include/poky-floating-revisions.inc
rename to meta-poky/conf/distro/include/poky-floating-revisions.inc
meta-poky/conf/distro/include/poky-world-exclude.inc renamed from meta-yocto/conf/distro/include/poky-world-exclude.inc +0 -0
similarity index 100%
rename from meta-yocto/conf/distro/include/poky-world-exclude.inc
rename to meta-poky/conf/distro/include/poky-world-exclude.inc
meta-poky/conf/distro/poky-bleeding.conf renamed from meta-yocto/conf/distro/poky-bleeding.conf +0 -0
similarity index 100%
rename from meta-yocto/conf/distro/poky-bleeding.conf
rename to meta-poky/conf/distro/poky-bleeding.conf
meta-poky/conf/distro/poky-lsb.conf renamed from meta-yocto/conf/distro/poky-lsb.conf +0 -0
similarity index 100%
rename from meta-yocto/conf/distro/poky-lsb.conf
rename to meta-poky/conf/distro/poky-lsb.conf
meta-poky/conf/distro/poky-tiny.conf renamed from meta-yocto/conf/distro/poky-tiny.conf +0 -0
similarity index 100%
rename from meta-yocto/conf/distro/poky-tiny.conf
rename to meta-poky/conf/distro/poky-tiny.conf
meta-poky/conf/distro/poky.conf renamed from meta-yocto/conf/distro/poky.conf +0 -0
similarity index 100%
rename from meta-yocto/conf/distro/poky.conf
rename to meta-poky/conf/distro/poky.conf
meta-poky/conf/layer.conf new file +18 -0
new file mode 100644
index 0000000..b5ffd9e
@@ -0,0 +1,18 @@
+# We have a conf and classes directory, add to BBPATH
+BBPATH =. "${LAYERDIR}:"
+
+# We have recipes-* directories, add to BBFILES
+BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
+            ${LAYERDIR}/recipes-*/*/*.bbappend"
+
+BBFILE_COLLECTIONS += "yocto"
+BBFILE_PATTERN_yocto = "^${LAYERDIR}/"
+BBFILE_PRIORITY_yocto = "5"
+
+# This should only be incremented on significant changes that will
+# cause compatibility issues with other layers
+LAYERVERSION_yocto = "3"
+
+LAYERDEPENDS_yocto = "core"
+
+REQUIRED_POKY_BBLAYERS_CONF_VERSION = "1"
meta-poky/conf/local.conf.sample renamed from meta-yocto/conf/local.conf.sample +0 -0
similarity index 100%
rename from meta-yocto/conf/local.conf.sample
rename to meta-poky/conf/local.conf.sample
meta-poky/conf/local.conf.sample.extended renamed from meta-yocto/conf/local.conf.sample.extended +0 -0
similarity index 100%
rename from meta-yocto/conf/local.conf.sample.extended
rename to meta-poky/conf/local.conf.sample.extended
meta-poky/conf/site.conf.sample renamed from meta-yocto/conf/site.conf.sample +0 -0
similarity index 100%
rename from meta-yocto/conf/site.conf.sample
rename to meta-poky/conf/site.conf.sample
meta-poky/conf/toasterconf.json renamed from meta-yocto/conf/toasterconf.json +5 -5
similarity index 93%
rename from meta-yocto/conf/toasterconf.json
rename to meta-poky/conf/toasterconf.json
index 3f79f42..dc592ab 100644
@@ -20,10 +20,10 @@
                     "dirpath": "meta"
                 },
                 {
-                    "name": "meta-yocto",
-                    "local_path": "meta-yocto",
+                    "name": "meta-poky",
+                    "local_path": "meta-poky",
                     "vcs_url": "remote:origin",
-                    "dirpath": "meta-yocto"
+                    "dirpath": "meta-poky"
                 },
                 {
                     "name": "meta-yocto-bsp",
@@ -83,7 +83,7 @@
             "description": "Yocto Project master",
             "bitbake": "master",
             "branch": "master",
-            "defaultlayers": [ "openembedded-core", "meta-yocto", "meta-yocto-bsp"],
+            "defaultlayers": [ "openembedded-core", "meta-poky", "meta-yocto-bsp"],
             "layersourcepriority": { "Imported layers": 99, "Local Yocto Project" : 10, "OpenEmbedded" :  0 },
             "helptext": "Toaster will run your builds using the tip of the <a href=\"http://git.yoctoproject.org/cgit/cgit.cgi/poky/log/\">Yocto Project master branch</a>, where active development takes place. This is not a stable branch, so your builds might not work as expected."
         },
@@ -110,7 +110,7 @@
             "description": "Local Yocto Project",
             "bitbake": "HEAD",
             "branch": "HEAD",
-            "defaultlayers": [ "openembedded-core", "meta-yocto", "meta-yocto-bsp"],
+            "defaultlayers": [ "openembedded-core", "meta-poky", "meta-yocto-bsp"],
             "layersourcepriority": { "Imported layers": 99, "Local Yocto Project" : 10, "OpenEmbedded" :  0 },
             "helptext": "Toaster will run your builds with the version of the Yocto Project you have cloned or downloaded to your computer."
         }
meta-poky/recipes-core/busybox/busybox/poky-tiny/defconfig renamed from meta-yocto/recipes-core/busybox/busybox/poky-tiny/defconfig +0 -0
similarity index 100%
rename from meta-yocto/recipes-core/busybox/busybox/poky-tiny/defconfig
rename to meta-poky/recipes-core/busybox/busybox/poky-tiny/defconfig
meta-poky/recipes-core/busybox/busybox_%.bbappend renamed from meta-yocto/recipes-core/busybox/busybox_%.bbappend +0 -0
similarity index 100%
rename from meta-yocto/recipes-core/busybox/busybox_%.bbappend
rename to meta-poky/recipes-core/busybox/busybox_%.bbappend
meta-poky/recipes-core/psplash/files/psplash-poky-img.h renamed from meta-yocto/recipes-core/psplash/files/psplash-poky-img.h +0 -0
similarity index 100%
rename from meta-yocto/recipes-core/psplash/files/psplash-poky-img.h
rename to meta-poky/recipes-core/psplash/files/psplash-poky-img.h
meta-poky/recipes-core/psplash/psplash_git.bbappend renamed from meta-yocto/recipes-core/psplash/psplash_git.bbappend +0 -0
similarity index 100%
rename from meta-yocto/recipes-core/psplash/psplash_git.bbappend
rename to meta-poky/recipes-core/psplash/psplash_git.bbappend
meta-poky/recipes-core/tiny-init/files/init renamed from meta-yocto/recipes-core/tiny-init/files/init +0 -0
similarity index 100%
rename from meta-yocto/recipes-core/tiny-init/files/init
rename to meta-poky/recipes-core/tiny-init/files/init
meta-poky/recipes-core/tiny-init/files/rc.local.sample renamed from meta-yocto/recipes-core/tiny-init/files/rc.local.sample +0 -0
similarity index 100%
rename from meta-yocto/recipes-core/tiny-init/files/rc.local.sample
rename to meta-poky/recipes-core/tiny-init/files/rc.local.sample
meta-poky/recipes-core/tiny-init/tiny-init.bb renamed from meta-yocto/recipes-core/tiny-init/tiny-init.bb +0 -0
similarity index 100%
rename from meta-yocto/recipes-core/tiny-init/tiny-init.bb
rename to meta-poky/recipes-core/tiny-init/tiny-init.bb
meta-yocto/classes/poky-sanity.bbclass deleted +0 -28
deleted file mode 100644
index 77c266e..0000000
@@ -1,28 +0,0 @@
-# Provide some extensions to sanity.bbclass to handle poky-specific conf file upgrades
-
-python poky_update_bblayersconf() {
-    current_version = int(d.getVar('LCONF_VERSION', True) or -1)
-    latest_version = int(d.getVar('LAYER_CONF_VERSION', True) or -1)
-
-    bblayers_fn = bblayers_conf_file(d)
-    lines = sanity_conf_read(bblayers_fn)
-
-    if current_version == 5 and latest_version > 5:
-        # Handle split out of meta-yocto-bsp from meta-yocto
-        if '/meta-yocto-bsp' not in d.getVar('BBLAYERS', True):
-            index, meta_yocto_line = sanity_conf_find_line('meta-yocto\s*\\\\\\n', lines)
-            if meta_yocto_line:
-                lines.insert(index + 1, meta_yocto_line.replace('meta-yocto',
-                                                                'meta-yocto-bsp'))
-            else:
-                sys.exit()
-
-        current_version += 1
-        sanity_conf_update(bblayers_fn, lines, 'LCONF_VERSION', current_version)
-        return
-
-    sys.exit()
-}
-
-# Prepend to ensure our function runs before the OE-Core one
-BBLAYERS_CONF_UPDATE_FUNCS =+ "poky_update_bblayersconf"
meta-yocto/conf/layer.conf +2 -16
index 9942b51..9ed30ed 100644
@@ -1,16 +1,2 @@
-# We have a conf and classes directory, add to BBPATH
-BBPATH =. "${LAYERDIR}:"
-
-# We have recipes-* directories, add to BBFILES
-BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
-            ${LAYERDIR}/recipes-*/*/*.bbappend"
-
-BBFILE_COLLECTIONS += "yocto"
-BBFILE_PATTERN_yocto = "^${LAYERDIR}/"
-BBFILE_PRIORITY_yocto = "5"
-
-# This should only be incremented on significant changes that will
-# cause compatibility issues with other layers
-LAYERVERSION_yocto = "2"
-
-LAYERDEPENDS_yocto = "core"
+# Dummy file to allow for meta-yocto -> meta-poky transition
+BBPATH =. "${LAYERDIR}/../meta-poky:"
scripts/lib/bsp/help.py +1 -1
index 4cce100..bbb7b31 100644
@@ -173,7 +173,7 @@ DESCRIPTION
 
     BBLAYERS ?= " \\
       /path/to/poky/meta \\
-      /path/to/poky/meta-yocto \\
+      /path/to/poky/meta-poky \\
       /path/to/poky/meta-mybsp \\
       "
 """
scripts/lib/bsp/substrate/target/arch/layer/README +1 -1
index 943dfc4..ca6527c 100644
@@ -52,7 +52,7 @@ other layers needed. e.g.:
 
   BBLAYERS ?= " \
     /path/to/yocto/meta \
-    /path/to/yocto/meta-yocto \
+    /path/to/yocto/meta-poky \
     /path/to/yocto/meta-yocto-bsp \
     /path/to/yocto/meta-{{=layer_name}} \
     "
#1 lore raw
Quoted 11 lines · Richard Purdie

"poky" is the reference distribution for the Yocto Project. This renames the layer within the meta-yocto repository to meta-poky, better matching what that layer contains.

A layer.conf file is left behind as this is the only way which allows existing builds to migrate safely to the new name. It will be removed at some future point.

This change requires the corresponding OE-Core change to handle the migration and the changes to the infrastructure to support this.

This is a welcome change. Do we rename meta-yocto-bsp to something as well ? may people confuse which layers to use with poky for some machines which exist in both places e.g. beaglebone may be renaming the machine name could solve this issue as well.

Quoted 346 lines
---
 .templateconf                                      |  2 +-
 README                                             |  2 +-
 meta-poky/classes/poky-sanity.bbclass              | 12 ++++++++++
 .../conf/bblayers.conf.sample                      |  8 +++----
 {meta-yocto => meta-poky}/conf/conf-notes.txt      |  0
 .../conf/distro/include/maintainers.inc            |  0
 .../distro/include/poky-floating-revisions.inc     |  0
 .../conf/distro/include/poky-world-exclude.inc     |  0
 .../conf/distro/poky-bleeding.conf                 |  0
 .../conf/distro/poky-lsb.conf                      |  0
 .../conf/distro/poky-tiny.conf                     |  0
 {meta-yocto => meta-poky}/conf/distro/poky.conf    |  0
 meta-poky/conf/layer.conf                          | 18 ++++++++++++++
 {meta-yocto => meta-poky}/conf/local.conf.sample   |  0
 .../conf/local.conf.sample.extended                |  0
 {meta-yocto => meta-poky}/conf/site.conf.sample    |  0
 {meta-yocto => meta-poky}/conf/toasterconf.json    | 10 ++++----
 .../busybox/busybox/poky-tiny/defconfig            |  0
 .../recipes-core/busybox/busybox_%.bbappend        |  0
 .../recipes-core/psplash/files/psplash-poky-img.h  |  0
 .../recipes-core/psplash/psplash_git.bbappend      |  0
 .../recipes-core/tiny-init/files/init              |  0
 .../recipes-core/tiny-init/files/rc.local.sample   |  0
 .../recipes-core/tiny-init/tiny-init.bb            |  0
 meta-yocto/classes/poky-sanity.bbclass             | 28 ----------------------
 meta-yocto/conf/layer.conf                         | 18 ++------------
 scripts/lib/bsp/help.py                            |  2 +-
 scripts/lib/bsp/substrate/target/arch/layer/README |  2 +-
 28 files changed, 45 insertions(+), 57 deletions(-)
 create mode 100644 meta-poky/classes/poky-sanity.bbclass
 rename {meta-yocto => meta-poky}/conf/bblayers.conf.sample (53%)
 rename {meta-yocto => meta-poky}/conf/conf-notes.txt (100%)
 rename {meta-yocto => meta-poky}/conf/distro/include/maintainers.inc (100%)
 rename {meta-yocto => meta-poky}/conf/distro/include/poky-floating-revisions.inc (100%)
 rename {meta-yocto => meta-poky}/conf/distro/include/poky-world-exclude.inc (100%)
 rename {meta-yocto => meta-poky}/conf/distro/poky-bleeding.conf (100%)
 rename {meta-yocto => meta-poky}/conf/distro/poky-lsb.conf (100%)
 rename {meta-yocto => meta-poky}/conf/distro/poky-tiny.conf (100%)
 rename {meta-yocto => meta-poky}/conf/distro/poky.conf (100%)
 create mode 100644 meta-poky/conf/layer.conf
 rename {meta-yocto => meta-poky}/conf/local.conf.sample (100%)
 rename {meta-yocto => meta-poky}/conf/local.conf.sample.extended (100%)
 rename {meta-yocto => meta-poky}/conf/site.conf.sample (100%)
 rename {meta-yocto => meta-poky}/conf/toasterconf.json (93%)
 rename {meta-yocto => meta-poky}/recipes-core/busybox/busybox/poky-tiny/defconfig (100%)
 rename {meta-yocto => meta-poky}/recipes-core/busybox/busybox_%.bbappend (100%)
 rename {meta-yocto => meta-poky}/recipes-core/psplash/files/psplash-poky-img.h (100%)
 rename {meta-yocto => meta-poky}/recipes-core/psplash/psplash_git.bbappend (100%)
 rename {meta-yocto => meta-poky}/recipes-core/tiny-init/files/init (100%)
 rename {meta-yocto => meta-poky}/recipes-core/tiny-init/files/rc.local.sample (100%)
 rename {meta-yocto => meta-poky}/recipes-core/tiny-init/tiny-init.bb (100%)
 delete mode 100644 meta-yocto/classes/poky-sanity.bbclass
.templateconf +1 -1
index 0650a46..0fe6f82 100644
@@ -1,2 +1,2 @@
 # Template settings
-TEMPLATECONF=${TEMPLATECONF:-meta-yocto/conf}
+TEMPLATECONF=${TEMPLATECONF:-meta-poky/conf}
README +1 -1
index 4e295c4..9ee0078 100644
@@ -42,7 +42,7 @@ documentation:
     Git repository: http://git.yoctoproject.org/cgit/cgit.cgi/yocto-docs/
     Mailing list: [email protected]
 
-meta-yocto(-bsp):
+meta-poky, meta-yocto-bsp:
     Git repository: http://git.yoctoproject.org/cgit/cgit.cgi/meta-yocto(-bsp)
     Mailing list: [email protected]
 
meta-poky/classes/poky-sanity.bbclass new file +12 -0
new file mode 100644
index 0000000..287a9e3
@@ -0,0 +1,12 @@
+# Provide some extensions to sanity.bbclass to handle poky-specific conf file upgrades
+
+python poky_update_bblayersconf() {
+    current_version = int(d.getVar('POKY_BBLAYERS_CONF_VERSION', True) or -1)
+    latest_version = int(d.getVar('REQUIRED_POKY_BBLAYERS_CONF_VERSION', True) or -1)
+
+    # No version transitions here yet
+    raise NotImplementedError("You need to update bblayers.conf manually for this version transision")
+}
+
+# Prepend to ensure our function runs before the OE-Core one
+BBLAYERS_CONF_UPDATE_FUNCS =+ "conf/bblayers.conf:POKY_BBLAYERS_CONF_VERSION:REQUIRED_POKY_BBLAYERS_CONF_VERSION:poky_update_bblayersconf"
meta-poky/conf/bblayers.conf.sample renamed from meta-yocto/conf/bblayers.conf.sample +4 -4
similarity index 53%
rename from meta-yocto/conf/bblayers.conf.sample
rename to meta-poky/conf/bblayers.conf.sample
index 0eda565..b948df2 100644
@@ -1,16 +1,16 @@
-# LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf
+# POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf
 # changes incompatibly
-LCONF_VERSION = "6"
+POKY_BBLAYERS_CONF_VERSION = "1"
 
 BBPATH = "${TOPDIR}"
 BBFILES ?= ""
 
 BBLAYERS ?= " \
   ##OEROOT##/meta \
-  ##OEROOT##/meta-yocto \
+  ##OEROOT##/meta-poky \
   ##OEROOT##/meta-yocto-bsp \
   "
 BBLAYERS_NON_REMOVABLE ?= " \
   ##OEROOT##/meta \
-  ##OEROOT##/meta-yocto \
+  ##OEROOT##/meta-poky \
   "
meta-poky/conf/conf-notes.txt renamed from meta-yocto/conf/conf-notes.txt +0 -0
similarity index 100%
rename from meta-yocto/conf/conf-notes.txt
rename to meta-poky/conf/conf-notes.txt
meta-poky/conf/distro/include/maintainers.inc renamed from meta-yocto/conf/distro/include/maintainers.inc +0 -0
similarity index 100%
rename from meta-yocto/conf/distro/include/maintainers.inc
rename to meta-poky/conf/distro/include/maintainers.inc
meta-poky/conf/distro/include/poky-floating-revisions.inc renamed from meta-yocto/conf/distro/include/poky-floating-revisions.inc +0 -0
similarity index 100%
rename from meta-yocto/conf/distro/include/poky-floating-revisions.inc
rename to meta-poky/conf/distro/include/poky-floating-revisions.inc
meta-poky/conf/distro/include/poky-world-exclude.inc renamed from meta-yocto/conf/distro/include/poky-world-exclude.inc +0 -0
similarity index 100%
rename from meta-yocto/conf/distro/include/poky-world-exclude.inc
rename to meta-poky/conf/distro/include/poky-world-exclude.inc
meta-poky/conf/distro/poky-bleeding.conf renamed from meta-yocto/conf/distro/poky-bleeding.conf +0 -0
similarity index 100%
rename from meta-yocto/conf/distro/poky-bleeding.conf
rename to meta-poky/conf/distro/poky-bleeding.conf
meta-poky/conf/distro/poky-lsb.conf renamed from meta-yocto/conf/distro/poky-lsb.conf +0 -0
similarity index 100%
rename from meta-yocto/conf/distro/poky-lsb.conf
rename to meta-poky/conf/distro/poky-lsb.conf
meta-poky/conf/distro/poky-tiny.conf renamed from meta-yocto/conf/distro/poky-tiny.conf +0 -0
similarity index 100%
rename from meta-yocto/conf/distro/poky-tiny.conf
rename to meta-poky/conf/distro/poky-tiny.conf
meta-poky/conf/distro/poky.conf renamed from meta-yocto/conf/distro/poky.conf +0 -0
similarity index 100%
rename from meta-yocto/conf/distro/poky.conf
rename to meta-poky/conf/distro/poky.conf
meta-poky/conf/layer.conf new file +18 -0
new file mode 100644
index 0000000..b5ffd9e
@@ -0,0 +1,18 @@
+# We have a conf and classes directory, add to BBPATH
+BBPATH =. "${LAYERDIR}:"
+
+# We have recipes-* directories, add to BBFILES
+BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
+            ${LAYERDIR}/recipes-*/*/*.bbappend"
+
+BBFILE_COLLECTIONS += "yocto"
+BBFILE_PATTERN_yocto = "^${LAYERDIR}/"
+BBFILE_PRIORITY_yocto = "5"
+
+# This should only be incremented on significant changes that will
+# cause compatibility issues with other layers
+LAYERVERSION_yocto = "3"
+
+LAYERDEPENDS_yocto = "core"
+
+REQUIRED_POKY_BBLAYERS_CONF_VERSION = "1"
meta-poky/conf/local.conf.sample renamed from meta-yocto/conf/local.conf.sample +0 -0
similarity index 100%
rename from meta-yocto/conf/local.conf.sample
rename to meta-poky/conf/local.conf.sample
meta-poky/conf/local.conf.sample.extended renamed from meta-yocto/conf/local.conf.sample.extended +0 -0
similarity index 100%
rename from meta-yocto/conf/local.conf.sample.extended
rename to meta-poky/conf/local.conf.sample.extended
meta-poky/conf/site.conf.sample renamed from meta-yocto/conf/site.conf.sample +0 -0
similarity index 100%
rename from meta-yocto/conf/site.conf.sample
rename to meta-poky/conf/site.conf.sample
meta-poky/conf/toasterconf.json renamed from meta-yocto/conf/toasterconf.json +5 -5
similarity index 93%
rename from meta-yocto/conf/toasterconf.json
rename to meta-poky/conf/toasterconf.json
index 3f79f42..dc592ab 100644
@@ -20,10 +20,10 @@
                     "dirpath": "meta"
                 },
                 {
-                    "name": "meta-yocto",
-                    "local_path": "meta-yocto",
+                    "name": "meta-poky",
+                    "local_path": "meta-poky",
                     "vcs_url": "remote:origin",
-                    "dirpath": "meta-yocto"
+                    "dirpath": "meta-poky"
                 },
                 {
                     "name": "meta-yocto-bsp",
@@ -83,7 +83,7 @@
             "description": "Yocto Project master",
             "bitbake": "master",
             "branch": "master",
-            "defaultlayers": [ "openembedded-core", "meta-yocto", "meta-yocto-bsp"],
+            "defaultlayers": [ "openembedded-core", "meta-poky", "meta-yocto-bsp"],
             "layersourcepriority": { "Imported layers": 99, "Local Yocto Project" : 10, "OpenEmbedded" :  0 },
             "helptext": "Toaster will run your builds using the tip of the <a href=\"http://git.yoctoproject.org/cgit/cgit.cgi/poky/log/\">Yocto Project master branch</a>, where active development takes place. This is not a stable branch, so your builds might not work as expected."
         },
@@ -110,7 +110,7 @@
             "description": "Local Yocto Project",
             "bitbake": "HEAD",
             "branch": "HEAD",
-            "defaultlayers": [ "openembedded-core", "meta-yocto", "meta-yocto-bsp"],
+            "defaultlayers": [ "openembedded-core", "meta-poky", "meta-yocto-bsp"],
             "layersourcepriority": { "Imported layers": 99, "Local Yocto Project" : 10, "OpenEmbedded" :  0 },
             "helptext": "Toaster will run your builds with the version of the Yocto Project you have cloned or downloaded to your computer."
         }
meta-poky/recipes-core/busybox/busybox/poky-tiny/defconfig renamed from meta-yocto/recipes-core/busybox/busybox/poky-tiny/defconfig +0 -0
similarity index 100%
rename from meta-yocto/recipes-core/busybox/busybox/poky-tiny/defconfig
rename to meta-poky/recipes-core/busybox/busybox/poky-tiny/defconfig
meta-poky/recipes-core/busybox/busybox_%.bbappend renamed from meta-yocto/recipes-core/busybox/busybox_%.bbappend +0 -0
similarity index 100%
rename from meta-yocto/recipes-core/busybox/busybox_%.bbappend
rename to meta-poky/recipes-core/busybox/busybox_%.bbappend
meta-poky/recipes-core/psplash/files/psplash-poky-img.h renamed from meta-yocto/recipes-core/psplash/files/psplash-poky-img.h +0 -0
similarity index 100%
rename from meta-yocto/recipes-core/psplash/files/psplash-poky-img.h
rename to meta-poky/recipes-core/psplash/files/psplash-poky-img.h
meta-poky/recipes-core/psplash/psplash_git.bbappend renamed from meta-yocto/recipes-core/psplash/psplash_git.bbappend +0 -0
similarity index 100%
rename from meta-yocto/recipes-core/psplash/psplash_git.bbappend
rename to meta-poky/recipes-core/psplash/psplash_git.bbappend
meta-poky/recipes-core/tiny-init/files/init renamed from meta-yocto/recipes-core/tiny-init/files/init +0 -0
similarity index 100%
rename from meta-yocto/recipes-core/tiny-init/files/init
rename to meta-poky/recipes-core/tiny-init/files/init
meta-poky/recipes-core/tiny-init/files/rc.local.sample renamed from meta-yocto/recipes-core/tiny-init/files/rc.local.sample +0 -0
similarity index 100%
rename from meta-yocto/recipes-core/tiny-init/files/rc.local.sample
rename to meta-poky/recipes-core/tiny-init/files/rc.local.sample
meta-poky/recipes-core/tiny-init/tiny-init.bb renamed from meta-yocto/recipes-core/tiny-init/tiny-init.bb +0 -0
similarity index 100%
rename from meta-yocto/recipes-core/tiny-init/tiny-init.bb
rename to meta-poky/recipes-core/tiny-init/tiny-init.bb
meta-yocto/classes/poky-sanity.bbclass deleted +0 -28
deleted file mode 100644
index 77c266e..0000000
@@ -1,28 +0,0 @@
-# Provide some extensions to sanity.bbclass to handle poky-specific conf file upgrades
-
-python poky_update_bblayersconf() {
-    current_version = int(d.getVar('LCONF_VERSION', True) or -1)
-    latest_version = int(d.getVar('LAYER_CONF_VERSION', True) or -1)
-
-    bblayers_fn = bblayers_conf_file(d)
-    lines = sanity_conf_read(bblayers_fn)
-
-    if current_version == 5 and latest_version > 5:
-        # Handle split out of meta-yocto-bsp from meta-yocto
-        if '/meta-yocto-bsp' not in d.getVar('BBLAYERS', True):
-            index, meta_yocto_line = sanity_conf_find_line('meta-yocto\s*\\\\\\n', lines)
-            if meta_yocto_line:
-                lines.insert(index + 1, meta_yocto_line.replace('meta-yocto',
-                                                                'meta-yocto-bsp'))
-            else:
-                sys.exit()
-
-        current_version += 1
-        sanity_conf_update(bblayers_fn, lines, 'LCONF_VERSION', current_version)
-        return
-
-    sys.exit()
-}
-
-# Prepend to ensure our function runs before the OE-Core one
-BBLAYERS_CONF_UPDATE_FUNCS =+ "poky_update_bblayersconf"
meta-yocto/conf/layer.conf +2 -16
index 9942b51..9ed30ed 100644
@@ -1,16 +1,2 @@
-# We have a conf and classes directory, add to BBPATH
-BBPATH =. "${LAYERDIR}:"
-
-# We have recipes-* directories, add to BBFILES
-BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
-            ${LAYERDIR}/recipes-*/*/*.bbappend"
-
-BBFILE_COLLECTIONS += "yocto"
-BBFILE_PATTERN_yocto = "^${LAYERDIR}/"
-BBFILE_PRIORITY_yocto = "5"
-
-# This should only be incremented on significant changes that will
-# cause compatibility issues with other layers
-LAYERVERSION_yocto = "2"
-
-LAYERDEPENDS_yocto = "core"
+# Dummy file to allow for meta-yocto -> meta-poky transition
+BBPATH =. "${LAYERDIR}/../meta-poky:"
scripts/lib/bsp/help.py +1 -1
index 4cce100..bbb7b31 100644
@@ -173,7 +173,7 @@ DESCRIPTION
 
     BBLAYERS ?= " \\
       /path/to/poky/meta \\
-      /path/to/poky/meta-yocto \\
+      /path/to/poky/meta-poky \\
       /path/to/poky/meta-mybsp \\
       "
 """
scripts/lib/bsp/substrate/target/arch/layer/README +1 -2
index 943dfc4..ca6527c 100644
@@ -52,7 +52,7 @@ other layers needed. e.g.:
 
   BBLAYERS ?= " \
     /path/to/yocto/meta \
-    /path/to/yocto/meta-yocto \
+    /path/to/yocto/meta-poky \
     /path/to/yocto/meta-yocto-bsp \
     /path/to/yocto/meta-{{=layer_name}} \
     "
 
--

_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky

#2 lore raw
Quoted 14 lines · Khem Raj
Quoted 12 lines · Richard Purdie

"poky" is the reference distribution for the Yocto Project. This renames
the layer within the meta-yocto repository to meta-poky, better matching
what that layer contains.

A layer.conf file is left behind as this is the only way which allows
existing builds to migrate safely to the new name. It will be removed
at some future point.

Quoted 6 lines
Quoted 3 lines

This change requires the corresponding OE-Core change to handle the migration and the changes to the infrastructure to support this.

This is a welcome change. Do we rename meta-yocto-bsp to something as well ?

I thought about that. These truly are the Yocto Project reference/test BSPs, they're not really poky so I think the name is right as it is.

Quoted 3 lines

may people confuse which layers to use with poky for some machines which exist in both places e.g. beaglebone may be renaming the machine name could solve this issue as well.

That is the first time that has been proposed. I'm not entirely sure it would help, it might be something improving the documentation might help more.

Cheers,

Richard

#3 lore raw
Quoted 28 lines · Richard Purdie
Quoted 14 lines · Khem Raj
Quoted 12 lines · Richard Purdie

"poky" is the reference distribution for the Yocto Project. This renames
the layer within the meta-yocto repository to meta-poky, better matching
what that layer contains.

A layer.conf file is left behind as this is the only way which allows
existing builds to migrate safely to the new name. It will be removed
at some future point.

Quoted 6 lines
Quoted 3 lines

This change requires the corresponding OE-Core change to handle the migration and the changes to the infrastructure to support this.

This is a welcome change. Do we rename meta-yocto-bsp to something as well ?

I thought about that. These truly are the Yocto Project reference/test BSPs, they're not really poky so I think the name is right as it is.

Quoted 7 lines
Quoted 3 lines

may people confuse which layers to use with poky for some machines which exist in both places e.g. beaglebone may be renaming the machine name could solve this issue as well.

That is the first time that has been proposed. I'm not entirely sure it would help, it might be something improving the documentation might help more.

I have seen people ask should they use meta-ti or Yocto provided BSP for beaglebone which is official supported BSP, documentation can help surely. however, avoiding namespace conflicts could be better. Having said that it does not preclude the wider problem which might happen involving other BSP layers providing same machine configurations.