]> code.ossystems Code Review - openembedded-core.git/commitdiff
adt_installer: allow specifying relative target sysroot paths
authorLaurentiu Palcu <laurentiu.palcu@intel.com>
Tue, 30 Jul 2013 14:40:48 +0000 (17:40 +0300)
committerSaul Wold <sgw@linux.intel.com>
Fri, 2 Aug 2013 04:57:53 +0000 (21:57 -0700)
If one specifies a relative target sysroot path, then he/she must always
be in the same directory in order to be able to compile.

With this patch, adt_installer will automatically convert user
supplied relative paths to absolute.

[YOCTO #4955]

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-devtools/installer/adt-installer/adt_installer
meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal

index 58728afd63abd5a6189ac790ac4f3c10800afcf9..a6042b9c2d496d6ed5c33fa517e24340f21de713 100755 (executable)
@@ -272,6 +272,10 @@ download_images()
   select_sysroot_image=`eval echo $select_sysroot_image_var`
   select_sysroot=`eval echo $select_sysroot_var`
 
+  if [ -n "$select_sysroot" ]; then
+    select_sysroot=`readlink -m $select_sysroot`
+  fi
+
   if [ "$select_rootfs" != "" ]; then
     if [ $2 ]; then
     #echo_info "\n############################################################################"
index 7931ff5cd97f098a83ddae1bd50bd54cfc8cdd43..462199c5634375f674da37c1403bf919dbdbf7f7 100755 (executable)
@@ -242,6 +242,8 @@ target_sysroot=`eval echo $target_sysroot_var`
 
 if [ "$target_sysroot" == "" ]; then
   return 0
+else
+  target_sysroot=`readlink -m $target_sysroot`
 fi
 
 target_sysroot_image_var="\$YOCTOADT_TARGET_SYSROOT_IMAGE_$1"