summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-07-22 13:08:58 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-07-25 12:06:30 +0100
commitdffe253336f4cc1999ad2a2323d346bfa5f22047 (patch)
tree35d54bca59f409cd5970c45b835df75c64887453 /meta/classes
parenteea4bd731ef286516ee1fb934fe2222a09c06e70 (diff)
downloadpoky-dffe253336f4cc1999ad2a2323d346bfa5f22047.tar.gz
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. (From OE-Core rev: aeea22da699b276a97ca1a17e3c53176c9afd9de) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/cross.bbclass7
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"
38# Path mangling needed by the cross packaging 38# Path mangling needed by the cross packaging
39# Note that we use := here to ensure that libdir and includedir are 39# Note that we use := here to ensure that libdir and includedir are
40# target paths. 40# target paths.
41target_libdir := "${libdir}" 41target_base_prefix := "${base_prefix}"
42target_includedir := "${includedir}"
43target_base_libdir := "${base_libdir}"
44target_prefix := "${prefix}" 42target_prefix := "${prefix}"
45target_exec_prefix := "${exec_prefix}" 43target_exec_prefix := "${exec_prefix}"
44target_base_libdir = "${target_base_prefix}/${baselib}"
45target_libdir = "${target_exec_prefix}/${baselib}"
46target_includedir := "${includedir}"
46 47
47# Overrides for paths 48# Overrides for paths
48CROSS_TARGET_SYS_DIR = "${MULTIMACH_TARGET_SYS}" 49CROSS_TARGET_SYS_DIR = "${MULTIMACH_TARGET_SYS}"