blob: 8a8db582df49bcc4c2796335ebb43c9bf0dbfec8 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001
Patrick Williams213cb262021-08-07 19:21:33 -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 Williams213cb262021-08-07 19:21:33 -050012RECIPE_SYSROOT:class-native = "${WORKDIR}/recipe-sysroot"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050013
14INHERIT += "multilib_global"
15
Patrick Williams213cb262021-08-07 19:21:33 -050016BBCLASSEXTEND:append = " ${MULTILIBS}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050017
18MULTILIB_GLOBAL_VARIANTS ?= "lib32 lib64 libx32"
19
Patrick Williams213cb262021-08-07 19:21:33 -050020OPKG_ARGS:append = " --force-maintainer --force-overwrite"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050021
22# When multilib is enabled, allarch recipes will be installed into the MACHINE
23# sysroot, not MLPREFIXMACHINE. This means that anything using pkg-config to
24# find an allarch pkgconfig file will fail as the PKG_CONFIG_PATH only looks
25# inside the multilib sysroot. Fix this by explicitly adding the MACHINE's
26# architecture-independent pkgconfig location to PKG_CONFIG_PATH.
Brad Bishop6e60e8b2018-02-01 10:27:11 -050027PKG_CONFIG_PATH .= ":${WORKDIR}/recipe-sysroot/${datadir}/pkgconfig"
28PKG_CONFIG_PATH[vardepsexclude] = "datadir WORKDIR"
29PKG_CONFIG_PATH[vardepvalueexclude] = ":${WORKDIR}/recipe-sysroot/${datadir}/pkgconfig"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080030
31# These recipes don't need multilib variants, the ${BPN} PROVDES/RPROVDES
32# ${MLPREFIX}${BPN}
Andrew Geissler635e0e42020-08-21 15:58:33 -050033NON_MULTILIB_RECIPES = "grub grub-efi make-mod-scripts ovmf u-boot"