From 2313a77d8474c742e1cd8cee246f6c05847dd3c6 Mon Sep 17 00:00:00 2001 From: Kristian Amlie Date: Wed, 25 Jan 2017 15:46:15 +0100 Subject: 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. (From OE-Core rev: 7d2a2160336413736dd4640f5b84ba4d74bb00f5) Signed-off-by: Kristian Amlie Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- meta/classes/cross.bbclass | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'meta/classes/cross.bbclass') diff --git a/meta/classes/cross.bbclass b/meta/classes/cross.bbclass index ee8e150e4c..2602153a97 100644 --- a/meta/classes/cross.bbclass +++ b/meta/classes/cross.bbclass @@ -38,6 +38,10 @@ TOOLCHAIN_OPTIONS = "" DEPENDS_GETTEXT = "gettext-native" +# 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}" + # Path mangling needed by the cross packaging # Note that we use := here to ensure that libdir and includedir are # target paths. -- cgit v1.2.3-54-g00ecf