Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | |
| 2 | baselib = "${@d.getVar('BASE_LIB_tune-' + (d.getVar('DEFAULTTUNE', True) or 'INVALID'), True) or d.getVar('BASELIB', True)}" |
| 3 | |
| 4 | MULTILIB_VARIANTS = "${@extend_variants(d,'MULTILIBS','multilib')}" |
Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 5 | MULTILIB_SAVE_VARNAME = "DEFAULTTUNE TARGET_ARCH TARGET_SYS TARGET_VENDOR" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 6 | |
| 7 | MULTILIBS ??= "multilib:lib32" |
| 8 | |
| 9 | STAGING_DIR_HOST = "${STAGING_DIR}/${MLPREFIX}${MACHINE}" |
| 10 | STAGING_DIR_TARGET = "${STAGING_DIR}/${MLPREFIX}${MACHINE}" |
| 11 | PKGDATA_DIR = "${STAGING_DIR}/${MACHINE}/pkgdata" |
| 12 | |
| 13 | INHERIT += "multilib_global" |
| 14 | |
| 15 | BBCLASSEXTEND_append = " ${MULTILIBS}" |
| 16 | |
| 17 | MULTILIB_GLOBAL_VARIANTS ?= "lib32 lib64 libx32" |
| 18 | |
| 19 | OPKG_ARGS_append = " --force-maintainer --force-overwrite" |
| 20 | |
| 21 | # When multilib is enabled, allarch recipes will be installed into the MACHINE |
| 22 | # sysroot, not MLPREFIXMACHINE. This means that anything using pkg-config to |
| 23 | # find an allarch pkgconfig file will fail as the PKG_CONFIG_PATH only looks |
| 24 | # inside the multilib sysroot. Fix this by explicitly adding the MACHINE's |
| 25 | # architecture-independent pkgconfig location to PKG_CONFIG_PATH. |
| 26 | PKG_CONFIG_PATH .= ":${STAGING_DIR}/${MACHINE}${datadir}/pkgconfig" |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 27 | PKG_CONFIG_PATH[vardepsexclude] = "MACHINE datadir STAGING_DIR" |
| 28 | PKG_CONFIG_PATH[vardepvalueexclude] = ":${STAGING_DIR}/${MACHINE}${datadir}/pkgconfig" |