mirror of
https://git.yoctoproject.org/poky
synced 2026-04-29 00:32:14 +02:00
toolchain-shar-extract: Add post-relocate scripts
Recipes can now install post-relocation scripts which will be run when the SDK is installed. (From OE-Core rev: 93ec145f421a45077b40ae99ee6a96bc11f91f18) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
f51f28b7b9
commit
cf85c5a490
@@ -116,6 +116,21 @@ fi
|
||||
EOF
|
||||
}
|
||||
|
||||
toolchain_create_post_relocate_script() {
|
||||
script=$1
|
||||
rm -f $script
|
||||
touch $script
|
||||
|
||||
cat >> $script <<EOF
|
||||
if [ -d "${SDKPATHNATIVE}/post-relocate-setup.d/" ]; then
|
||||
for s in ${SDKPATHNATIVE}/post-relocate-setup.d/*.sh; do
|
||||
\$s "\$1"
|
||||
done
|
||||
rm -rf "${SDKPATHNATIVE}/post-relocate-setup.d"
|
||||
fi
|
||||
EOF
|
||||
}
|
||||
|
||||
#we get the cached site config in the runtime
|
||||
TOOLCHAIN_CONFIGSITE_NOCACHE = "${@siteinfo_get_files(d)}"
|
||||
TOOLCHAIN_CONFIGSITE_SYSROOTCACHE = "${STAGING_DIR}/${MLPREFIX}${MACHINE}/${target_datadir}/${TARGET_SYS}_config_site.d"
|
||||
|
||||
Reference in New Issue
Block a user