diff options
author | Joshua Lock <joshua.g.lock@intel.com> | 2016-09-21 10:26:22 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-21 18:12:09 +0100 |
commit | e29c4609c9c316cf8e37c2f3d977cc3fe23f2d27 (patch) | |
tree | 9cbc93be10e26889052ddeca2d489300c4908df9 /meta | |
parent | a767c78abeb19a9d730e3c9b1f64c13fbbcade17 (diff) | |
download | poky-e29c4609c9c316cf8e37c2f3d977cc3fe23f2d27.tar.gz |
populate_sdk_base: fix support for changing SDKMACHINE settings
Include SDKMACHINE in the tasks stamp information and the name of
the sstate-inputdirs so that changing SDKMACHINE doesn't result in
valid output of the task being deleted when SDKMACHINE is changed.
Without this patch changing SDKMACHINE and building an SDK resulted
in toolchain installers for other SDKMACHINE's being deleted from
the deploy directoy.
[YOCTO #10275]
(From OE-Core rev: d7a06b53af0066bd12f5f42e10e82b307fd069ce)
Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/populate_sdk_base.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass index 6fe0b3704a..ce12f275bb 100644 --- a/meta/classes/populate_sdk_base.bbclass +++ b/meta/classes/populate_sdk_base.bbclass | |||
@@ -26,7 +26,7 @@ SDK_DIR = "${WORKDIR}/sdk" | |||
26 | SDK_OUTPUT = "${SDK_DIR}/image" | 26 | SDK_OUTPUT = "${SDK_DIR}/image" |
27 | SDK_DEPLOY = "${DEPLOY_DIR}/sdk" | 27 | SDK_DEPLOY = "${DEPLOY_DIR}/sdk" |
28 | 28 | ||
29 | SDKDEPLOYDIR = "${WORKDIR}/deploy-${PN}-populate-sdk" | 29 | SDKDEPLOYDIR = "${WORKDIR}/${SDKMACHINE}-deploy-${PN}-populate-sdk" |
30 | 30 | ||
31 | B_task-populate-sdk = "${SDK_DIR}" | 31 | B_task-populate-sdk = "${SDK_DIR}" |
32 | 32 | ||
@@ -125,7 +125,7 @@ SSTATE_SKIP_CREATION_task-populate-sdk = '1' | |||
125 | do_populate_sdk[cleandirs] = "${SDKDEPLOYDIR}" | 125 | do_populate_sdk[cleandirs] = "${SDKDEPLOYDIR}" |
126 | do_populate_sdk[sstate-inputdirs] = "${SDKDEPLOYDIR}" | 126 | do_populate_sdk[sstate-inputdirs] = "${SDKDEPLOYDIR}" |
127 | do_populate_sdk[sstate-outputdirs] = "${SDK_DEPLOY}" | 127 | do_populate_sdk[sstate-outputdirs] = "${SDK_DEPLOY}" |
128 | do_populate_sdk[stamp-extra-info] = "${MACHINE}" | 128 | do_populate_sdk[stamp-extra-info] = "${MACHINE}${SDKMACHINE}" |
129 | 129 | ||
130 | fakeroot create_sdk_files() { | 130 | fakeroot create_sdk_files() { |
131 | cp ${COREBASE}/scripts/relocate_sdk.py ${SDK_OUTPUT}/${SDKPATH}/ | 131 | cp ${COREBASE}/scripts/relocate_sdk.py ${SDK_OUTPUT}/${SDKPATH}/ |