]> code.ossystems Code Review - openembedded-core.git/commitdiff
adt_installer: Fix sed file not found error
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 30 Jun 2014 15:21:17 +0000 (16:21 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 30 Jun 2014 15:35:03 +0000 (16:35 +0100)
We need to look for the installed file within the sysroot we just installed
so add in the missing prefix. This avoids errors like:

Installing cross canadian packages for qemux86 ...
sed: no input files

[YOCTO #6443]

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

index 432ba41237512d371141ec8548611d0f88da428e..8d2ff578212bea6b9e05e7cd615b73b7ba1e84e8 100755 (executable)
@@ -157,7 +157,7 @@ for target_type in $YOCTOADT_TARGETS; do
 
   # get the environment setup script paths: original (the one before relocation)
   # and relocated
-  env_script_original=`$OPKG_CMD -f $OPKG_CONFIG_FILE -o $NATIVE_INSTALL_DIR files meta-environment-$machine|\
+  env_script_original=$NATIVE_INSTALL_DIR`$OPKG_CMD -f $OPKG_CONFIG_FILE -o $NATIVE_INSTALL_DIR files meta-environment-$machine|\
                                                        grep environment-setup`
   env_script_relocated=$INSTALL_FOLDER/${env_script_original##*/}