]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
adt-installer: Fix to work with meta-environment changes
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 3 Oct 2014 11:24:21 +0000 (12:24 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 4 Oct 2014 22:34:13 +0000 (23:34 +0100)
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.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal

index 00db301df045b265fb29a01697952d8c2a51bcc2..2a8a30ccdc917e0f97a3f65e2f529fdf5d3050fe 100755 (executable)
@@ -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