toaster: toaster oe-selftest support

This patch adds toaster tests using the oe-selftest infrastructure.
You need to have builds done - the tests will verify data integrity
after the toaster collection phase.

Once you have your toaster builds done, to run the automated backend
tests via oe-selftest do the followings:

1. Update builddir/conf/bblayers.conf to contain the meta-selftest
layer
2. From the builddir run:

'oe-selftest toaster'

or if you just want to run a single test:

'oe-selftest toaster.Toaster_DB_Tests.testname'

This first part adds the meta/lib/oeqa toaster file.

(From OE-Core rev: 762d425ed6f6d9046d3e3230c44b42ea6173b447)

Signed-off-by: Ionut Chisanovici <ionutx.chisanovici@intel.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake: Revert "toaster: toaster oe-selftest support"

This reverts commit bb5b1d6b139b886e54bfdc0c17f2b556db6a7fde.

Applied to incorrect repo.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake: fetch2: improve handling of two classes of URL parameter mistakes

Handle the following situations in a URL (e.g. in SRC_URI):

* Trailing semicolon in a URL - this is now ignored.
* Parameter specified with no value (no equals sign). This still
  produces an error, but at least it is MalformedUrl with a proper
  message rather than "ValueError: need more than 1 value to unpack".

(Bitbake rev: bfd13dfbc4c9f1dd8315002271791b1d9e274989)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake: utils: avoid printing traceback on ExpansionError during parsing

If an ExpansionError occurs during better_exec() we should just raise it
instead of printing the traceback, so that recipe errors (such as broken
URLs in SRC_URI) are more easily comprehensible.

(Bitbake rev: 5b0da8932c318813138c113d2bb20498145dbd42)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
ref-manual: Updated reference sections for environment setup scripts.

Fixes [YOCTO #5895]

Both section for the environment setup scripts (oe-init-build-env
and oe-init-build-env-memres) were updated to provide some usage
information on the conf-notes.txt file.  This file is where the
default list of images appears that the scripts display upon
completion.

(From yocto-docs rev: 77bd0cd6eeb77036fb7e1584c469f98c2524b750)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
ref-manual: Added new chapter on QA error and warning messages.

This new chapter is a reference on the default configuration
QA check messages you can get from errors and warnings.

(From yocto-docs rev: 04d766b4e1235ae46df38c4b296cb2729b6a439f)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
ref-manual: Added LDFLAGS variable and supporting links.

(From yocto-docs rev: 58d583c9167feee65d7d22b343ea250cb8807261)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
ref-manual: Added the BUILD_LDFLAGS variable and supporting links.

(From yocto-docs rev: c353688ed6a6a923dd174a9dedf97c8ac3f128a6)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
ref-manual: Added TARGET_LDFLAGS variable and supporting links.

(From yocto-docs rev: 23843e4476b03c6bb75fd4c1b079ccae526ac3a3)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
ref-manual: Added BUILDSDK_LDFLAGS variable and supporting links.

(From yocto-docs rev: a63cb14dbd33187daa54d3953b464636f19c211a)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
ref-manual: Added variables that pass compilers and their supporting links.

Updated the CFLAGS and TARGET_CFLAGS variables.

Created these new variables:

 BUILD_CFLAGS
 BUILDSDK_CFLAGS
 CXXFLAGS
 TARGET_CXXFLAGS
 BUILD_CXXFLAGS
 BUILD_SDKFLAGS
 CPPFLAGS
 TARGET_CPPFLAGS
 BUILD_CPPFLAGS
 BUILDSDK_CPPFLAGS

(From yocto-docs rev: 00d1895f56f8d65944549ab216d1e0ccdceea674)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
ref-manual: Added TARGET_CC_ARCH variable and supporting links.

(From yocto-docs rev: d0887f66e3bc9d420d7ce626d5467bbc6d259b90)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
ref-manual: Added TUNE_CCARGS variable and supporting links.

(From yocto-docs rev: c06a389bb447ea35314f7545d19ef12fb8812fb9)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
ref-manual: Added HOST_CC_ARCH variable.

(From yocto-docs rev: 6b241b6a7538796b9a0259fb01ff006d40b60cb1)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
ref-manual: Added PRIVATE_LIBS variable and supporting links.

(From yocto-docs rev: f4e8652581fe99a0d833242a8483ed637e55e3a5)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
ref-manual: Applied review edits to QA messages and insane.bbclass.

Fixes [YOCTO #6159]

Edits from Paul Eggleton included some reformatting, some minor
wording tweaks, and edits to a couple tests as described in the
insane.bbclass.

(From yocto-docs rev: b42ef1bd51cb20f6bbb6bf812999e3a35b332339)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
ref-manual: Edits to the QA checks message section and insane.bbclass.

Fixes [YOCTO #6159]

I applied some review edits to various parts of the QA chapter
as derived by Paul Eggleton.  Also, updated two areas of the
insane.bbclass list.

(From yocto-docs rev: 6529a261961339b747bb3b89b3080ef794244809)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
ref-manual: Edits to a few variables in the glossary.

I updated the following variables with minor changes:

  TARGET_CC_ARCH
  BUILD_CPPFLAGS
  BUILDSDK_CPPFLAGS
  CPPFLAGS
  TARGET_CPPFLAGS

(From yocto-docs rev: f7d48ed379778a8568c7e5f812cdb1cbc5339f39)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
ref-manual: More edits to some compiler passing variables.

(From yocto-docs rev: 39a6ade52082b4c82a91ac985f7312496a1e837b)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
ref-manual: Took out the links to the "Making Images Secure" section.

Updated the following variables:

  CFLAGS
  CPPFLAGS
  CXXFLAGS

(From yocto-docs rev: 58d82513ef70287717e7e208742aa72196708fc1)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>