2011-07-27 15:21:48 +00:00
|
|
|
|
2013-01-28 10:45:54 +00:00
|
|
|
baselib = "${@d.getVar('BASE_LIB_tune-' + (d.getVar('DEFAULTTUNE', True) or 'INVALID'), True) or d.getVar('BASELIB', True)}"
|
2011-07-27 15:21:48 +00:00
|
|
|
|
2011-07-29 14:21:58 +00:00
|
|
|
MULTILIB_VARIANTS = "${@extend_variants(d,'MULTILIBS','multilib')}"
|
2015-07-31 07:18:48 +00:00
|
|
|
MULTILIB_SAVE_VARNAME = "DEFAULTTUNE TARGET_ARCH TARGET_SYS TARGET_VENDOR"
|
2011-07-29 14:21:58 +00:00
|
|
|
|
2011-07-27 15:21:48 +00:00
|
|
|
MULTILIBS ??= "multilib:lib32"
|
2011-08-08 03:39:25 +00:00
|
|
|
|
2011-09-02 03:45:01 +00:00
|
|
|
STAGING_DIR_HOST = "${STAGING_DIR}/${MLPREFIX}${MACHINE}"
|
|
|
|
STAGING_DIR_TARGET = "${STAGING_DIR}/${MLPREFIX}${MACHINE}"
|
2013-09-13 12:35:31 +00:00
|
|
|
PKGDATA_DIR = "${STAGING_DIR}/${MACHINE}/pkgdata"
|
2011-09-02 03:45:01 +00:00
|
|
|
|
2011-08-15 22:59:32 +00:00
|
|
|
INHERIT += "multilib_global"
|
|
|
|
|
2012-08-02 07:49:06 +00:00
|
|
|
BBCLASSEXTEND_append = " ${MULTILIBS}"
|
2012-12-24 11:28:38 +00:00
|
|
|
|
2014-10-23 21:42:10 +00:00
|
|
|
MULTILIB_GLOBAL_VARIANTS ?= "lib32 lib64 libx32"
|
2013-04-12 16:46:30 +00:00
|
|
|
|
|
|
|
OPKG_ARGS_append = " --force-maintainer --force-overwrite"
|
2015-08-20 15:04:02 +00:00
|
|
|
|
|
|
|
# When multilib is enabled, allarch recipes will be installed into the MACHINE
|
|
|
|
# sysroot, not MLPREFIXMACHINE. This means that anything using pkg-config to
|
|
|
|
# find an allarch pkgconfig file will fail as the PKG_CONFIG_PATH only looks
|
|
|
|
# inside the multilib sysroot. Fix this by explicitly adding the MACHINE's
|
|
|
|
# architecture-independent pkgconfig location to PKG_CONFIG_PATH.
|
|
|
|
PKG_CONFIG_PATH .= ":${STAGING_DIR}/${MACHINE}${datadir}/pkgconfig"
|
2015-09-30 13:44:43 +00:00
|
|
|
PKG_CONFIG_PATH[vardepsexclude] = "MACHINE"
|