diff options
Diffstat (limited to 'meta/classes/populate_sdk_base.bbclass')
-rw-r--r-- | meta/classes/populate_sdk_base.bbclass | 10 |
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 | ||
53 | SDK_PACKAGING_FUNC ?= "create_shar" | 53 | SDK_PACKAGING_FUNC ?= "create_shar" |
54 | SDK_POST_INSTALL_COMMAND ?= "" | 54 | SDK_POST_INSTALL_COMMAND ?= "" |
55 | SDK_RELOCATE_AFTER_INSTALL ?= "1" | ||
55 | 56 | ||
56 | SDK_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.manifest" | 57 | SDK_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.manifest" |
57 | python write_target_sdk_manifest () { | 58 | python write_target_sdk_manifest () { |
@@ -116,9 +117,14 @@ fakeroot tar_sdk() { | |||
116 | 117 | ||
117 | fakeroot create_shar() { | 118 | fakeroot 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} |
123 | EOF | 129 | EOF |
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 |