]> code.ossystems Code Review - openembedded-core.git/commit
sanity.bbclass: add optional untested host distro warning
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Wed, 17 Aug 2011 17:48:15 +0000 (18:48 +0100)
committerSaul Wold <sgw@linux.intel.com>
Thu, 18 Aug 2011 20:45:43 +0000 (13:45 -0700)
commit75e3875341ddc8940e9ee2ccbbb2ec18194a68e6
treeabb49821123353a7490d408233042524c0bb6548
parent4316c5e9eec67d71f4699102a63a5f968bd8d1d9
sanity.bbclass: add optional untested host distro warning

SANITY_TESTED_DISTROS, if specified, is expected to be a
newline-delimited list of distro identifier strings, e.g.

SANITY_TESTED_DISTROS = " \
        Ubuntu 11.04 \
        Fedora release 14 (Laughlin) \
        "

(spaces, tabs etc. are trimmed)

If SANITY_TESTED_DISTROS is defined, we will attempt to detect the host
distribution. If the distribution is not in SANITY_TESTED_DISTROS or we
could not detect the distribution then we show a warning during sanity
checking.

Provides the mechanism for fixing [YOCTO #1096].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
meta/classes/sanity.bbclass