From 5d9453049915db48ec4b5972e12287417ebb61a2 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 7 Jun 2011 17:27:03 +0800 Subject: multilib: Add support for compiling recipes against multiple ABIs This patch adds the core multilib class which can be used along with a parameter specifying the mutlilib to use in BBCLASSEXTEND. The MLPREFIX variable is added and can be used in cases where its too difficult to dynmaically work out where a mutltilib prefix is needed to be added to a variable. This includes: * SHLIBSDIR and PACKAGE_ARCH fixes from Lianhao Lu. * PACKAGE_DYNAMIC mapping from Yu Ke * PACKAGE_INSTALL mapping from Yu Ke * RPROVIDES mapping from Yu Ke * TARGET_VENDOR fix from Mark Hatle * Ignorning *-native-runtime dependnecies as well as *-native from Yu Ke * Map PKG and ALLOW_EMPTY from Dongxiao Xu * Ensure RCONFLICTS and PKG field dependencies are remapped (from Dongxiao Xu) * Ensure PN and MLPREFIX are set at the same time to ensure consistent BPN values (Yu Ke) Signed-off-by: Yu Ke Signed-off-by: Xu Dongxiao Signed-off-by: Lianhao Lu Signed-off-by: Richard Purdie --- meta/conf/multilib.conf | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 meta/conf/multilib.conf (limited to 'meta/conf/multilib.conf') diff --git a/meta/conf/multilib.conf b/meta/conf/multilib.conf new file mode 100644 index 0000000000..894b7a51f7 --- /dev/null +++ b/meta/conf/multilib.conf @@ -0,0 +1,24 @@ + +baselib = "${@d.getVar('BASE_LIB_tune-' + (d.getVar('DEFAULTTUNE', True) or 'INVALID'), True) or 'lib'}" + +MULTILIBS ??= "multilib:lib32" +BBCLASSEXTEND_append_pn-linux-libc-headers = " ${MULTILIBS}" +BBCLASSEXTEND_append_pn-eglibc-initial = " ${MULTILIBS}" +BBCLASSEXTEND_append_pn-eglibc = " ${MULTILIBS}" +BBCLASSEXTEND_append_pn-libgcc = " ${MULTILIBS}" +BBCLASSEXTEND_append_pn-gcc-runtime = " ${MULTILIBS}" +BBCLASSEXTEND_append_pn-libtool-cross = " ${MULTILIBS}" +BBCLASSEXTEND_append_pn-zlib = " ${MULTILIBS}" +BBCLASSEXTEND_append_pn-binutils-cross = " ${MULTILIBS}" +BBCLASSEXTEND_append_pn-gcc-cross-initial = " ${MULTILIBS}" +BBCLASSEXTEND_append_pn-gcc-cross-intermediate = " ${MULTILIBS}" +BBCLASSEXTEND_append_pn-gcc-cross = " ${MULTILIBS}" +BBCLASSEXTEND_append_pn-busybox = " ${MULTILIBS}" +BBCLASSEXTEND_append_pn-update-rc.d = " ${MULTILIBS}" +BBCLASSEXTEND_append_pn-util-linux = " ${MULTILIBS}" +BBCLASSEXTEND_append_pn-gettext = " ${MULTILIBS}" +BBCLASSEXTEND_append_pn-bash = " ${MULTILIBS}" +BBCLASSEXTEND_append_pn-ncurses = " ${MULTILIBS}" +BBCLASSEXTEND_append_pn-expat = " ${MULTILIBS}" +BBCLASSEXTEND_append_pn-eglibc-locale = " ${MULTILIBS}" + -- cgit 1.2.3-korg