From: Richard Purdie Date: Tue, 16 Feb 2016 16:42:58 +0000 (+0000) Subject: meta-yocto: Rename to meta-poky to better match its purpose X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d0c88df2e14672fca4ebbde93c5efbcd0e4fa9b6;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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. Signed-off-by: Richard Purdie --- diff --git a/.templateconf b/.templateconf index 0650a466250..0fe6f825038 100644 --- a/.templateconf +++ b/.templateconf @@ -1,2 +1,2 @@ # Template settings -TEMPLATECONF=${TEMPLATECONF:-meta-yocto/conf} +TEMPLATECONF=${TEMPLATECONF:-meta-poky/conf} diff --git a/README b/README index 4e295c4a977..9ee00789d22 100644 --- 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 index 00000000000..287a9e37d63 --- /dev/null +++ b/meta-poky/classes/poky-sanity.bbclass @@ -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" diff --git a/meta-yocto/conf/bblayers.conf.sample b/meta-poky/conf/bblayers.conf.sample similarity index 53% rename from meta-yocto/conf/bblayers.conf.sample rename to meta-poky/conf/bblayers.conf.sample index 0eda565f967..b948df2faff 100644 --- a/meta-yocto/conf/bblayers.conf.sample +++ b/meta-poky/conf/bblayers.conf.sample @@ -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-yocto/conf/conf-notes.txt b/meta-poky/conf/conf-notes.txt similarity index 100% rename from meta-yocto/conf/conf-notes.txt rename to meta-poky/conf/conf-notes.txt diff --git a/meta-yocto/conf/distro/include/maintainers.inc b/meta-poky/conf/distro/include/maintainers.inc similarity index 100% rename from meta-yocto/conf/distro/include/maintainers.inc rename to meta-poky/conf/distro/include/maintainers.inc diff --git a/meta-yocto/conf/distro/include/poky-floating-revisions.inc b/meta-poky/conf/distro/include/poky-floating-revisions.inc 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 diff --git a/meta-yocto/conf/distro/include/poky-world-exclude.inc b/meta-poky/conf/distro/include/poky-world-exclude.inc 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 diff --git a/meta-yocto/conf/distro/poky-bleeding.conf b/meta-poky/conf/distro/poky-bleeding.conf similarity index 100% rename from meta-yocto/conf/distro/poky-bleeding.conf rename to meta-poky/conf/distro/poky-bleeding.conf diff --git a/meta-yocto/conf/distro/poky-lsb.conf b/meta-poky/conf/distro/poky-lsb.conf similarity index 100% rename from meta-yocto/conf/distro/poky-lsb.conf rename to meta-poky/conf/distro/poky-lsb.conf diff --git a/meta-yocto/conf/distro/poky-tiny.conf b/meta-poky/conf/distro/poky-tiny.conf similarity index 100% rename from meta-yocto/conf/distro/poky-tiny.conf rename to meta-poky/conf/distro/poky-tiny.conf diff --git a/meta-yocto/conf/distro/poky.conf b/meta-poky/conf/distro/poky.conf similarity index 100% rename from meta-yocto/conf/distro/poky.conf rename to meta-poky/conf/distro/poky.conf diff --git a/meta-poky/conf/layer.conf b/meta-poky/conf/layer.conf new file mode 100644 index 00000000000..b5ffd9e6865 --- /dev/null +++ b/meta-poky/conf/layer.conf @@ -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" diff --git a/meta-yocto/conf/local.conf.sample b/meta-poky/conf/local.conf.sample similarity index 100% rename from meta-yocto/conf/local.conf.sample rename to meta-poky/conf/local.conf.sample diff --git a/meta-yocto/conf/local.conf.sample.extended b/meta-poky/conf/local.conf.sample.extended similarity index 100% rename from meta-yocto/conf/local.conf.sample.extended rename to meta-poky/conf/local.conf.sample.extended diff --git a/meta-yocto/conf/site.conf.sample b/meta-poky/conf/site.conf.sample similarity index 100% rename from meta-yocto/conf/site.conf.sample rename to meta-poky/conf/site.conf.sample diff --git a/meta-yocto/conf/toasterconf.json b/meta-poky/conf/toasterconf.json similarity index 93% rename from meta-yocto/conf/toasterconf.json rename to meta-poky/conf/toasterconf.json index 3f79f426cd5..dc592abbdd9 100644 --- a/meta-yocto/conf/toasterconf.json +++ b/meta-poky/conf/toasterconf.json @@ -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 Yocto Project master branch, 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." } diff --git a/meta-yocto/recipes-core/busybox/busybox/poky-tiny/defconfig b/meta-poky/recipes-core/busybox/busybox/poky-tiny/defconfig 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 diff --git a/meta-yocto/recipes-core/busybox/busybox_%.bbappend b/meta-poky/recipes-core/busybox/busybox_%.bbappend similarity index 100% rename from meta-yocto/recipes-core/busybox/busybox_%.bbappend rename to meta-poky/recipes-core/busybox/busybox_%.bbappend diff --git a/meta-yocto/recipes-core/psplash/files/psplash-poky-img.h b/meta-poky/recipes-core/psplash/files/psplash-poky-img.h 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 diff --git a/meta-yocto/recipes-core/psplash/psplash_git.bbappend b/meta-poky/recipes-core/psplash/psplash_git.bbappend similarity index 100% rename from meta-yocto/recipes-core/psplash/psplash_git.bbappend rename to meta-poky/recipes-core/psplash/psplash_git.bbappend diff --git a/meta-yocto/recipes-core/tiny-init/files/init b/meta-poky/recipes-core/tiny-init/files/init similarity index 100% rename from meta-yocto/recipes-core/tiny-init/files/init rename to meta-poky/recipes-core/tiny-init/files/init diff --git a/meta-yocto/recipes-core/tiny-init/files/rc.local.sample b/meta-poky/recipes-core/tiny-init/files/rc.local.sample 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 diff --git a/meta-yocto/recipes-core/tiny-init/tiny-init.bb b/meta-poky/recipes-core/tiny-init/tiny-init.bb 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 diff --git a/meta-yocto/classes/poky-sanity.bbclass b/meta-yocto/classes/poky-sanity.bbclass deleted file mode 100644 index 77c266e946f..00000000000 --- a/meta-yocto/classes/poky-sanity.bbclass +++ /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" diff --git a/meta-yocto/conf/layer.conf b/meta-yocto/conf/layer.conf index 9942b518ee1..9ed30ed1f9e 100644 --- a/meta-yocto/conf/layer.conf +++ b/meta-yocto/conf/layer.conf @@ -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:" diff --git a/scripts/lib/bsp/help.py b/scripts/lib/bsp/help.py index 4cce100d16d..bbb7b317d7a 100644 --- a/scripts/lib/bsp/help.py +++ b/scripts/lib/bsp/help.py @@ -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 \\ " """ diff --git a/scripts/lib/bsp/substrate/target/arch/layer/README b/scripts/lib/bsp/substrate/target/arch/layer/README index 943dfc44124..ca6527cd853 100644 --- a/scripts/lib/bsp/substrate/target/arch/layer/README +++ b/scripts/lib/bsp/substrate/target/arch/layer/README @@ -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}} \ "