xref: /openbmc/openbmc/poky/meta/conf/multilib.conf (revision 2a25492c)
1
2baselib = "${@d.getVar('BASE_LIB:tune-' + (d.getVar('DEFAULTTUNE') or 'INVALID')) or d.getVar('BASELIB')}"
3
4MULTILIB_VARIANTS = "${@extend_variants(d,'MULTILIBS','multilib')}"
5MULTILIB_VARIANTS[vardeps] += "MULTILIBS"
6MULTILIB_SAVE_VARNAME = "DEFAULTTUNE TARGET_ARCH TARGET_SYS TARGET_VENDOR"
7
8MULTILIBS ??= "multilib:lib32"
9
10STAGING_DIR_HOST = "${WORKDIR}/${MLPREFIX}recipe-sysroot"
11STAGING_DIR_TARGET = "${WORKDIR}/${MLPREFIX}recipe-sysroot"
12RECIPE_SYSROOT = "${WORKDIR}/${MLPREFIX}recipe-sysroot"
13RECIPE_SYSROOT:class-native = "${WORKDIR}/recipe-sysroot"
14
15PSEUDO_IGNORE_PATHS .= ",${WORKDIR}/${MLPREFIX}recipe-sysroot"
16
17INHERIT += "multilib_global"
18
19BBCLASSEXTEND:append = " ${MULTILIBS}"
20
21MULTILIB_GLOBAL_VARIANTS ?= "lib32 lib64 libx32"
22
23OPKG_ARGS:append = " --force-maintainer --force-overwrite"
24
25# When multilib is enabled, allarch recipes will be installed into the MACHINE
26# sysroot, not MLPREFIXMACHINE.  This means that anything using pkg-config to
27# find an allarch pkgconfig file will fail as the PKG_CONFIG_PATH only looks
28# inside the multilib sysroot.  Fix this by explicitly adding the MACHINE's
29# architecture-independent pkgconfig location to PKG_CONFIG_PATH.
30PKG_CONFIG_PATH .= ":${WORKDIR}/recipe-sysroot/${datadir}/pkgconfig"
31PKG_CONFIG_PATH[vardepsexclude] = "datadir WORKDIR"
32PKG_CONFIG_PATH[vardepvalueexclude] = ":${WORKDIR}/recipe-sysroot/${datadir}/pkgconfig"
33
34# These recipes don't need multilib variants, the ${BPN} PROVDES/RPROVDES
35# ${MLPREFIX}${BPN}
36NON_MULTILIB_RECIPES = "grub grub-efi make-mod-scripts ovmf u-boot"
37