]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
meta-yocto: Rename to meta-poky to better match its purpose
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 16 Feb 2016 16:42:58 +0000 (16:42 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 28 Feb 2016 11:31:10 +0000 (11:31 +0000)
"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.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
28 files changed:
.templateconf
README
meta-poky/classes/poky-sanity.bbclass [new file with mode: 0644]
meta-poky/conf/bblayers.conf.sample [moved from meta-yocto/conf/bblayers.conf.sample with 53% similarity]
meta-poky/conf/conf-notes.txt [moved from meta-yocto/conf/conf-notes.txt with 100% similarity]
meta-poky/conf/distro/include/maintainers.inc [moved from meta-yocto/conf/distro/include/maintainers.inc with 100% similarity]
meta-poky/conf/distro/include/poky-floating-revisions.inc [moved from meta-yocto/conf/distro/include/poky-floating-revisions.inc with 100% similarity]
meta-poky/conf/distro/include/poky-world-exclude.inc [moved from meta-yocto/conf/distro/include/poky-world-exclude.inc with 100% similarity]
meta-poky/conf/distro/poky-bleeding.conf [moved from meta-yocto/conf/distro/poky-bleeding.conf with 100% similarity]
meta-poky/conf/distro/poky-lsb.conf [moved from meta-yocto/conf/distro/poky-lsb.conf with 100% similarity]
meta-poky/conf/distro/poky-tiny.conf [moved from meta-yocto/conf/distro/poky-tiny.conf with 100% similarity]
meta-poky/conf/distro/poky.conf [moved from meta-yocto/conf/distro/poky.conf with 100% similarity]
meta-poky/conf/layer.conf [new file with mode: 0644]
meta-poky/conf/local.conf.sample [moved from meta-yocto/conf/local.conf.sample with 100% similarity]
meta-poky/conf/local.conf.sample.extended [moved from meta-yocto/conf/local.conf.sample.extended with 100% similarity]
meta-poky/conf/site.conf.sample [moved from meta-yocto/conf/site.conf.sample with 100% similarity]
meta-poky/conf/toasterconf.json [moved from meta-yocto/conf/toasterconf.json with 93% similarity]
meta-poky/recipes-core/busybox/busybox/poky-tiny/defconfig [moved from meta-yocto/recipes-core/busybox/busybox/poky-tiny/defconfig with 100% similarity]
meta-poky/recipes-core/busybox/busybox_%.bbappend [moved from meta-yocto/recipes-core/busybox/busybox_%.bbappend with 100% similarity]
meta-poky/recipes-core/psplash/files/psplash-poky-img.h [moved from meta-yocto/recipes-core/psplash/files/psplash-poky-img.h with 100% similarity]
meta-poky/recipes-core/psplash/psplash_git.bbappend [moved from meta-yocto/recipes-core/psplash/psplash_git.bbappend with 100% similarity]
meta-poky/recipes-core/tiny-init/files/init [moved from meta-yocto/recipes-core/tiny-init/files/init with 100% similarity]
meta-poky/recipes-core/tiny-init/files/rc.local.sample [moved from meta-yocto/recipes-core/tiny-init/files/rc.local.sample with 100% similarity]
meta-poky/recipes-core/tiny-init/tiny-init.bb [moved from meta-yocto/recipes-core/tiny-init/tiny-init.bb with 100% similarity]
meta-yocto/classes/poky-sanity.bbclass [deleted file]
meta-yocto/conf/layer.conf
scripts/lib/bsp/help.py
scripts/lib/bsp/substrate/target/arch/layer/README

index 0650a4662509e6b3b9459a921cc56fe77d2c7b89..0fe6f825038b91c1bc7f98617bc734ea68abf1c9 100644 (file)
@@ -1,2 +1,2 @@
 # Template settings
-TEMPLATECONF=${TEMPLATECONF:-meta-yocto/conf}
+TEMPLATECONF=${TEMPLATECONF:-meta-poky/conf}
diff --git a/README b/README
index 4e295c4a977b880dbff70920f8f723003345de19..9ee00789d22c0af501754f93e3ec1ffc4f5ad8f1 100644 (file)
--- a/README
+++ b/README
@@ -42,7 +42,7 @@ documentation:
     Git repository: http://git.yoctoproject.org/cgit/cgit.cgi/yocto-docs/
     Mailing list: yocto@yoctoproject.org
 
-meta-yocto(-bsp):
+meta-poky, meta-yocto-bsp:
     Git repository: http://git.yoctoproject.org/cgit/cgit.cgi/meta-yocto(-bsp)
     Mailing list: poky@yoctoproject.org
 
diff --git a/meta-poky/classes/poky-sanity.bbclass b/meta-poky/classes/poky-sanity.bbclass
new file mode 100644 (file)
index 0000000..287a9e3
--- /dev/null
@@ -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"
similarity index 53%
rename from meta-yocto/conf/bblayers.conf.sample
rename to meta-poky/conf/bblayers.conf.sample
index 0eda565f9679328355d3e9076a0a327f23b7cb5e..b948df2faff65cd52fad1f4217a1cd820fb757db 100644 (file)
@@ -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 \
   "
diff --git a/meta-poky/conf/layer.conf b/meta-poky/conf/layer.conf
new file mode 100644 (file)
index 0000000..b5ffd9e
--- /dev/null
@@ -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"
similarity index 93%
rename from meta-yocto/conf/toasterconf.json
rename to meta-poky/conf/toasterconf.json
index 3f79f426cd53444ffb6ef9c5f889285891adb487..dc592abbdd9a6d94c0b608c0c429acdeefeadcaf 100644 (file)
                     "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."
         },
             "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."
         }
diff --git a/meta-yocto/classes/poky-sanity.bbclass b/meta-yocto/classes/poky-sanity.bbclass
deleted file mode 100644 (file)
index 77c266e..0000000
+++ /dev/null
@@ -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"
index 9942b518ee18f426eb6096f4777375e1776a4446..9ed30ed1f9e5f34af008c185a663dc24d912917b 100644 (file)
@@ -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:"
index 4cce100d16d4466dfa11615ea8de46e9cd118de1..bbb7b317d7abaccdb7974f97e11fa77a8e5e2244 100644 (file)
@@ -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 \\
       "
 """
index 943dfc441246113f4bb5c89627faeb0674e2fd65..ca6527cd8534ad523deef9a8fdc240c120f9b897 100644 (file)
@@ -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}} \
     "