mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
fe678e75ea
commit
01c9f3b390
@@ -52,6 +52,7 @@ EXCLUDE_FROM_WORLD = "1"
|
||||
|
||||
SDK_PACKAGING_FUNC ?= "create_shar"
|
||||
SDK_POST_INSTALL_COMMAND ?= ""
|
||||
SDK_RELOCATE_AFTER_INSTALL ?= "1"
|
||||
|
||||
SDK_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.manifest"
|
||||
python write_target_sdk_manifest () {
|
||||
@@ -116,9 +117,14 @@ fakeroot tar_sdk() {
|
||||
|
||||
fakeroot create_shar() {
|
||||
# copy in the template shar extractor script
|
||||
cp ${COREBASE}/meta/files/toolchain-shar-template.sh ${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.sh
|
||||
cp ${COREBASE}/meta/files/toolchain-shar-extract.sh ${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.sh
|
||||
|
||||
cat << "EOF" > ${T}/post_install_command
|
||||
rm -f ${T}/post_install_command
|
||||
|
||||
if [ ${SDK_RELOCATE_AFTER_INSTALL} -eq 1 ] ; then
|
||||
cp ${COREBASE}/meta/files/toolchain-shar-relocate.sh ${T}/post_install_command
|
||||
fi
|
||||
cat << "EOF" >> ${T}/post_install_command
|
||||
${SDK_POST_INSTALL_COMMAND}
|
||||
EOF
|
||||
sed -i -e '/@SDK_POST_INSTALL_COMMAND@/r ${T}/post_install_command' ${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.sh
|
||||
|
||||
Reference in New Issue
Block a user