diff options
Diffstat (limited to 'meta/classes/relocatable.bbclass')
-rw-r--r-- | meta/classes/relocatable.bbclass | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/classes/relocatable.bbclass b/meta/classes/relocatable.bbclass new file mode 100644 index 0000000000..4ca9981f44 --- /dev/null +++ b/meta/classes/relocatable.bbclass | |||
@@ -0,0 +1,7 @@ | |||
1 | inherit chrpath | ||
2 | |||
3 | SYSROOT_PREPROCESS_FUNCS += "relocatable_binaries_preprocess" | ||
4 | |||
5 | python relocatable_binaries_preprocess() { | ||
6 | rpath_replace(d.expand('${SYSROOT_DESTDIR}'), d) | ||
7 | } | ||