]> code.ossystems Code Review - openembedded-core.git/commit
classes/populate_sdk_ext: add some pre-install checks
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Thu, 11 Aug 2016 04:45:06 +0000 (16:45 +1200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 17 Aug 2016 09:32:15 +0000 (10:32 +0100)
commit6e6999a920b913ad9fdd2751100219c07cd14e54
tree1d145b0d8eafa39ec434add6125958ce1491bcd5
parent1d3e874f191f011eb9d7b0e12e513433c126036e
classes/populate_sdk_ext: add some pre-install checks

Check a number of things as early as possible in the eSDK installer
script so that the user gets an error up front rather than waiting for
the build system to be extracted and then have the error produced:

* Check for missing utilities specified in SANITY_REQUIRED_UTILITIES
  (along with gcc and g++), taking into account that some of these are
  satisfied by buildtools which ships as part of the SDK. We use the
  newly added capability to list an SDK's contents to allow us to see
  exactly which binaries are inside the buildtools installer.
* Check that Python is available (since the buildtools installer's
  relocate script is written in Python).
* Check that locale value set by the script is actually available
* Check that the install path is not on NFS

This does duplicate some of the checks in sanity.bbclass but it's
difficult to avoid that given that here they have to be written in shell
and there they are written in Python, as well as the fact that we only
need to run some of the checks here and not all (i.e. the ones that
relate to the host system or install path, and not those that check the
configuration or metadata). Given those issues and the fact that the
amount of code is fairly small I elected to just re-implement the checks
here.

Fixes [YOCTO #8657].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/populate_sdk_ext.bbclass
meta/files/toolchain-shar-extract.sh