Skip to contentSkip to conversation

adt_installer: allow specifying relative target sysroot paths

PATCH New Laurentiu Palcu 1 participant 2 messages Jul 30, 2013

lore
Share & tools
lore
#0 lore raw

cover adt_installer: allow specifying relative target sysroot paths

The following changes since commit bd1c441a210cae03fb6006c996227211cc29056b:

bitbake: bitbake: runqueue: add warning if invalidating invalid task (2013-07-29 15:25:09 +0100)

are available in the git repository at:

git://git.yoctoproject.org/poky-contrib lpalcu/b4955_adt_installer_sysroot_relative_path
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=lpalcu/b4955_adt_installer_sysroot_relative_path

Laurentiu Palcu (1):
adt_installer: allow specifying relative target sysroot paths

 .../installer/adt-installer/adt_installer          |    4 ++++
 .../adt-installer/scripts/adt_installer_internal   |    2 ++
 2 files changed, 6 insertions(+)
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 adt_installer: allow specifying relative target sysroot paths

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]

---
 .../installer/adt-installer/adt_installer          |    4 ++++
 .../adt-installer/scripts/adt_installer_internal   |    2 ++
 2 files changed, 6 insertions(+)
meta/recipes-devtools/installer/adt-installer/adt_installer +4 -0
index 58728af..a6042b9 100755
@@ -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############################################################################"
meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal +2 -0
index 7931ff5..462199c 100755
@@ -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"
Signature · 1 line
1.7.9.5