adt-installer: Fix to work with meta-environment changes

There is a proper sysroot specified in the meta-environment script now,
which isn't a bad thing. We adjust the sed expression to cope with this.

That means the SDK installations in non-default paths start to work again.

(From OE-Core rev: 3be7b59893ed77f63eeca35b686df06a1dafb53d)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2014-10-03 12:24:21 +01:00
parent 6c3d1192c7
commit 63a0781005
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ for target_type in $YOCTOADT_TARGETS; do
[ -e "$env_script_original" ] && env_script=$env_script_original
[ -e "$env_script_relocated" ] && env_script=$env_script_relocated
$SUDO sed -i -e "s%##SDKTARGETSYSROOT##%$target_sysroot%g" $env_script
$SUDO sed -i -e "s%SDKTARGETSYSROOT=.*%SDKTARGETSYSROOT=$target_sysroot%g" $env_script
done
if [ "$YOCTOADT_QEMU" == "Y" ] || [ "$YOCTOADT_QEMU" == "y" ]; then