generic-poky/meta/classes
Richard Purdie c1c6a9d64e sanity: Improve configuration upgrade capabilities (support meta-yocto -> poky transition)
Right now, only one configuration file can be processed (conf/bblayers.conf)
and it can only have one version number. This is a cause of immense friction
between OE-Core and Poky since if one needs a version change, it shouldn't
be forced on the other.

We'd like to rename the meta-yocto layer (within the meta-yocto repository)
to meta-poky. To do this, we need to correct the bblayers.conf file and that
means changing the sanity version. After the pain this caused the last time,
Paul made me promise never to have them out of sync between OE-Core and Poky,
equally, having every distro changing config update OE-Core isn't scalable
either.

This patch changes the sanity upgrade method to list a more generic format:

<config file>:<current version variable name>:<required version variable name>:<upgrade function>

This in theory allows us to support upgrades to any of the core
configuration files, and allow layers to extend them as needed. Files
with the same name can be handled in different layers by setting a unique
version name variable in the file itself. The upgrade code is only called
if the version variable is set.

To allow us to make the poky name change and use a new configuration file
name, one last version bump is included for poky to handle the transition.

(From OE-Core rev: 10fd24271e771ed12e36edcff0007caa1a4e67e4)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-28 11:31:17 +00:00
..
allarch.bbclass allarch: Force TARGET_*FLAGS variable values 2015-11-24 15:55:40 +00:00
archiver.bbclass bbclass: fix spelling mistakes 2015-11-24 15:50:27 +00:00
autotools-brokensep.bbclass autotools-brokensep: Mark recipes with broken separate build dir support 2014-02-28 14:01:16 +00:00
autotools.bbclass autotools: Fix interaction with bitbake -b 2016-02-14 11:42:18 +00:00
base.bbclass base.bbclass: fix support for gitsm:// 2016-02-12 08:57:35 +00:00
bash-completion.bbclass bash-completion.bbclass: add class 2016-01-30 11:37:02 +00:00
bin_package.bbclass bin_package.bbclass: binary package recipe class 2012-09-10 13:01:46 +01:00
binconfig-disabled.bbclass binconfig-disabled: write an message to stderr to help confused developers 2015-08-19 18:05:43 +01:00
binconfig.bbclass *.bbclass (shell): avoid pipe with sed 2014-05-08 13:00:33 +01:00
blacklist.bbclass Revert "base.bbclass/blacklist.bbclass: remove doc item when d.getVarFlags()" 2015-08-11 09:28:52 -07:00
bluetooth.bbclass bluetooth.bbclass: simplify recipe inference of bluetooth provider 2015-02-17 13:43:38 +00:00
boot-directdisk.bbclass bootimg/image-vm/image-live: Improve image dependencies 2016-01-19 17:24:47 +00:00
bootimg.bbclass bootimg/image-vm/image-live: Improve image dependencies 2016-01-19 17:24:47 +00:00
bugzilla.bbclass classes/conf: Add eventmasks for event handlers 2013-06-14 12:55:47 +01:00
buildhistory.bbclass buildhistory.bbclass: remove out-dated information on request 2016-02-15 17:47:08 +00:00
buildstats-summary.bbclass buildstats-summary/toaster: Cope with removal of get_bn() 2015-12-18 13:50:57 +00:00
buildstats.bbclass buildstats.bbclass: remove dead URL from comment 2016-02-11 12:27:46 +00:00
ccache.bbclass meta: Don't use deprecated bitbake API 2013-09-01 15:51:42 +01:00
chrpath.bbclass bbclass: fix spelling mistakes 2015-11-24 15:50:27 +00:00
clutter.bbclass clutter: remove usage of FILESPATH 2013-10-26 15:59:13 +01:00
cmake.bbclass cmake: don't inherit autotools 2016-02-18 07:39:30 +00:00
cml1.bbclass cml1/sstate: Fix missing getVar parameter 2016-02-19 15:33:02 +00:00
compress_doc.bbclass classes/lib: Add expand parameter to getVarFlag 2016-02-04 23:39:00 +00:00
copyleft_compliance.bbclass archiver.bbclass: make it can filter the license 2014-03-25 09:55:35 +00:00
copyleft_filter.bbclass copyleft_filter.bbclass: Allow to filter on name 2015-06-23 11:46:57 +01:00
core-image.bbclass qt4: remove recipes and classes 2016-01-07 13:40:14 +00:00
cpan-base.bbclass meta: Drop now pointless manual -dbg packaging 2015-12-16 11:56:30 +00:00
cpan.bbclass perl: fix Perl5 module builds 2015-10-29 07:31:17 +00:00
cpan_build.bbclass perl: Remove errornous extra path-specs for Module::Build based modules 2015-10-29 07:31:17 +00:00
cross-canadian.bbclass package_deb.bbclass, cross-canadian.bbclass: DPKG_ARCH mapping function 2016-01-11 23:26:31 +00:00
cross.bbclass nopackages: Add class for recipes which don't generate packages 2015-12-14 22:30:57 +00:00
crosssdk.bbclass bbclass: fix spelling mistakes 2015-11-24 15:50:27 +00:00
debian.bbclass debian: Fix superfluous setting for RPROVIDES 2016-02-14 11:42:19 +00:00
deploy.bbclass deploy: Mark deploy tasks as MACHINE specific 2015-10-01 07:43:36 +01:00
devshell.bbclass classes/lib: Add expand parameter to getVarFlag 2016-02-04 23:39:00 +00:00
distro_features_check.bbclass distro_features_check: add any of test 2015-05-09 22:26:45 +01:00
distrodata.bbclass classes/distrodata: split SRC_URI properly before determining type 2015-11-16 11:39:39 +00:00
distutils-base.bbclass classes/distutils: Introduce PYTHON_PN 2014-02-02 22:37:38 +00:00
distutils-common-base.bbclass distutils-common-base: do not set PACKAGES - use defaults from bitbake.conf 2016-01-26 22:32:00 +00:00
distutils-native-base.bbclass classes/distutils: Introduce PYTHON_PN 2014-02-02 22:37:38 +00:00
distutils-tools.bbclass classes: Add distutils for python3 2014-02-02 22:37:39 +00:00
distutils.bbclass distutils.bbclass: Handle python-backport modules 2015-09-14 20:46:38 +01:00
distutils3-base.bbclass python3: Upgrade from 3.4.3 to 3.5 2015-12-01 21:32:06 +00:00
distutils3-native-base.bbclass python3: Upgrade from 3.4.3 to 3.5 2015-12-01 21:32:06 +00:00
distutils3.bbclass distutils3: Avoid MACHINE specific checksums 2015-10-01 07:43:36 +01:00
externalsrc.bbclass classes/externalsrc: create symlinks for workdir and logs 2016-02-11 12:33:02 +00:00
extrausers.bbclass extrausers.bbclass: avoid infinite loop 2013-11-06 11:02:26 +00:00
fontcache.bbclass fontcache: allow to pass extra parameters and environment to fc-cache 2015-10-01 17:54:55 +01:00
fs-uuid.bbclass boot loader: support root=UUID 2015-09-06 15:26:25 +01:00
gconf.bbclass meta: Add explict getVar param for (non) expansion 2015-06-23 11:57:25 +01:00
gettext.bbclass gettext: Improve USE_NLS handling for nativesdk/crosssdk/cross-canadian 2013-08-23 16:20:11 +01:00
gnome.bbclass gnome: move introspection options to gnomebase 2015-08-24 23:46:53 +01:00
gnomebase.bbclass classes/gnomebase: change tarball compression to xz 2015-08-24 23:46:58 +01:00
grub-efi.bbclass grub-efi, gummiboot: Emit correct path in startup.nsh 2015-10-19 17:57:58 +01:00
gsettings.bbclass gsettings.bbclass: fix whitespace 2012-09-05 22:25:23 +01:00
gtk-doc.bbclass gtk-doc: Add pkgconfig inherit 2014-06-25 13:51:48 +01:00
gtk-icon-cache.bbclass gtk-icon-cache: pass the native libdir to the intercept 2015-10-29 07:31:16 +00:00
gtk-immodules-cache.bbclass gtk-immodules-cache.bbclass: fix immodules-cache path 2016-02-02 14:44:16 +00:00
gummiboot.bbclass grub-efi, gummiboot: Emit correct path in startup.nsh 2015-10-19 17:57:58 +01:00
gzipnative.bbclass gzipnative: Ensure dependencies apply to do_unpack and do_populate_lic 2013-09-22 12:19:43 +01:00
icecc.bbclass meta: Add explict getVar param for (non) expansion 2015-06-23 11:57:25 +01:00
image-buildinfo.bbclass classes/lib: Add expand parameter to getVarFlag 2016-02-04 23:39:00 +00:00
image-live.bbclass image.bbclass: fix circular dependency when IMAGE_FSTYPES append hddimg 2016-02-21 09:32:41 +00:00
image-mklibs.bbclass image-mklibs.bbclass: update i586 TARGET_ARCH test to i*86 2015-10-27 07:24:27 +00:00
image-prelink.bbclass image/image-prelink/image-mklibs/sanity: Drop pointless EXPORT_FUNCTIONS 2014-04-01 23:37:01 +01:00
image-swab.bbclass classes/lib: Add expand parameter to getVarFlag 2016-02-04 23:39:00 +00:00
image-vm.bbclass bootimg/image-vm/image-live: Improve image dependencies 2016-01-19 17:24:47 +00:00
image.bbclass image: Run do_rootfs_wicenv after do_image 2016-02-28 11:27:46 +00:00
image_types.bbclass image_types.bbclass: Embed IMAGE_NAME in ubinize config file 2016-02-07 17:30:00 +00:00
image_types_uboot.bbclass image_types_uboot: add cpio.gz.uboot to supported IMAGE_TYPES 2016-02-11 12:27:49 +00:00
insane.bbclass insane.bbclass: print more info for build-deps and file-rdeps 2016-02-19 01:01:25 +00:00
kernel-arch.bbclass Revert "kernel/kernel-arch: Explicitly mapping between i386/x86_64 and x86 for kernel ARCH" 2016-02-04 23:39:02 +00:00
kernel-fitimage.bbclass classes: Fix do_rootfs references 2016-01-11 23:26:29 +00:00
kernel-grub.bbclass *.bbclass (shell): avoid pipe with sed 2014-05-08 13:00:33 +01:00
kernel-module-split.bbclass kernel-module-split.bbclass: Avoid bogus recommends for modules ending with -dev 2015-03-25 12:39:42 +00:00
kernel-uboot.bbclass kernel: Correct mishandling of linux.bin for building uImage 2015-08-14 08:30:33 +01:00
kernel-uimage.bbclass kernel: Build uImage only when really needed 2015-05-26 10:57:52 +01:00
kernel-yocto.bbclass kernel-yocto.bbclass: move do_kernel_link_vmlinux() into kernel.bbclass 2016-01-18 11:47:08 +00:00
kernel.bbclass Revert "kernel/kernel-arch: Explicitly mapping between i386/x86_64 and x86 for kernel ARCH" 2016-02-04 23:39:02 +00:00
kernelsrc.bbclass kernelsrc.bbclass: fix KERNEL_VERSION 2015-03-16 17:41:56 +00:00
lib_package.bbclass lib_package.bbclass: Correct comment referring to bin directories. 2013-01-07 11:09:42 +00:00
libc-common.bbclass libc-common.bbclass: rename ALL the packages 2014-08-23 23:01:57 +01:00
libc-package.bbclass libc-package.bbclass: add LOCALE_UTF8_IS_DEFAULT 2016-01-30 11:36:57 +00:00
license.bbclass license.bbclass: add LICENSE_CREATE_PACKAGE to perform_packagecopy vardeps 2016-02-04 23:39:02 +00:00
linux-kernel-base.bbclass kernel: Rearrange for 1.8 2014-12-21 12:37:53 +00:00
logging.bbclass classes/logging: allow shell message functions to work in devshell 2015-07-16 15:09:24 +01:00
meta.bbclass meta: fix no newline at end of file 2014-07-03 17:41:16 +01:00
metadata_scm.bbclass classes/metadata_scm: fix git errors showing up on non-git repositories 2015-11-24 15:50:26 +00:00
migrate_localcount.bbclass classes/conf: Add eventmasks for event handlers 2013-06-14 12:55:47 +01:00
mime.bbclass mime.bbclass: remove the --disable-update-mimedb 2014-01-06 11:13:56 +00:00
mirrors.bbclass mirrors: add archive.apache.org to Apache mirrors 2015-12-28 09:25:18 +00:00
module-base.bbclass bbclass: fix spelling mistakes 2015-11-24 15:50:27 +00:00
module.bbclass module/module-base/lttng-modules: Improve kernel module dependencies 2015-05-14 11:43:56 +01:00
multilib.bbclass mulitlib: Ensure SDKTARGETSYSROOT is set correctly 2015-09-28 12:00:17 +01:00
multilib_global.bbclass multilib_global: Add handling of SIGGEN variables for multilib 2015-10-01 07:43:35 +01:00
multilib_header.bbclass multilib_header: Do not install mutlilib headers for musl 2014-06-01 14:29:29 +01:00
native.bbclass bitbake.conf/native/nativesdk: Set PKG_CONFIG_SYSTEM_ at top level 2016-02-06 23:10:44 +00:00
nativesdk.bbclass bitbake.conf/native/nativesdk: Set PKG_CONFIG_SYSTEM_ at top level 2016-02-06 23:10:44 +00:00
nopackages.bbclass nopackages: Add class for recipes which don't generate packages 2015-12-14 22:30:57 +00:00
oelint.bbclass meta: Add explict getVar param for (non) expansion 2015-06-23 11:57:25 +01:00
own-mirrors.bbclass mirrors.bbclass: drop support for svk sources 2015-05-05 22:15:17 +01:00
package.bbclass classes/lib: Add expand parameter to getVarFlag 2016-02-04 23:39:00 +00:00
package_deb.bbclass package_deb: Ensure allarch deb packages aren't target specific 2016-02-10 16:06:24 +00:00
package_ipk.bbclass package_ipk: allow to specify OPKG_ARGS in local.conf 2015-12-09 08:48:24 +00:00
package_rpm.bbclass classes: Ensure pass setVar/setVarFlag strings, not integers 2015-11-24 15:50:26 +00:00
package_tar.bbclass classes/lib: Add expand parameter to getVarFlag 2016-02-04 23:39:00 +00:00
packagedata.bbclass packagedata: Fix to ensure variables expand correctly 2015-06-16 14:21:29 +01:00
packagegroup.bbclass packagegroup.bbclass: Use immediate expanded PACKAGE_ARCH value 2014-09-10 15:38:57 +01:00
packageinfo.bbclass bitbake.conf/package: Collapse PKGDATA_DIR into a single machine specific directory 2013-09-14 08:21:00 +01:00
patch.bbclass patch.bbclass: unset TMPDIR after use 2014-06-29 09:04:22 +01:00
perlnative.bbclass base/perlnative/pythonnative/gzipnative: Add a new variable to enable easier handling of native path issues 2012-07-26 14:56:20 +01:00
pixbufcache.bbclass gtk-icon-cache/pixbufcache: don't set GDK_PIXBUF_MODULEDIR 2015-09-28 12:00:17 +01:00
pkgconfig.bbclass pkgconfig: Drop automatic pkgconfig RDEPENDS 2012-10-18 12:13:12 +01:00
populate_sdk.bbclass nativesdk: Switch to using nativesdk as a prefix, not a suffix 2012-09-02 05:52:06 -07:00
populate_sdk_base.bbclass image/populate_sdk: seprate variables to fix dependency 2016-02-18 07:39:30 +00:00
populate_sdk_ext.bbclass classes/populate_sdk_ext: add a better config extension mechanism 2016-02-21 09:32:43 +00:00
prexport.bbclass prexport.bbclass: avoid export for native and crosssdk 2015-11-16 11:39:27 +00:00
primport.bbclass classes/conf: Add eventmasks for event handlers 2013-06-14 12:55:47 +01:00
ptest-gnome.bbclass ptest-gnome: extend EXTRA_OECONF in all builds, not just target 2015-11-24 15:50:25 +00:00
ptest.bbclass classes: Ensure pass setVar/setVarFlag strings, not integers 2015-11-24 15:50:26 +00:00
python-dir.bbclass distutils: Introduce PYTHON_ABI variable 2014-02-02 22:37:39 +00:00
python3native.bbclass python3: Upgrade from 3.4.3 to 3.5 2015-12-01 21:32:06 +00:00
pythonnative.bbclass pythonnative: set PYTHON_EXECUTABLE so that cmake can find it 2014-12-25 08:18:13 +00:00
qemu.bbclass qemu.bbclass: clarify QEMU_EXTRAOPTIONS 2016-01-30 11:37:01 +00:00
recipe_sanity.bbclass recipe_sanity.bbclass: skip DataSmart in recipe_sanity_eh() 2016-02-21 09:32:41 +00:00
relocatable.bbclass relocatable.bbclass: split it up, to reuse code 2012-08-02 15:28:39 +01:00
remove-libtool.bbclass remove-libtool: add new class 2016-02-02 14:44:16 +00:00
report-error.bbclass report-error.bbclass: Support Unicode reports 2015-10-07 00:11:20 +01:00
rm_work.bbclass classes: Fix do_rootfs references 2016-01-11 23:26:29 +00:00
rootfs-postcommands.bbclass rootfs-postcommands: fix allow-empty-password on read-only rootfs 2016-01-26 18:05:13 +00:00
rootfs_deb.bbclass rootfs_*.bbclass: don't add BUILDNAME to do_rootfs vardepsexclude 2015-11-24 15:50:27 +00:00
rootfs_ipk.bbclass classes/lib: Add expand parameter to getVarFlag 2016-02-04 23:39:00 +00:00
rootfs_rpm.bbclass classes/lib: Add expand parameter to getVarFlag 2016-02-04 23:39:00 +00:00
rootfsdebugfiles.bbclass rootfsdebugfiles.bbclass: quick-and-dirty installation of additional files 2015-04-24 11:06:55 +01:00
sanity.bbclass sanity: Improve configuration upgrade capabilities (support meta-yocto -> poky transition) 2016-02-28 11:31:17 +00:00
scons.bbclass scons.bbclass: SCons packages don't require do_configure 2015-11-16 11:39:27 +00:00
sdl.bbclass classes/sdl: remove Opie-specific desktop file/packaging 2012-02-21 17:00:46 +00:00
setuptools.bbclass classes: Add distutils for python3 2014-02-02 22:37:39 +00:00
setuptools3.bbclass python3-distribute: Upgrade to python3-setuptools 15.2 2015-06-08 17:34:04 +01:00
sign_package_feed.bbclass signing-keys: Make signing keys the only publisher of keys 2016-02-26 17:16:25 +00:00
sign_rpm.bbclass signing-keys: Make signing keys the only publisher of keys 2016-02-26 17:16:25 +00:00
sip.bbclass *.bbclass (shell): avoid pipe with sed 2014-05-08 13:00:33 +01:00
siteconfig.bbclass meta-environment: Fix config-site with a multilib config 2014-11-12 15:38:33 +00:00
siteinfo.bbclass bbclass: fix spelling mistakes 2015-11-24 15:50:27 +00:00
spdx.bbclass bbclass: fix spelling mistakes 2015-11-24 15:50:27 +00:00
sstate.bbclass cml1/sstate: Fix missing getVar parameter 2016-02-19 15:33:02 +00:00
staging.bbclass staging.bbclass: remove trail slash from SYSROOT_DESTDIR 2016-02-21 09:32:41 +00:00
syslinux.bbclass boot loader: support root=UUID 2015-09-06 15:26:25 +01:00
systemd.bbclass systemd.bbclass: Allow enabling of parameterised services 2015-12-09 08:48:24 +00:00
terminal.bbclass terminal.bbclass: import oe.terminal for oe.terminal.prioritized() 2016-02-21 09:32:41 +00:00
testimage-auto.bbclass classes: Fix do_rootfs references 2016-01-11 23:26:29 +00:00
testimage.bbclass classes/testimage: Fix exportTests function. 2016-02-10 16:06:24 +00:00
testsdk.bbclass classes/testsdk: do_testsdkext avoid STAGING_DIR/BASE_WORKDIR in PATH 2016-02-11 22:33:40 +00:00
texinfo.bbclass texinfo.bbclass: native/cross uses dummy texinfo; target uses host's Texinfo. 2014-06-13 12:31:38 +01:00
tinderclient.bbclass bbclass: fix spelling mistakes 2015-11-24 15:50:27 +00:00
toaster.bbclass toaster.bbclass: reinstate scan for artifacts in the sdk directory 2016-02-04 23:39:01 +00:00
toolchain-scripts.bbclass toolchain-scripts.bbclass: add three other path to PATH in env.sh 2016-02-21 09:32:41 +00:00
typecheck.bbclass classes/lib: Add expand parameter to getVarFlag 2016-02-04 23:39:00 +00:00
uboot-config.bbclass uboot-config.bbclass: Allow multiple U-Boot config for machine 2015-02-08 08:00:24 +00:00
uninative.bbclass lib/qa.py: raise ValueError if file isn't an ELF 2016-02-16 11:17:10 +00:00
update-alternatives.bbclass update-alternatives: when warning about alt_link==alt_target, say what PN 2016-01-24 09:40:25 +00:00
update-rc.d.bbclass update-rc.d.bbclass: explicitly dep on initscripts 2015-08-30 12:35:58 +01:00
upstream-version-is-even.bbclass package_regex.inc: split entries with odd-even versioning into their own recipes 2015-12-08 10:20:51 +00:00
useradd-staticids.bbclass useradd-staticids.bbclass: Remove unnecessary spaces 2016-01-18 11:47:07 +00:00
useradd.bbclass classes/useradd: handle whitespace only USERADD/GROUPADD/GROUPMEMS 2016-02-11 12:27:44 +00:00
useradd_base.bbclass useradd_base.bbclass: Do not warn without a reason 2015-10-21 22:56:05 +01:00
utility-tasks.bbclass classes/lib: Add expand parameter to getVarFlag 2016-02-04 23:39:00 +00:00
utils.bbclass utils: Handle MLPREFIX in all_multilib_tune_values() 2015-08-01 07:34:04 +01:00
vala.bbclass vala.bbclass: enable PARALLEL_MAKE 2015-02-15 21:58:27 +00:00
waf.bbclass waf.bbclass: Remove --disable-static from EXTRA_OECONF 2016-02-19 15:33:02 +00:00