]> code.ossystems Code Review - openembedded-core.git/commit
lib/oe/rootfs: tell intercepts where the native sysroot is
authorRoss Burton <ross.burton@intel.com>
Tue, 20 Oct 2015 19:14:12 +0000 (20:14 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 24 Oct 2015 11:42:40 +0000 (12:42 +0100)
commit646599a1f3d39238ba8009993750a46ae220e762
tree7f40c8ba471d801b917c3fd25f2419c86934ad69
parent656f09accfd7651f179e02c12f40f4d3bec0be0c
lib/oe/rootfs: tell intercepts where the native sysroot is

Some intercepts may want to access files in the native sysroot that are not on
$PATH (such as something in $libexecdir) but any use of STAGING_DIR_NATIVE in
the postinst that calls the intercept will be "baked" into the package, so if
sstate is reused it will use paths that may not exist.

Solve this by exporting the location of the native sysroot in the environment so
the postinst and intercept can use an environment variable instead of a bitbake
variable.

Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/lib/oe/rootfs.py