blob: e74dec81a8974a8cc8b622c1bc0309a463b1b23e [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001
Brad Bishop6e60e8b2018-02-01 10:27:11 -05002baselib = "${@d.getVar('BASE_LIB_tune-' + (d.getVar('DEFAULTTUNE') or 'INVALID')) or d.getVar('BASELIB')}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05003
4MULTILIB_VARIANTS = "${@extend_variants(d,'MULTILIBS','multilib')}"
Patrick Williamsf1e5d692016-03-30 15:21:19 -05005MULTILIB_SAVE_VARNAME = "DEFAULTTUNE TARGET_ARCH TARGET_SYS TARGET_VENDOR"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05006
7MULTILIBS ??= "multilib:lib32"
8
Brad Bishop6e60e8b2018-02-01 10:27:11 -05009STAGING_DIR_HOST = "${WORKDIR}/${MLPREFIX}recipe-sysroot"
10STAGING_DIR_TARGET = "${WORKDIR}/${MLPREFIX}recipe-sysroot"
11RECIPE_SYSROOT = "${WORKDIR}/${MLPREFIX}recipe-sysroot"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050012
13INHERIT += "multilib_global"
14
15BBCLASSEXTEND_append = " ${MULTILIBS}"
16
17MULTILIB_GLOBAL_VARIANTS ?= "lib32 lib64 libx32"
18
19OPKG_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.
Brad Bishop6e60e8b2018-02-01 10:27:11 -050026PKG_CONFIG_PATH .= ":${WORKDIR}/recipe-sysroot/${datadir}/pkgconfig"
27PKG_CONFIG_PATH[vardepsexclude] = "datadir WORKDIR"
28PKG_CONFIG_PATH[vardepvalueexclude] = ":${WORKDIR}/recipe-sysroot/${datadir}/pkgconfig"