From 7d2a2160336413736dd4640f5b84ba4d74bb00f5 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. Signed-off-by: Kristian Amlie Signed-off-by: Ross Burton --- meta/classes/crosssdk.bbclass | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'meta/classes/crosssdk.bbclass') diff --git a/meta/classes/crosssdk.bbclass b/meta/classes/crosssdk.bbclass index c5c29ea3da..a5ffd977b0 100644 --- a/meta/classes/crosssdk.bbclass +++ b/meta/classes/crosssdk.bbclass @@ -10,6 +10,10 @@ python () { STAGING_BINDIR_TOOLCHAIN = "${STAGING_DIR_NATIVE}${bindir_native}/${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}" +# 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}" + TARGET_ARCH = "${SDK_ARCH}" TARGET_VENDOR = "${SDK_VENDOR}" TARGET_OS = "${SDK_OS}" -- cgit v1.2.3