summaryrefslogtreecommitdiffstats
path: root/meta/classes/populate_sdk_base.bbclass
diff options
context:
space:
mode:
authorRuslan Bilovol <rbilovol@cisco.com>2017-11-22 13:20:05 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-07-24 11:52:27 +0100
commitbf5b43495a99bb8d002e02c688746e78c9430c21 (patch)
tree6f4e21e6b52678ac0a72d92be7a5be146252530c /meta/classes/populate_sdk_base.bbclass
parent2019f782604a554412cc2ceb0f46760a83984487 (diff)
downloadpoky-bf5b43495a99bb8d002e02c688746e78c9430c21.tar.gz
relocate_sdk.py: remove hardcoded SDK path
This patch removes hardcodes added to relocate_sdk.py during SDK build, making it flexible and reusable. Now default SDK path is passed to the script as parameter rather then harcoded inside it. This allows to reuse this script for multiple relocations, and adds possibility to relocate SDK multiple times (From OE-Core rev: 6671a4d980c8bef8f402780a308f6c43a25044aa) Signed-off-by: Ruslan Bilovol <rbilovol@cisco.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/populate_sdk_base.bbclass')
-rw-r--r--meta/classes/populate_sdk_base.bbclass5
1 files changed, 0 insertions, 5 deletions
diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass
index 7ffaf84a45..e27ee036a2 100644
--- a/meta/classes/populate_sdk_base.bbclass
+++ b/meta/classes/populate_sdk_base.bbclass
@@ -161,11 +161,6 @@ do_populate_sdk[stamp-extra-info] = "${MACHINE_ARCH}${SDKMACHINE}"
161 161
162fakeroot create_sdk_files() { 162fakeroot create_sdk_files() {
163 cp ${COREBASE}/scripts/relocate_sdk.py ${SDK_OUTPUT}/${SDKPATH}/ 163 cp ${COREBASE}/scripts/relocate_sdk.py ${SDK_OUTPUT}/${SDKPATH}/
164
165 # Replace the ##DEFAULT_INSTALL_DIR## with the correct pattern.
166 # Escape special characters like '+' and '.' in the SDKPATH
167 escaped_sdkpath=$(echo ${SDKPATH} |sed -e "s:[\+\.]:\\\\\\\\\0:g")
168 sed -i -e "s:##DEFAULT_INSTALL_DIR##:$escaped_sdkpath:" ${SDK_OUTPUT}/${SDKPATH}/relocate_sdk.py
169} 164}
170 165
171python check_sdk_sysroots() { 166python check_sdk_sysroots() {