summaryrefslogtreecommitdiff
path: root/meta/classes/relocatable.bbclass
Commit message (Collapse)AuthorAgeFilesLines
* relocatable.bbclass: Clean up indentationRichard Purdie2010-02-221-43/+46
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* relocatable.bbclass: Handle symlinks correctlyRichard Purdie2010-02-221-1/+6
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* relocatable.bbclass: Enhancements to rpath replacement algorithmJoshua Lock2010-02-181-15/+38
| | | | | | | | | | | | | | This patch removes the hard coded number of parent directory operators ( /..) placed into the rpath and instead fully dynamically generates the rpath entries based on the current rpath. Theoretically this patch means we can now make cross packages relocatable but this is *not* enabled as chrpath can only set a new rpath of the same length or shorter than the existing rpath. Due to the amount of parent directory jumps we need to encode in the rpath this can easily fail when TMPDIR is in a short namespace (e.g. /usr/poky). Signed-off-by: Joshua Lock <josh@linux.intel.com>
* relocatable.bbclass: Tidy up classJoshua Lock2010-02-121-4/+3
| | | | | | | There was a hard coded path and a spurious variable left in before the last commit. Whoops ... Signed-off-by: Joshua Lock <josh@linux.intel.com>
* relocatable.bbclass: Improve logic and styleJoshua Lock2010-02-121-15/+31
| | | | | | | | | | | | The initial pass at this class was pretty lame and broke on a lot of native packages. This rewrite makes the code a lot more dynamic, removing use of hard coded paths and improving the logic. The class now runs a chrpath -l over the binary to determine what rpaths are currently set. It then munges the output and determines relative versions of each component of the rpath and uses chrpath -r to set them. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* relocatable.bbclass: remove hard-coded rpaths from native binariesJoshua Lock2010-02-111-0/+24
The relocatable path will pre-process built binaries in SYSROOT_DESTDIR and replace any harcoded dynamic link rpaths with relative paths. Add an inherit of class in native.bbclass to make our native packages relocatable and tweak the chrpath recipe so that the native package can make itself relocatable with the just built chrpath binary. Signed-off-by: Joshua Lock <josh@linux.intel.com>