summaryrefslogtreecommitdiffstats
path: root/meta/classes/populate_sdk_base.bbclass
diff options
context:
space:
mode:
authorRandy Witt <randy.e.witt@linux.intel.com>2015-02-23 17:00:40 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-02-24 17:41:43 +0000
commit01c9f3b390b32315f10d0ccc21f86ef5ffd3b318 (patch)
tree97dfc1a8c58d8d5ea5084a57c5d1acabb97b4f0c /meta/classes/populate_sdk_base.bbclass
parentfe678e75ea7048bdbcc60022aaf2bc4b332c7538 (diff)
downloadpoky-01c9f3b390b32315f10d0ccc21f86ef5ffd3b318.tar.gz
toolchain-shar-template.sh: Make relocation optional.
If the buildsystem is copied into the sdk and its toolchain is to be used, then the relocation provided in toolchain-shar-template.sh isn't needed and will actually fail. So break the relocation aspect out and essentially make it another SDK_POST_INSTALL_COMMAND script. (From OE-Core rev: 9721378688a05cd8d8443c6ee4be823e5c0688f6) Signed-off-by: Randy Witt <randy.e.witt@linux.intel.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.bbclass10
1 files changed, 8 insertions, 2 deletions
diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass
index e3adacb2c9..5c0769373a 100644
--- a/meta/classes/populate_sdk_base.bbclass
+++ b/meta/classes/populate_sdk_base.bbclass
@@ -52,6 +52,7 @@ EXCLUDE_FROM_WORLD = "1"
52 52
53SDK_PACKAGING_FUNC ?= "create_shar" 53SDK_PACKAGING_FUNC ?= "create_shar"
54SDK_POST_INSTALL_COMMAND ?= "" 54SDK_POST_INSTALL_COMMAND ?= ""
55SDK_RELOCATE_AFTER_INSTALL ?= "1"
55 56
56SDK_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.manifest" 57SDK_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.manifest"
57python write_target_sdk_manifest () { 58python write_target_sdk_manifest () {
@@ -116,9 +117,14 @@ fakeroot tar_sdk() {
116 117
117fakeroot create_shar() { 118fakeroot create_shar() {
118 # copy in the template shar extractor script 119 # copy in the template shar extractor script
119 cp ${COREBASE}/meta/files/toolchain-shar-template.sh ${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.sh 120 cp ${COREBASE}/meta/files/toolchain-shar-extract.sh ${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.sh
120 121
121 cat << "EOF" > ${T}/post_install_command 122 rm -f ${T}/post_install_command
123
124 if [ ${SDK_RELOCATE_AFTER_INSTALL} -eq 1 ] ; then
125 cp ${COREBASE}/meta/files/toolchain-shar-relocate.sh ${T}/post_install_command
126 fi
127 cat << "EOF" >> ${T}/post_install_command
122${SDK_POST_INSTALL_COMMAND} 128${SDK_POST_INSTALL_COMMAND}
123EOF 129EOF
124 sed -i -e '/@SDK_POST_INSTALL_COMMAND@/r ${T}/post_install_command' ${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.sh 130 sed -i -e '/@SDK_POST_INSTALL_COMMAND@/r ${T}/post_install_command' ${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.sh