summaryrefslogtreecommitdiff
path: root/meta/classes/native.bbclass
diff options
context:
space:
mode:
authorKristian Amlie <kristian.amlie@mender.io>2017-01-25 15:46:15 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-31 14:40:17 +0000
commit7d2a2160336413736dd4640f5b84ba4d74bb00f5 (patch)
tree6ed5cc076f99985cce8de3c12fccdeadf2ae19a2 /meta/classes/native.bbclass
parentbfb9ea2604557804bd8c16adb57ccdd868a4020f (diff)
downloadopenembedded-core-7d2a2160336413736dd4640f5b84ba4d74bb00f5.tar.gz
openembedded-core-7d2a2160336413736dd4640f5b84ba4d74bb00f5.tar.bz2
openembedded-core-7d2a2160336413736dd4640f5b84ba4d74bb00f5.zip
sstate: Make SSTATE_SCAN_CMD vars configurable using weak defaults.
For this we move them out of the python section so they can be overridden on a per-recipe basis. The motivation for this change is that not all tool chains need the path modifications provided by the command, and these will provide alternative or empty commands. The Go compiler is such an example. Signed-off-by: Kristian Amlie <kristian.amlie@mender.io> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/classes/native.bbclass')
-rw-r--r--meta/classes/native.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/native.bbclass b/meta/classes/native.bbclass
index 4d4aaadc02..ec91fc3c80 100644
--- a/meta/classes/native.bbclass
+++ b/meta/classes/native.bbclass
@@ -115,6 +115,10 @@ MACHINEOVERRIDES = ""
PATH_prepend = "${COREBASE}/scripts/native-intercept:"
+# This class encodes staging paths into its scripts data so can only be
+# reused if we manipulate the paths.
+SSTATE_SCAN_CMD ?= "${SSTATE_SCAN_CMD_NATIVE}"
+
python native_virtclass_handler () {
classextend = e.data.getVar('BBCLASSEXTEND') or ""
if "native" not in classextend: