]> code.ossystems Code Review - openembedded-core.git/commit
relocatable.bbclass: Improve logic and style
authorJoshua Lock <josh@linux.intel.com>
Fri, 12 Feb 2010 14:55:32 +0000 (14:55 +0000)
committerJoshua Lock <josh@linux.intel.com>
Fri, 12 Feb 2010 15:00:44 +0000 (15:00 +0000)
commitf1a87fadc7c091c67499a0c953603ce63f826177
tree9e49d3682feb96eb4bf763b94d22d6155736f52b
parent62c103ce0e154ee5bf6183987adc90fc6df154c6
relocatable.bbclass: Improve logic and style

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>
meta/classes/relocatable.bbclass