diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-07-22 13:08:58 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-07-22 15:38:31 +0100 |
commit | aeea22da699b276a97ca1a17e3c53176c9afd9de (patch) | |
tree | a5ca8c74c4fdaaed1ed9fd58c08ea1f225b33e46 /meta/classes/cross.bbclass | |
parent | b4c23fce3eadaff8fc621d38759d493cd03cc131 (diff) | |
download | openembedded-core-aeea22da699b276a97ca1a17e3c53176c9afd9de.tar.gz openembedded-core-aeea22da699b276a97ca1a17e3c53176c9afd9de.tar.bz2 openembedded-core-aeea22da699b276a97ca1a17e3c53176c9afd9de.zip |
bitbake.conf/cross.bbclass: Add ability to dynamically change library location
Add the ability to dynamically change the library directory from "lib" to
other values. This allows the tune files to specifiy altnerative ABIs
which can be dynamically enabled by the multilib BBCLASSEXTEND code.
A variety of approaches have been attempted with this, the immediate
expansions in cross.bbclass being problematic as they are they are expanded
before the bbclass extend event hander runs. This approach ensures the
${baselib} variable is retained in the expressions resolving that complication.
Derived from some ideas from Mark Hatle.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/cross.bbclass')
-rw-r--r-- | meta/classes/cross.bbclass | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/meta/classes/cross.bbclass b/meta/classes/cross.bbclass index f9fd07a9a2..81358ec8dd 100644 --- a/meta/classes/cross.bbclass +++ b/meta/classes/cross.bbclass @@ -38,11 +38,12 @@ DEPENDS_GETTEXT = "gettext-native" # Path mangling needed by the cross packaging # Note that we use := here to ensure that libdir and includedir are # target paths. -target_libdir := "${libdir}" -target_includedir := "${includedir}" -target_base_libdir := "${base_libdir}" +target_base_prefix := "${base_prefix}" target_prefix := "${prefix}" target_exec_prefix := "${exec_prefix}" +target_base_libdir = "${target_base_prefix}/${baselib}" +target_libdir = "${target_exec_prefix}/${baselib}" +target_includedir := "${includedir}" # Overrides for paths CROSS_TARGET_SYS_DIR = "${MULTIMACH_TARGET_SYS}" |