Skip to contentSkip to conversation

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

PATCH New Richard Purdie 1 participant 1 message Oct 3, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal +1 -1
index 00db301..2a8a30c 100755
@@ -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