1eb8dc403SDave Cobbley################################################################## 2eb8dc403SDave Cobbley# Standard target filesystem paths. 3eb8dc403SDave Cobbley################################################################## 4eb8dc403SDave Cobbley# 5eb8dc403SDave Cobbley# If changing these values, beware that native/cross/nativesdk bbclass 6eb8dc403SDave Cobbley# files may also need changes to keep in sync. 7eb8dc403SDave Cobbley# 8eb8dc403SDave Cobbley 9eb8dc403SDave Cobbley# Used by multilib code to change the library paths 10eb8dc403SDave Cobbleybaselib = "${BASELIB}" 11eb8dc403SDave Cobbleybaselib[vardepvalue] = "${baselib}" 12eb8dc403SDave CobbleyBASELIB = "lib" 13eb8dc403SDave CobbleyBASELIB_powerpc64 = "lib64" 14eb8dc403SDave Cobbley 15eb8dc403SDave Cobbley# Path prefixes 16eb8dc403SDave Cobbleyexport base_prefix = "" 17eb8dc403SDave Cobbleyexport prefix = "/usr" 18eb8dc403SDave Cobbleyexport exec_prefix = "${prefix}" 19eb8dc403SDave Cobbley 20eb8dc403SDave Cobbleyroot_prefix = "${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', '${exec_prefix}', '${base_prefix}', d)}" 21eb8dc403SDave Cobbley 22eb8dc403SDave Cobbley# Base paths 23eb8dc403SDave Cobbleyexport base_bindir = "${root_prefix}/bin" 24eb8dc403SDave Cobbleyexport base_sbindir = "${root_prefix}/sbin" 25eb8dc403SDave Cobbleyexport base_libdir = "${root_prefix}/${baselib}" 26eb8dc403SDave Cobbleyexport nonarch_base_libdir = "${root_prefix}/lib" 27eb8dc403SDave Cobbley 28eb8dc403SDave Cobbley# Architecture independent paths 29eb8dc403SDave Cobbleyexport sysconfdir = "${base_prefix}/etc" 30eb8dc403SDave Cobbleyexport servicedir = "${base_prefix}/srv" 31eb8dc403SDave Cobbleyexport sharedstatedir = "${base_prefix}/com" 32eb8dc403SDave Cobbleyexport localstatedir = "${base_prefix}/var" 33eb8dc403SDave Cobbleyexport datadir = "${prefix}/share" 34eb8dc403SDave Cobbleyexport infodir = "${datadir}/info" 35eb8dc403SDave Cobbleyexport mandir = "${datadir}/man" 36eb8dc403SDave Cobbleyexport docdir = "${datadir}/doc" 37eb8dc403SDave Cobbleyexport systemd_unitdir = "${nonarch_base_libdir}/systemd" 38eb8dc403SDave Cobbleyexport systemd_system_unitdir = "${nonarch_base_libdir}/systemd/system" 39eb8dc403SDave Cobbleyexport nonarch_libdir = "${exec_prefix}/lib" 40eb8dc403SDave Cobbleyexport systemd_user_unitdir = "${nonarch_libdir}/systemd/user" 41eb8dc403SDave Cobbley 42eb8dc403SDave Cobbley# Architecture dependent paths 43eb8dc403SDave Cobbleyexport bindir = "${exec_prefix}/bin" 44eb8dc403SDave Cobbleyexport sbindir = "${exec_prefix}/sbin" 45eb8dc403SDave Cobbleyexport libdir = "${exec_prefix}/${baselib}" 46eb8dc403SDave Cobbleyexport libexecdir = "${exec_prefix}/libexec" 47eb8dc403SDave Cobbleyexport includedir = "${exec_prefix}/include" 48eb8dc403SDave Cobbleyexport oldincludedir = "${exec_prefix}/include" 49eb8dc403SDave Cobbleylocaledir = "${libdir}/locale" 50eb8dc403SDave Cobbley 51eb8dc403SDave Cobbley# Linkage between native/cross/nativesdk layouts 52eb8dc403SDave Cobbleybase_bindir_native = "/bin" 53eb8dc403SDave Cobbleybase_sbindir_native = "/sbin" 54eb8dc403SDave Cobbleysysconfdir_native = "/etc" 55eb8dc403SDave Cobbleyprefix_native = "/usr" 56eb8dc403SDave Cobbleybindir_native = "${prefix_native}/bin" 57eb8dc403SDave Cobbleysbindir_native = "${prefix_native}/sbin" 58eb8dc403SDave Cobbleyincludedir_native = "${prefix_native}/include" 59eb8dc403SDave Cobbleylibdir_native = "${prefix_native}/lib" 60eb8dc403SDave Cobbleylibexecdir_native = "${prefix_native}/libexec" 61eb8dc403SDave Cobbleybase_libdir_native = "/lib" 62eb8dc403SDave Cobbleydatadir_native = "${prefix_native}/share" 63eb8dc403SDave Cobbleybindir_cross = "/bin" 64eb8dc403SDave Cobbleybindir_crossscripts = "${bindir}/crossscripts" 65eb8dc403SDave Cobbleyprefix_nativesdk = "/usr" 66eb8dc403SDave Cobbleybindir_nativesdk = "${prefix_nativesdk}/bin" 67eb8dc403SDave Cobbleysbindir_nativesdk = "${prefix_nativesdk}/sbin" 68eb8dc403SDave Cobbleybase_bindir_nativesdk = "/bin" 69eb8dc403SDave Cobbleybase_sbindir_nativesdk = "/sbin" 70eb8dc403SDave Cobbleyincludedir_nativesdk = "${prefix_nativesdk}/include" 71eb8dc403SDave Cobbleylibdir_nativesdk = "${prefix_nativesdk}/lib" 72eb8dc403SDave Cobbleybase_libdir_nativesdk = "/lib" 73eb8dc403SDave Cobbleylocalstatedir_nativesdk = "/var" 74eb8dc403SDave Cobbley 75eb8dc403SDave Cobbley# 76eb8dc403SDave Cobbley# Cross recipes need to know about the target layout 77eb8dc403SDave Cobbley# := is used carefully here 78eb8dc403SDave Cobbley# 79eb8dc403SDave Cobbleytarget_datadir := "${datadir}" 80eb8dc403SDave Cobbley# Used to find env/perl/python 81eb8dc403SDave CobbleyUSRBINPATH = "${bindir}" 82eb8dc403SDave CobbleyUSRBINPATH_class-native = "/usr/bin" 83eb8dc403SDave CobbleyUSRBINPATH_class-nativesdk = "/usr/bin" 84eb8dc403SDave Cobbley 85eb8dc403SDave Cobbley# Root home directory 86eb8dc403SDave CobbleyROOT_HOME ??= "/home/root" 87eb8dc403SDave Cobbley 88eb8dc403SDave Cobbley# If set to boolean true ('yes', 'y', 'true', 't', '1'), /var/log links to /var/volatile/log. 89eb8dc403SDave Cobbley# If set to boolean false ('no', 'n', 'false', 'f', '0'), /var/log is on persistent storage. 90eb8dc403SDave CobbleyVOLATILE_LOG_DIR ?= "yes" 91eb8dc403SDave Cobbley 92eb8dc403SDave Cobbley################################################################## 93eb8dc403SDave Cobbley# Architecture-dependent build variables. 94eb8dc403SDave Cobbley################################################################## 95eb8dc403SDave Cobbley 96*1a4b7ee2SBrad Bishop# Immediate expansion since there is no point in repeatedly calling 97eb8dc403SDave Cobbley# os.uname() throughout parsing 98eb8dc403SDave CobbleyBUILD_ARCH := "${@os.uname()[4]}" 99eb8dc403SDave CobbleyBUILD_OS := "${@os.uname()[0].lower()}" 100eb8dc403SDave CobbleyBUILD_VENDOR = "" 101eb8dc403SDave CobbleyBUILD_SYS = "${BUILD_ARCH}${BUILD_VENDOR}-${BUILD_OS}" 102eb8dc403SDave CobbleyBUILD_PREFIX = "" 103eb8dc403SDave CobbleyBUILD_CC_ARCH = "" 104eb8dc403SDave CobbleyBUILD_LD_ARCH = "" 105eb8dc403SDave CobbleyBUILD_AS_ARCH = "" 106eb8dc403SDave CobbleyBUILD_EXEEXT = "" 107eb8dc403SDave Cobbley 108eb8dc403SDave CobbleyHOST_ARCH = "${TARGET_ARCH}" 109eb8dc403SDave CobbleyHOST_OS = "${TARGET_OS}" 110eb8dc403SDave CobbleyHOST_VENDOR = "${TARGET_VENDOR}" 111eb8dc403SDave CobbleyHOST_SYS = "${HOST_ARCH}${HOST_VENDOR}-${HOST_OS}" 112eb8dc403SDave CobbleyHOST_PREFIX = "${TARGET_PREFIX}" 113eb8dc403SDave CobbleyHOST_CC_ARCH = "${TARGET_CC_ARCH}" 114eb8dc403SDave CobbleyHOST_LD_ARCH = "${TARGET_LD_ARCH}" 115eb8dc403SDave CobbleyHOST_AS_ARCH = "${TARGET_AS_ARCH}" 116eb8dc403SDave CobbleyHOST_EXEEXT = "" 117eb8dc403SDave Cobbley 118eb8dc403SDave CobbleyTUNE_ARCH ??= "INVALID" 119eb8dc403SDave CobbleyTUNE_CCARGS ??= "" 120eb8dc403SDave CobbleyTUNE_CCARGS[vardepvalue] = "${TUNE_CCARGS}" 121eb8dc403SDave CobbleyTUNE_LDARGS ??= "" 122eb8dc403SDave CobbleyTUNE_ASARGS ??= "" 123eb8dc403SDave CobbleyTUNE_FEATURES ??= "${TUNE_FEATURES_tune-${DEFAULTTUNE}}" 124eb8dc403SDave CobbleyLIBCEXTENSION ??= "" 125eb8dc403SDave CobbleyABIEXTENSION ??= "" 126eb8dc403SDave CobbleyUSE_NLS ??= "${@bb.utils.contains('DISTRO_FEATURES', 'libc-locale-code', 'yes', 'no', d)}" 127eb8dc403SDave CobbleySDKUSE_NLS ??= "yes" 128eb8dc403SDave Cobbley 129eb8dc403SDave CobbleyTARGET_ARCH = "${TUNE_ARCH}" 130eb8dc403SDave CobbleyTARGET_OS = "linux${LIBCEXTENSION}${ABIEXTENSION}" 131eb8dc403SDave CobbleyTARGET_VENDOR = "-oe" 132eb8dc403SDave CobbleyTARGET_SYS = "${TARGET_ARCH}${TARGET_VENDOR}${@['-' + d.getVar('TARGET_OS'), ''][d.getVar('TARGET_OS') == ('' or 'custom')]}" 133eb8dc403SDave CobbleyTARGET_PREFIX = "${TARGET_SYS}-" 134eb8dc403SDave CobbleyTARGET_CC_ARCH = "${TUNE_CCARGS}" 135eb8dc403SDave CobbleyTARGET_LD_ARCH = "${TUNE_LDARGS}" 136eb8dc403SDave CobbleyTARGET_AS_ARCH = "${TUNE_ASARGS}" 137eb8dc403SDave Cobbley 138eb8dc403SDave CobbleySDKMACHINE ??= "x86_64" 139eb8dc403SDave CobbleySDK_OS = "${BUILD_OS}" 140eb8dc403SDave CobbleySDK_VENDOR = "-oesdk" 141eb8dc403SDave CobbleySDK_SYS = "${SDK_ARCH}${SDK_VENDOR}${@['-' + d.getVar('SDK_OS'), ''][d.getVar('SDK_OS') == ('' or 'custom')]}" 142eb8dc403SDave CobbleySDK_PREFIX = "${SDK_SYS}-" 143eb8dc403SDave CobbleySDK_CC_ARCH = "${BUILD_CC_ARCH}" 144eb8dc403SDave CobbleySDKPKGSUFFIX = "nativesdk" 145eb8dc403SDave CobbleySDK_PACKAGE_ARCHS = "all any noarch ${SDK_ARCH}-${SDKPKGSUFFIX}" 146eb8dc403SDave CobbleySDK_LD_ARCH = "${BUILD_LD_ARCH}" 147eb8dc403SDave CobbleySDK_AS_ARCH = "${BUILD_AS_ARCH}" 148eb8dc403SDave Cobbley 149eb8dc403SDave CobbleyTUNE_PKGARCH ??= "" 150eb8dc403SDave CobbleyPACKAGE_ARCH ??= "${TUNE_PKGARCH}" 151eb8dc403SDave CobbleyMACHINE_ARCH = "${@[d.getVar('TUNE_PKGARCH'), d.getVar('MACHINE')][bool(d.getVar('MACHINE'))].replace('-', '_')}" 152eb8dc403SDave CobbleyPACKAGE_EXTRA_ARCHS ??= "${PACKAGE_EXTRA_ARCHS_tune-${DEFAULTTUNE}}" 153eb8dc403SDave CobbleyPACKAGE_ARCHS = "all any noarch ${PACKAGE_EXTRA_ARCHS} ${MACHINE_ARCH}" 154eb8dc403SDave Cobbley# MACHINE_ARCH shouldn't be included here as a variable dependency 155eb8dc403SDave Cobbley# since machine specific packages are handled using multimachine 156eb8dc403SDave CobbleyPACKAGE_ARCHS[vardepsexclude] = "MACHINE_ARCH" 157eb8dc403SDave Cobbley 158eb8dc403SDave CobbleyMULTIMACH_TARGET_SYS = "${PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}" 159eb8dc403SDave Cobbley 160eb8dc403SDave Cobbley################################################################## 161eb8dc403SDave Cobbley# Date/time variables. 162eb8dc403SDave Cobbley################################################################## 163eb8dc403SDave Cobbley 164eb8dc403SDave CobbleyDATE := "${@time.strftime('%Y%m%d',time.gmtime())}" 165eb8dc403SDave CobbleyTIME := "${@time.strftime('%H%M%S',time.gmtime())}" 166eb8dc403SDave CobbleyDATETIME = "${DATE}${TIME}" 167eb8dc403SDave Cobbley 168eb8dc403SDave Cobbley################################################################## 169eb8dc403SDave Cobbley# Openembedded Software Prerequisites. 170eb8dc403SDave Cobbley################################################################## 171eb8dc403SDave Cobbley 172eb8dc403SDave Cobbley# python-native should be here but python relies on building 173eb8dc403SDave Cobbley# its own in staging 174eb8dc403SDave CobbleyASSUME_PROVIDED = "\ 175eb8dc403SDave Cobbley bzip2-native \ 176eb8dc403SDave Cobbley chrpath-native \ 177eb8dc403SDave Cobbley file-native \ 178eb8dc403SDave Cobbley findutils-native \ 179eb8dc403SDave Cobbley gawk-native \ 180eb8dc403SDave Cobbley git-native \ 181eb8dc403SDave Cobbley grep-native \ 182eb8dc403SDave Cobbley diffstat-native \ 183eb8dc403SDave Cobbley patch-native \ 184eb8dc403SDave Cobbley libgcc-native \ 185eb8dc403SDave Cobbley hostperl-runtime-native \ 186eb8dc403SDave Cobbley hostpython-runtime-native \ 187eb8dc403SDave Cobbley tar-native \ 188eb8dc403SDave Cobbley virtual/libintl-native \ 189eb8dc403SDave Cobbley virtual/libiconv-native \ 190eb8dc403SDave Cobbley virtual/crypt-native \ 191eb8dc403SDave Cobbley texinfo-native \ 192eb8dc403SDave Cobbley bash-native \ 193eb8dc403SDave Cobbley sed-native \ 194eb8dc403SDave Cobbley wget-native \ 195eb8dc403SDave Cobbley " 196eb8dc403SDave Cobbley# gzip-native should be listed above? 197eb8dc403SDave Cobbley 198eb8dc403SDave Cobbley################################################################## 199eb8dc403SDave Cobbley# Package default variables. 200eb8dc403SDave Cobbley################################################################## 201eb8dc403SDave Cobbley 202eb8dc403SDave CobbleyPN = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE', False),d)[0] or 'defaultpkgname'}" 203eb8dc403SDave CobbleyPV = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE', False),d)[1] or '1.0'}" 204eb8dc403SDave CobbleyPR = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE', False),d)[2] or 'r0'}" 205eb8dc403SDave CobbleyPE = "" 206eb8dc403SDave CobbleyPF = "${PN}-${EXTENDPE}${PV}-${PR}" 207eb8dc403SDave CobbleyEXTENDPE = "${@['','${PE}_'][int(d.getVar('PE') or 0) > 0]}" 208eb8dc403SDave CobbleyP = "${PN}-${PV}" 209eb8dc403SDave Cobbley 210eb8dc403SDave CobbleyPRAUTO = "" 211eb8dc403SDave CobbleyEXTENDPRAUTO = "${@['.${PRAUTO}', ''][not d.getVar('PRAUTO')]}" 212eb8dc403SDave CobbleyPRAUTOINX = "${PF}" 213eb8dc403SDave Cobbley 214eb8dc403SDave CobbleyPKGV ?= "${PV}" 215eb8dc403SDave CobbleyPKGR ?= "${PR}${EXTENDPRAUTO}" 216eb8dc403SDave CobbleyPKGE ?= "${@['','${PE}'][int(d.getVar('PE') or 0) > 0]}" 217eb8dc403SDave CobbleyEXTENDPKGEVER = "${@['','${PKGE}:'][d.getVar('PKGE').strip() != '']}" 218eb8dc403SDave CobbleyEXTENDPKGV ?= "${EXTENDPKGEVER}${PKGV}-${PKGR}" 219eb8dc403SDave Cobbley 220eb8dc403SDave Cobbley# Base package name 221eb8dc403SDave Cobbley# Automatically derives "foo" from "foo-native", "foo-cross" or "foo-initial" 222eb8dc403SDave Cobbley# otherwise it is the same as PN and P 223eb8dc403SDave CobbleySPECIAL_PKGSUFFIX = "-native -cross -initial -intermediate -crosssdk -cross-canadian" 224eb8dc403SDave CobbleyBPN = "${@oe.utils.prune_suffix(d.getVar('PN'), d.getVar('SPECIAL_PKGSUFFIX').split(), d)}" 225eb8dc403SDave CobbleyBP = "${BPN}-${PV}" 226eb8dc403SDave Cobbley 227eb8dc403SDave Cobbley# Package info. 228eb8dc403SDave Cobbley 229eb8dc403SDave CobbleySECTION = "base" 230eb8dc403SDave CobbleyPRIORITY = "optional" 231eb8dc403SDave CobbleySUMMARY ?= "${PN} version ${PV}-${PR}" 232eb8dc403SDave CobbleyDESCRIPTION ?= "${SUMMARY}." 233eb8dc403SDave Cobbley 234eb8dc403SDave Cobbley# The following two are commented out because they result in a recursive 235eb8dc403SDave Cobbley# definition of the variable in some corner cases. These are left in 236eb8dc403SDave Cobbley# to illustrate the intended behavior. 237eb8dc403SDave Cobbley#SUMMARY_${PN} ?= "${SUMMARY}" 238eb8dc403SDave Cobbley#DESCRIPTION_${PN} ?= "${DESCRIPTION}" 239eb8dc403SDave Cobbley 240eb8dc403SDave CobbleySUMMARY_${PN}-dbg ?= "${SUMMARY} - Debugging files" 241eb8dc403SDave CobbleyDESCRIPTION_${PN}-dbg ?= "${DESCRIPTION} \ 242eb8dc403SDave CobbleyThis package contains ELF symbols and related sources for debugging purposes." 243eb8dc403SDave Cobbley 244eb8dc403SDave CobbleySUMMARY_${PN}-dev ?= "${SUMMARY} - Development files" 245eb8dc403SDave CobbleyDESCRIPTION_${PN}-dev ?= "${DESCRIPTION} \ 246eb8dc403SDave CobbleyThis package contains symbolic links, header files, and \ 247eb8dc403SDave Cobbleyrelated items necessary for software development." 248eb8dc403SDave Cobbley 249eb8dc403SDave CobbleySUMMARY_${PN}-staticdev ?= "${SUMMARY} - Development files (Static Libraries)" 250eb8dc403SDave CobbleyDESCRIPTION_${PN}-staticdev?= "${DESCRIPTION} \ 251eb8dc403SDave CobbleyThis package contains static libraries for software development." 252eb8dc403SDave Cobbley 253eb8dc403SDave CobbleySUMMARY_${PN}-doc ?= "${SUMMARY} - Documentation files" 254eb8dc403SDave CobbleyDESCRIPTION_${PN}-doc ?= "${DESCRIPTION} \ 255eb8dc403SDave CobbleyThis package contains documentation." 256eb8dc403SDave Cobbley 257eb8dc403SDave CobbleyLICENSE ??= "INVALID" 258eb8dc403SDave CobbleyMAINTAINER = "OE-Core Developers <openembedded-core@lists.openembedded.org>" 259eb8dc403SDave CobbleyHOMEPAGE = "" 260eb8dc403SDave Cobbley 261eb8dc403SDave Cobbley# Package dependencies and provides. 262eb8dc403SDave Cobbley 263eb8dc403SDave Cobbley# Ensure that -dev packages recommend the corresponding -dev packages of their 264eb8dc403SDave Cobbley# deps, and the same for -dbg. 265eb8dc403SDave CobbleyDEPCHAIN_PRE = "" 266eb8dc403SDave CobbleyDEPCHAIN_POST = "-dev -dbg" 267eb8dc403SDave Cobbley 268eb8dc403SDave CobbleyDEPENDS = "" 269eb8dc403SDave CobbleyRDEPENDS = "" 270eb8dc403SDave CobbleyPROVIDES = "" 271eb8dc403SDave CobbleyPROVIDES_prepend = "${PN} " 272eb8dc403SDave CobbleyRPROVIDES = "" 273eb8dc403SDave Cobbley 274eb8dc403SDave CobbleyMULTI_PROVIDER_WHITELIST = "virtual/libintl virtual/libintl-native virtual/nativesdk-libintl virtual/xserver virtual/update-alternatives-native virtual/update-alternatives" 275eb8dc403SDave Cobbley 276eb8dc403SDave CobbleySOLIBS = ".so.*" 277eb8dc403SDave CobbleySOLIBS_darwin = ".dylib" 278eb8dc403SDave Cobbley 279eb8dc403SDave CobbleySOLIBSDEV = ".so" 280eb8dc403SDave Cobbley# Due to the ordering of PACKAGES and the naming of the dev symlinks on darwin, 281eb8dc403SDave Cobbley# we can't make the symlinks end up in the -dev packages easily at this point. This hack 282eb8dc403SDave Cobbley# at least means builds aren't completely broken and symlinks don't take up much space. 283eb8dc403SDave CobbleySOLIBSDEV_darwin = ".dylibbroken" 284eb8dc403SDave Cobbley 285eb8dc403SDave CobbleyPACKAGE_BEFORE_PN ?= "" 286eb8dc403SDave CobbleyPACKAGES = "${PN}-dbg ${PN}-staticdev ${PN}-dev ${PN}-doc ${PN}-locale ${PACKAGE_BEFORE_PN} ${PN}" 287eb8dc403SDave CobbleyPACKAGES_DYNAMIC = "^${PN}-locale-.*" 288eb8dc403SDave CobbleyFILES = "" 289eb8dc403SDave Cobbley 290eb8dc403SDave CobbleyFILES_${PN} = "${bindir}/* ${sbindir}/* ${libexecdir}/* ${libdir}/lib*${SOLIBS} \ 291eb8dc403SDave Cobbley ${sysconfdir} ${sharedstatedir} ${localstatedir} \ 292eb8dc403SDave Cobbley ${base_bindir}/* ${base_sbindir}/* \ 293eb8dc403SDave Cobbley ${base_libdir}/*${SOLIBS} \ 294eb8dc403SDave Cobbley ${base_prefix}/lib/udev ${prefix}/lib/udev \ 295eb8dc403SDave Cobbley ${base_libdir}/udev ${libdir}/udev \ 296eb8dc403SDave Cobbley ${datadir}/${BPN} ${libdir}/${BPN}/* \ 297eb8dc403SDave Cobbley ${datadir}/pixmaps ${datadir}/applications \ 298eb8dc403SDave Cobbley ${datadir}/idl ${datadir}/omf ${datadir}/sounds \ 299eb8dc403SDave Cobbley ${libdir}/bonobo/servers" 300eb8dc403SDave Cobbley 301eb8dc403SDave CobbleyFILES_${PN}-bin = "${bindir}/* ${sbindir}/*" 302eb8dc403SDave Cobbley 303eb8dc403SDave CobbleyFILES_${PN}-doc = "${docdir} ${mandir} ${infodir} ${datadir}/gtk-doc \ 304eb8dc403SDave Cobbley ${datadir}/gnome/help" 305eb8dc403SDave CobbleySECTION_${PN}-doc = "doc" 306eb8dc403SDave Cobbley 307eb8dc403SDave CobbleyFILES_SOLIBSDEV ?= "${base_libdir}/lib*${SOLIBSDEV} ${libdir}/lib*${SOLIBSDEV}" 308eb8dc403SDave CobbleyFILES_${PN}-dev = "${includedir} ${FILES_SOLIBSDEV} ${libdir}/*.la \ 309eb8dc403SDave Cobbley ${libdir}/*.o ${libdir}/pkgconfig ${datadir}/pkgconfig \ 310eb8dc403SDave Cobbley ${datadir}/aclocal ${base_libdir}/*.o \ 311*1a4b7ee2SBrad Bishop ${libdir}/${BPN}/*.la ${base_libdir}/*.la \ 312*1a4b7ee2SBrad Bishop ${libdir}/cmake ${datadir}/cmake" 313eb8dc403SDave CobbleySECTION_${PN}-dev = "devel" 314eb8dc403SDave CobbleyALLOW_EMPTY_${PN}-dev = "1" 315eb8dc403SDave CobbleyRDEPENDS_${PN}-dev = "${PN} (= ${EXTENDPKGV})" 316eb8dc403SDave Cobbley 317eb8dc403SDave CobbleyFILES_${PN}-staticdev = "${libdir}/*.a ${base_libdir}/*.a ${libdir}/${BPN}/*.a" 318eb8dc403SDave CobbleySECTION_${PN}-staticdev = "devel" 319eb8dc403SDave CobbleyRDEPENDS_${PN}-staticdev = "${PN}-dev (= ${EXTENDPKGV})" 320eb8dc403SDave Cobbley 321eb8dc403SDave CobbleyFILES_${PN}-dbg = "/usr/lib/debug /usr/src/debug" 322eb8dc403SDave CobbleySECTION_${PN}-dbg = "devel" 323eb8dc403SDave CobbleyALLOW_EMPTY_${PN}-dbg = "1" 324eb8dc403SDave Cobbley 325eb8dc403SDave CobbleyFILES_${PN}-locale = "${datadir}/locale" 326eb8dc403SDave Cobbley 327eb8dc403SDave Cobbley# File manifest 328eb8dc403SDave Cobbley 329eb8dc403SDave CobbleyFILE_DIRNAME = "${@os.path.dirname(d.getVar('FILE', False))}" 330eb8dc403SDave Cobbley# FILESPATH is set in base.bbclass 331eb8dc403SDave Cobbley#FILESPATH = "${FILE_DIRNAME}/${PF}:${FILE_DIRNAME}/${P}:${FILE_DIRNAME}/${PN}:${FILE_DIRNAME}/${BP}:${FILE_DIRNAME}/${BPN}:${FILE_DIRNAME}/files:${FILE_DIRNAME}" 332eb8dc403SDave Cobbley# This default was only used for checking 333eb8dc403SDave CobbleyFILESEXTRAPATHS ?= "__default:" 334eb8dc403SDave Cobbley 335eb8dc403SDave Cobbley# The default list of fs-perms files to process. If the list is empty only 336eb8dc403SDave Cobbley# the builtin definitions will be used. Builtin definitions included: 337eb8dc403SDave Cobbley# base_prefix, prefix, exec_prefix, base_bindir, base_sbindir, base_libdir, 338eb8dc403SDave Cobbley# datadir, sysconfdir, servicedir, sharedstatedir, localstatedir, infodir, 339eb8dc403SDave Cobbley# mandir, docdir, bindir, sbindir, libexecdir, libdir, includedir and 340eb8dc403SDave Cobbley# oldincludedir 341eb8dc403SDave CobbleyFILESYSTEM_PERMS_TABLES ?= "${@'files/fs-perms.txt' if oe.types.boolean(d.getVar('VOLATILE_LOG_DIR')) else 'files/fs-perms-persistent-log.txt'}" 342eb8dc403SDave Cobbley 343eb8dc403SDave Cobbley################################################################## 344eb8dc403SDave Cobbley# General work and output directories for the build system. 345eb8dc403SDave Cobbley################################################################## 346eb8dc403SDave Cobbley 347eb8dc403SDave CobbleyTMPDIR ?= "${TOPDIR}/tmp" 348eb8dc403SDave CobbleyCACHE = "${TMPDIR}/cache${@['', '/' + str(d.getVar('MACHINE'))][bool(d.getVar('MACHINE'))]}${@['', '/' + str(d.getVar('SDKMACHINE'))][bool(d.getVar('SDKMACHINE'))]}" 349eb8dc403SDave Cobbley# The persistent cache should be shared by all builds 350eb8dc403SDave CobbleyPERSISTENT_DIR = "${TOPDIR}/cache" 351eb8dc403SDave CobbleyLOG_DIR = "${TMPDIR}/log" 352eb8dc403SDave CobbleyCO_DIR = "${DL_DIR}" 353eb8dc403SDave CobbleyCVSDIR = "${CO_DIR}/cvs" 354eb8dc403SDave CobbleySVNDIR = "${CO_DIR}/svn" 355eb8dc403SDave CobbleyGITDIR = "${CO_DIR}/git2" 356eb8dc403SDave CobbleyBZRDIR = "${CO_DIR}/bzr" 357eb8dc403SDave CobbleyHGDIR = "${CO_DIR}/hg" 358eb8dc403SDave Cobbley 359eb8dc403SDave CobbleySTAMPS_DIR ?= "${TMPDIR}/stamps" 360eb8dc403SDave CobbleySTAMP = "${STAMPS_DIR}/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR}" 361eb8dc403SDave CobbleySTAMPCLEAN = "${STAMPS_DIR}/${MULTIMACH_TARGET_SYS}/${PN}/*-*" 362eb8dc403SDave CobbleyBASE_WORKDIR ?= "${TMPDIR}/work" 363eb8dc403SDave CobbleyWORKDIR = "${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR}" 364eb8dc403SDave CobbleyT = "${WORKDIR}/temp" 365eb8dc403SDave CobbleyD = "${WORKDIR}/image" 366eb8dc403SDave CobbleyS = "${WORKDIR}/${BP}" 367eb8dc403SDave CobbleyB = "${S}" 368eb8dc403SDave Cobbley 369eb8dc403SDave CobbleySTAGING_DIR = "${TMPDIR}/sysroots" 370eb8dc403SDave CobbleyCOMPONENTS_DIR = "${STAGING_DIR}-components" 371eb8dc403SDave CobbleyRECIPE_SYSROOT = "${WORKDIR}/recipe-sysroot" 372eb8dc403SDave CobbleyRECIPE_SYSROOT_NATIVE = "${WORKDIR}/recipe-sysroot-native" 373eb8dc403SDave Cobbley 374eb8dc403SDave CobbleySTAGING_DIR_NATIVE = "${RECIPE_SYSROOT_NATIVE}" 375eb8dc403SDave CobbleySTAGING_BINDIR_NATIVE = "${STAGING_DIR_NATIVE}${bindir_native}" 376eb8dc403SDave CobbleySTAGING_BINDIR_CROSS = "${STAGING_BINDIR}/crossscripts" 377eb8dc403SDave CobbleySTAGING_BINDIR_TOOLCHAIN = "${STAGING_DIR_NATIVE}${bindir_native}/${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}" 378eb8dc403SDave CobbleySTAGING_LIBDIR_NATIVE = "${STAGING_DIR_NATIVE}${libdir_native}" 379eb8dc403SDave CobbleySTAGING_LIBEXECDIR_NATIVE = "${STAGING_DIR_NATIVE}${libexecdir_native}" 380eb8dc403SDave CobbleySTAGING_BASE_LIBDIR_NATIVE = "${STAGING_DIR_NATIVE}${base_libdir_native}" 381eb8dc403SDave CobbleySTAGING_SBINDIR_NATIVE = "${STAGING_DIR_NATIVE}${sbindir_native}" 382eb8dc403SDave CobbleySTAGING_INCDIR_NATIVE = "${STAGING_DIR_NATIVE}${includedir_native}" 383eb8dc403SDave CobbleySTAGING_ETCDIR_NATIVE = "${STAGING_DIR_NATIVE}${sysconfdir_native}" 384eb8dc403SDave CobbleySTAGING_DATADIR_NATIVE = "${STAGING_DIR_NATIVE}${datadir_native}" 385eb8dc403SDave Cobbley 386eb8dc403SDave CobbleySTAGING_DIR_HOST = "${RECIPE_SYSROOT}" 387eb8dc403SDave CobbleySTAGING_BINDIR = "${STAGING_DIR_HOST}${bindir}" 388eb8dc403SDave CobbleySTAGING_LIBDIR = "${STAGING_DIR_HOST}${libdir}" 389eb8dc403SDave CobbleySTAGING_LIBEXECDIR = "${STAGING_DIR_HOST}${libexecdir}" 390eb8dc403SDave CobbleySTAGING_BASELIBDIR = "${STAGING_DIR_HOST}${base_libdir}" 391eb8dc403SDave CobbleySTAGING_INCDIR = "${STAGING_DIR_HOST}${includedir}" 392eb8dc403SDave CobbleySTAGING_DATADIR = "${STAGING_DIR_HOST}${datadir}" 393eb8dc403SDave CobbleySTAGING_EXECPREFIXDIR = "${STAGING_DIR_HOST}${exec_prefix}" 394eb8dc403SDave CobbleySTAGING_LOADER_DIR = "${STAGING_DIR_HOST}/loader" 395eb8dc403SDave CobbleySTAGING_FIRMWARE_DIR = "${STAGING_DIR_HOST}/firmware" 396eb8dc403SDave Cobbley 397eb8dc403SDave CobbleySTAGING_DIR_TARGET = "${RECIPE_SYSROOT}" 398eb8dc403SDave Cobbley 399eb8dc403SDave Cobbley# Setting DEPLOY_DIR outside of TMPDIR is helpful, when you are using 400eb8dc403SDave Cobbley# packaged staging and/or multimachine. 401eb8dc403SDave CobbleyDEPLOY_DIR ?= "${TMPDIR}/deploy" 402eb8dc403SDave CobbleyDEPLOY_DIR_TAR = "${DEPLOY_DIR}/tar" 403eb8dc403SDave CobbleyDEPLOY_DIR_IPK = "${DEPLOY_DIR}/ipk" 404eb8dc403SDave CobbleyDEPLOY_DIR_RPM = "${DEPLOY_DIR}/rpm" 405eb8dc403SDave CobbleyDEPLOY_DIR_DEB = "${DEPLOY_DIR}/deb" 406eb8dc403SDave CobbleyDEPLOY_DIR_IMAGE ?= "${DEPLOY_DIR}/images/${MACHINE}" 407eb8dc403SDave CobbleyDEPLOY_DIR_TOOLS = "${DEPLOY_DIR}/tools" 408eb8dc403SDave Cobbley 409eb8dc403SDave CobbleyPKGDATA_DIR = "${TMPDIR}/pkgdata/${MACHINE}" 410eb8dc403SDave Cobbley 411eb8dc403SDave Cobbley################################################################## 412eb8dc403SDave Cobbley# SDK variables. 413eb8dc403SDave Cobbley################################################################## 414eb8dc403SDave Cobbley 415eb8dc403SDave CobbleySDK_NAME_PREFIX ?= "oecore" 416eb8dc403SDave CobbleySDK_NAME = "${SDK_NAME_PREFIX}-${SDK_ARCH}-${TUNE_PKGARCH}" 417eb8dc403SDave CobbleySDKPATH = "/usr/local/${SDK_NAME_PREFIX}-${SDK_ARCH}" 418eb8dc403SDave CobbleySDKPATHNATIVE = "${SDKPATH}/sysroots/${SDK_SYS}" 419eb8dc403SDave Cobbley 420eb8dc403SDave Cobbley################################################################## 421eb8dc403SDave Cobbley# Kernel info. 422eb8dc403SDave Cobbley################################################################## 423eb8dc403SDave Cobbley 424eb8dc403SDave CobbleyOLDEST_KERNEL = "3.2.0" 425eb8dc403SDave CobbleyOLDEST_KERNEL_aarch64 = "3.14" 426eb8dc403SDave CobbleyOLDEST_KERNEL_nios2 = "3.19" 427eb8dc403SDave CobbleyOLDEST_KERNEL_riscv32 = "4.15" 428eb8dc403SDave CobbleyOLDEST_KERNEL_riscv64 = "4.15" 429eb8dc403SDave Cobbley 430eb8dc403SDave Cobbley# SDK_OLDEST_KERNEL can't be set using overrides since there are 431eb8dc403SDave Cobbley# none for the SDK architecture. Best to set it from a machine-sdk 432eb8dc403SDave Cobbley# include file if you need an SDK arch-specific value 433eb8dc403SDave CobbleySDK_OLDEST_KERNEL = "3.2.0" 434eb8dc403SDave Cobbley 435eb8dc403SDave Cobbley# Define where the kernel headers are installed on the target as well as where 436eb8dc403SDave Cobbley# they are staged. 437eb8dc403SDave CobbleyKERNEL_SRC_PATH = "/usr/src/kernel" 438eb8dc403SDave Cobbley 439eb8dc403SDave CobbleySTAGING_KERNEL_DIR = "${TMPDIR}/work-shared/${MACHINE}/kernel-source" 440eb8dc403SDave CobbleySTAGING_KERNEL_BUILDDIR = "${TMPDIR}/work-shared/${MACHINE}/kernel-build-artifacts" 441eb8dc403SDave Cobbley 442eb8dc403SDave Cobbley################################################################## 443eb8dc403SDave Cobbley# Specific image creation and rootfs population info. 444eb8dc403SDave Cobbley################################################################## 445eb8dc403SDave Cobbley 446eb8dc403SDave CobbleyIMAGE_ROOTFS = "${WORKDIR}/rootfs" 447eb8dc403SDave CobbleyIMAGE_BASENAME = "${PN}" 448*1a4b7ee2SBrad BishopIMAGE_VERSION_SUFFIX = "-${DATETIME}" 449*1a4b7ee2SBrad BishopIMAGE_VERSION_SUFFIX[vardepsexclude] += "DATETIME" 450*1a4b7ee2SBrad BishopIMAGE_NAME = "${IMAGE_BASENAME}-${MACHINE}${IMAGE_VERSION_SUFFIX}" 451eb8dc403SDave CobbleyIMAGE_LINK_NAME = "${IMAGE_BASENAME}-${MACHINE}" 452eb8dc403SDave Cobbley 453eb8dc403SDave Cobbley# This option allows for a percentage overage of the actual image size rather than a 454eb8dc403SDave Cobbley# fixed extra space, this is space needed for initial startup and basic operations. 455eb8dc403SDave CobbleyIMAGE_OVERHEAD_FACTOR ?= "1.3" 456eb8dc403SDave Cobbley# This option allows for adding additional space in K above and beyond what the 457eb8dc403SDave Cobbley# IMAGE_OVERHEAD_FACTOR might add. This space is for additional packages, user data, ... 458eb8dc403SDave Cobbley# To set a fixed size then overriding IMAGE_ROOTFS_SIZE with the max size one wants 459eb8dc403SDave Cobbley# should do the trick 460eb8dc403SDave CobbleyIMAGE_ROOTFS_EXTRA_SPACE ?= "0" 461eb8dc403SDave Cobbley 462eb8dc403SDave CobbleyEXTRA_IMAGEDEPENDS = "" 463eb8dc403SDave Cobbley 464eb8dc403SDave Cobbley################################################################## 465eb8dc403SDave Cobbley# Toolchain info. 466eb8dc403SDave Cobbley################################################################## 467eb8dc403SDave Cobbley 468eb8dc403SDave CobbleyPATH_prepend = "${COREBASE}/scripts:${STAGING_BINDIR_TOOLCHAIN}:${STAGING_BINDIR_CROSS}:${STAGING_DIR_NATIVE}${sbindir_native}:${STAGING_BINDIR_NATIVE}:${STAGING_DIR_NATIVE}${base_sbindir_native}:${STAGING_DIR_NATIVE}${base_bindir_native}:" 469eb8dc403SDave Cobbleyexport PATH 470eb8dc403SDave Cobbley 471eb8dc403SDave Cobbley################################################################## 472eb8dc403SDave Cobbley# Build utility info. 473eb8dc403SDave Cobbley################################################################## 474eb8dc403SDave Cobbley 475eb8dc403SDave Cobbley# Directory where host tools are copied 476eb8dc403SDave CobbleyHOSTTOOLS_DIR = "${TMPDIR}/hosttools" 477eb8dc403SDave Cobbley 478eb8dc403SDave Cobbley# Tools needed to run builds with OE-Core 479*1a4b7ee2SBrad Bishop# python is special cased to point at python2 480eb8dc403SDave CobbleyHOSTTOOLS += " \ 481eb8dc403SDave Cobbley [ ar as awk basename bash bzip2 cat chgrp chmod chown chrpath cmp comm cp cpio \ 482eb8dc403SDave Cobbley cpp cut date dd diff diffstat dirname du echo egrep env expand expr false \ 483eb8dc403SDave Cobbley fgrep file find flock g++ gawk gcc getconf getopt git grep gunzip gzip \ 484eb8dc403SDave Cobbley head hostname id install ld ldd ln ls make makeinfo md5sum mkdir mknod \ 485*1a4b7ee2SBrad Bishop mktemp mv nm objcopy objdump od patch perl pod2man pr printf pwd python2 \ 486eb8dc403SDave Cobbley python2.7 python3 ranlib readelf readlink rm rmdir rpcgen sed sh sha256sum \ 487eb8dc403SDave Cobbley sleep sort split stat strings strip tail tar tee test touch tr true uname \ 488eb8dc403SDave Cobbley uniq wc wget which xargs \ 489eb8dc403SDave Cobbley" 490eb8dc403SDave Cobbley 491eb8dc403SDave Cobbley# Tools needed to run testimage runtime image testing 492*1a4b7ee2SBrad BishopHOSTTOOLS += "${@'ip ping ps scp ssh stty' if (bb.utils.contains_any('IMAGE_CLASSES', 'testimage testsdk', True, False, d) or any(x in (d.getVar("BBINCLUDED") or "") for x in ["testimage.bbclass", "testsdk.bbclass"])) else ''}" 493eb8dc403SDave Cobbley 494eb8dc403SDave Cobbley# Link to these if present 495*1a4b7ee2SBrad BishopHOSTTOOLS_NONFATAL += "aws ccache gcc-ar gpg ld.bfd ld.gold nc pigz sftp socat ssh sudo" 496eb8dc403SDave Cobbley 497eb8dc403SDave Cobbley# Temporary add few more detected in bitbake world 498eb8dc403SDave CobbleyHOSTTOOLS_NONFATAL += "join nl size yes zcat" 499eb8dc403SDave Cobbley 500eb8dc403SDave Cobbley# Used by bzr fetcher 501eb8dc403SDave CobbleyHOSTTOOLS_NONFATAL += "bzr" 502eb8dc403SDave Cobbley 503eb8dc403SDave Cobbley# Used by ssh fetcher 504eb8dc403SDave CobbleyHOSTTOOLS_NONFATAL += "scp" 505eb8dc403SDave Cobbley 506eb8dc403SDave CobbleyCCACHE ??= "" 507eb8dc403SDave Cobbley# ccache < 3.1.10 will create CCACHE_DIR on startup even if disabled, and 508eb8dc403SDave Cobbley# autogen sets HOME=/dev/null so in certain situations builds can fail. 509eb8dc403SDave Cobbley# Explicitly export CCACHE_DIR until we can assume ccache >3.1.10 on the host. 510eb8dc403SDave Cobbleyexport CCACHE_DIR ??= "${@os.getenv('HOME')}/.ccache" 511eb8dc403SDave Cobbley 512eb8dc403SDave CobbleyTOOLCHAIN_OPTIONS = " --sysroot=${STAGING_DIR_TARGET}" 513eb8dc403SDave Cobbley 514eb8dc403SDave Cobbleyexport CC = "${CCACHE}${HOST_PREFIX}gcc ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" 515eb8dc403SDave Cobbleyexport CXX = "${CCACHE}${HOST_PREFIX}g++ ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" 516eb8dc403SDave Cobbleyexport FC = "${CCACHE}${HOST_PREFIX}gfortran ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" 517eb8dc403SDave Cobbleyexport CPP = "${HOST_PREFIX}gcc -E${TOOLCHAIN_OPTIONS} ${HOST_CC_ARCH}" 518eb8dc403SDave Cobbleyexport LD = "${HOST_PREFIX}ld${TOOLCHAIN_OPTIONS} ${HOST_LD_ARCH}" 519eb8dc403SDave Cobbleyexport CCLD = "${CC}" 520eb8dc403SDave Cobbleyexport AR = "${HOST_PREFIX}ar" 521eb8dc403SDave Cobbleyexport AS = "${HOST_PREFIX}as ${HOST_AS_ARCH}" 522eb8dc403SDave Cobbleyexport RANLIB = "${HOST_PREFIX}ranlib" 523eb8dc403SDave Cobbleyexport STRIP = "${HOST_PREFIX}strip" 524eb8dc403SDave Cobbleyexport OBJCOPY = "${HOST_PREFIX}objcopy" 525eb8dc403SDave Cobbleyexport OBJDUMP = "${HOST_PREFIX}objdump" 526eb8dc403SDave Cobbleyexport STRINGS = "${HOST_PREFIX}strings" 527eb8dc403SDave Cobbleyexport NM = "${HOST_PREFIX}nm" 528eb8dc403SDave Cobbleyexport READELF = "${HOST_PREFIX}readelf" 529eb8dc403SDave CobbleyPYTHON = "${@sys.executable}" 530eb8dc403SDave Cobbley 531eb8dc403SDave Cobbleyexport BUILD_CC = "${CCACHE}${BUILD_PREFIX}gcc ${BUILD_CC_ARCH}" 532eb8dc403SDave Cobbleyexport BUILD_CXX = "${CCACHE}${BUILD_PREFIX}g++ ${BUILD_CC_ARCH}" 533eb8dc403SDave Cobbleyexport BUILD_FC = "${CCACHE}${BUILD_PREFIX}gfortran ${BUILD_CC_ARCH}" 534eb8dc403SDave Cobbleyexport BUILD_CPP = "${BUILD_PREFIX}gcc ${BUILD_CC_ARCH} -E" 535eb8dc403SDave Cobbleyexport BUILD_LD = "${BUILD_PREFIX}ld ${BUILD_LD_ARCH}" 536eb8dc403SDave Cobbleyexport BUILD_CCLD = "${BUILD_PREFIX}gcc ${BUILD_CC_ARCH}" 537eb8dc403SDave Cobbleyexport BUILD_AR = "${BUILD_PREFIX}ar" 538eb8dc403SDave Cobbleyexport BUILD_AS = "${BUILD_PREFIX}as ${BUILD_AS_ARCH}" 539eb8dc403SDave Cobbleyexport BUILD_RANLIB = "${BUILD_PREFIX}ranlib" 540eb8dc403SDave Cobbleyexport BUILD_STRIP = "${BUILD_PREFIX}strip" 541eb8dc403SDave Cobbleyexport BUILD_NM = "${BUILD_PREFIX}nm" 542eb8dc403SDave Cobbley 543eb8dc403SDave Cobbleyexport MAKE = "make" 544eb8dc403SDave CobbleyEXTRA_OEMAKE = "" 545eb8dc403SDave CobbleyEXTRA_OECONF = "" 546eb8dc403SDave Cobbleyexport LC_ALL = "en_US.UTF-8" 547eb8dc403SDave Cobbleyexport TZ = 'UTC' 548eb8dc403SDave Cobbley 549eb8dc403SDave Cobbley################################################################## 550eb8dc403SDave Cobbley# Patch handling. 551eb8dc403SDave Cobbley################################################################## 552eb8dc403SDave CobbleyPATCHTOOL = "quilt" 553eb8dc403SDave CobbleyPATCHRESOLVE = "noop" 554eb8dc403SDave Cobbley 555eb8dc403SDave Cobbley################################################################## 556eb8dc403SDave Cobbley# Build flags and options. 557eb8dc403SDave Cobbley################################################################## 558eb8dc403SDave Cobbley 559eb8dc403SDave Cobbleyexport BUILD_CPPFLAGS = "-isystem${STAGING_INCDIR_NATIVE}" 560eb8dc403SDave CobbleyBUILDSDK_CPPFLAGS = "" 561eb8dc403SDave Cobbleyexport CPPFLAGS = "${TARGET_CPPFLAGS}" 562eb8dc403SDave Cobbleyexport TARGET_CPPFLAGS = "" 563eb8dc403SDave Cobbley 564eb8dc403SDave Cobbleyexport BUILD_CFLAGS = "${BUILD_CPPFLAGS} ${BUILD_OPTIMIZATION}" 565eb8dc403SDave CobbleyBUILDSDK_CFLAGS = "${BUILDSDK_CPPFLAGS} ${BUILD_OPTIMIZATION}" 566eb8dc403SDave Cobbleyexport CFLAGS = "${TARGET_CFLAGS}" 567eb8dc403SDave Cobbleyexport TARGET_CFLAGS = "${TARGET_CPPFLAGS} ${SELECTED_OPTIMIZATION}" 568eb8dc403SDave Cobbley 569eb8dc403SDave Cobbleyexport BUILD_CXXFLAGS = "${BUILD_CFLAGS}" 570eb8dc403SDave CobbleyBUILDSDK_CXXFLAGS = "${BUILDSDK_CFLAGS}" 571eb8dc403SDave Cobbleyexport CXXFLAGS = "${TARGET_CXXFLAGS}" 572eb8dc403SDave Cobbleyexport TARGET_CXXFLAGS = "${TARGET_CFLAGS}" 573eb8dc403SDave Cobbley 574eb8dc403SDave Cobbleyexport BUILD_LDFLAGS = "-L${STAGING_LIBDIR_NATIVE} \ 575eb8dc403SDave Cobbley -L${STAGING_BASE_LIBDIR_NATIVE} \ 576eb8dc403SDave Cobbley -Wl,-rpath-link,${STAGING_LIBDIR_NATIVE} \ 577eb8dc403SDave Cobbley -Wl,-rpath-link,${STAGING_BASE_LIBDIR_NATIVE} \ 578eb8dc403SDave Cobbley -Wl,-rpath,${STAGING_LIBDIR_NATIVE} \ 579eb8dc403SDave Cobbley -Wl,-rpath,${STAGING_BASE_LIBDIR_NATIVE} \ 580eb8dc403SDave Cobbley -Wl,-O1" 581eb8dc403SDave Cobbley 582eb8dc403SDave CobbleyBUILDSDK_LDFLAGS = "-Wl,-O1" 583eb8dc403SDave Cobbley 584eb8dc403SDave CobbleyLINKER_HASH_STYLE ??= "gnu" 585eb8dc403SDave Cobbley# mips does not support GNU hash style therefore we override 586eb8dc403SDave CobbleyLINKER_HASH_STYLE_mipsarch = "sysv" 587eb8dc403SDave Cobbley 588eb8dc403SDave CobbleyTARGET_LINK_HASH_STYLE ?= "${@['-Wl,--hash-style=gnu',''][d.getVar('LINKER_HASH_STYLE') != 'gnu']}" 589eb8dc403SDave Cobbley 590*1a4b7ee2SBrad BishopASNEEDED ?= "-Wl,--as-needed" 591*1a4b7ee2SBrad Bishop 592eb8dc403SDave Cobbleyexport LDFLAGS = "${TARGET_LDFLAGS}" 593*1a4b7ee2SBrad Bishopexport TARGET_LDFLAGS = "-Wl,-O1 ${TARGET_LINK_HASH_STYLE} ${ASNEEDED}" 594eb8dc403SDave Cobbley 595eb8dc403SDave Cobbley# Pass parallel make options to the compile task 596eb8dc403SDave CobbleyEXTRA_OEMAKE_prepend_task-compile = "${PARALLEL_MAKE} " 597eb8dc403SDave CobbleyPARALLEL_MAKEINST ??= "${PARALLEL_MAKE}" 598eb8dc403SDave Cobbley# Pass parallel make options to the install task 599eb8dc403SDave CobbleyEXTRA_OEMAKE_prepend_task-install = "${PARALLEL_MAKEINST} " 600eb8dc403SDave Cobbley 601eb8dc403SDave Cobbley################################################################## 602eb8dc403SDave Cobbley# Optimization flags. 603eb8dc403SDave Cobbley################################################################## 604eb8dc403SDave Cobbley# Beware: applied last to first 605eb8dc403SDave CobbleyDEBUG_PREFIX_MAP ?= "-fdebug-prefix-map=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR} \ 606eb8dc403SDave Cobbley -fdebug-prefix-map=${STAGING_DIR_HOST}= \ 607eb8dc403SDave Cobbley -fdebug-prefix-map=${STAGING_DIR_NATIVE}= \ 608eb8dc403SDave Cobbley" 609eb8dc403SDave CobbleyDEBUG_FLAGS ?= "-g -feliminate-unused-debug-types ${DEBUG_PREFIX_MAP}" 610eb8dc403SDave Cobbley 611eb8dc403SDave Cobbley# Disabled until the option works properly -feliminate-dwarf2-dups 612eb8dc403SDave CobbleyFULL_OPTIMIZATION = "-O2 -pipe ${DEBUG_FLAGS}" 613eb8dc403SDave CobbleyDEBUG_OPTIMIZATION = "-O -fno-omit-frame-pointer ${DEBUG_FLAGS} -pipe" 614*1a4b7ee2SBrad BishopSELECTED_OPTIMIZATION = "${@d.getVar(oe.utils.vartrue('DEBUG_BUILD', 'DEBUG_OPTIMIZATION', 'FULL_OPTIMIZATION', d))}" 615eb8dc403SDave CobbleySELECTED_OPTIMIZATION[vardeps] += "FULL_OPTIMIZATION DEBUG_OPTIMIZATION" 616*1a4b7ee2SBrad BishopBUILD_OPTIMIZATION = "${@oe.utils.vartrue('DEBUG_BUILD', '-O -g -feliminate-unused-debug-types -fno-omit-frame-pointer', '-O2', d)} -pipe" 617eb8dc403SDave Cobbley 618eb8dc403SDave Cobbley################################################################## 619eb8dc403SDave Cobbley# Settings used by bitbake-layers. 620eb8dc403SDave Cobbley################################################################## 621eb8dc403SDave CobbleyBBLAYERS_LAYERINDEX_URL ??= "http://layers.openembedded.org/layerindex/" 622eb8dc403SDave CobbleyBBLAYERS_FETCH_DIR ??= "${COREBASE}" 623eb8dc403SDave Cobbley 624eb8dc403SDave Cobbley################################################################## 625eb8dc403SDave Cobbley# Download locations and utilities. 626eb8dc403SDave Cobbley################################################################## 627eb8dc403SDave Cobbley 628eb8dc403SDave CobbleyAPACHE_MIRROR = "http://archive.apache.org/dist" 629eb8dc403SDave CobbleyDEBIAN_MIRROR = "http://ftp.debian.org/debian/pool" 630eb8dc403SDave CobbleyGENTOO_MIRROR = "http://distfiles.gentoo.org/distfiles" 631004d4995SBrad BishopGNOME_GIT = "git://gitlab.gnome.org/GNOME" 632eb8dc403SDave CobbleyGNOME_MIRROR = "http://ftp.gnome.org/pub/GNOME/sources" 633eb8dc403SDave CobbleyGNU_MIRROR = "http://ftp.gnu.org/gnu" 634eb8dc403SDave CobbleyGNUPG_MIRROR = "https://www.gnupg.org/ftp/gcrypt" 635eb8dc403SDave CobbleyGPE_MIRROR = "http://gpe.linuxtogo.org/download/source" 636eb8dc403SDave CobbleyKERNELORG_MIRROR = "http://cdn.kernel.org/pub" 637eb8dc403SDave CobbleySOURCEFORGE_MIRROR = "http://downloads.sourceforge.net" 638eb8dc403SDave CobbleyXLIBS_MIRROR = "http://xlibs.freedesktop.org/release" 639eb8dc403SDave CobbleyXORG_MIRROR = "http://xorg.freedesktop.org/releases" 640eb8dc403SDave CobbleySAVANNAH_GNU_MIRROR = "http://download.savannah.gnu.org/releases" 641eb8dc403SDave CobbleySAVANNAH_NONGNU_MIRROR = "http://download.savannah.nongnu.org/releases" 642eb8dc403SDave CobbleyCPAN_MIRROR = "http://search.cpan.org/CPAN" 643eb8dc403SDave Cobbley 644eb8dc403SDave CobbleySRC_URI[vardepsexclude] += "\ 645eb8dc403SDave Cobbley APACHE_MIRROR \ 646eb8dc403SDave Cobbley CPAN_MIRROR \ 647eb8dc403SDave Cobbley DEBIAN_MIRROR \ 648eb8dc403SDave Cobbley GENTOO_MIRROR \ 649eb8dc403SDave Cobbley GNOME_GIT \ 650eb8dc403SDave Cobbley GNOME_MIRROR \ 651eb8dc403SDave Cobbley GNU_MIRROR \ 652eb8dc403SDave Cobbley GNUPG_MIRROR \ 653eb8dc403SDave Cobbley GPE_MIRROR \ 654eb8dc403SDave Cobbley KERNELORG_MIRROR \ 655eb8dc403SDave Cobbley SAVANNAH_GNU_MIRROR \ 656eb8dc403SDave Cobbley SAVANNAH_NONGNU_MIRROR \ 657eb8dc403SDave Cobbley SOURCEFORGE_MIRROR \ 658eb8dc403SDave Cobbley XLIBS_MIRROR \ 659eb8dc403SDave Cobbley XORG_MIRROR \ 660eb8dc403SDave Cobbley" 661eb8dc403SDave Cobbley 662eb8dc403SDave Cobbley# You can use the mirror of your country to get faster downloads by putting 663eb8dc403SDave Cobbley# export DEBIAN_MIRROR = "http://ftp.de.debian.org/debian/pool" 664eb8dc403SDave Cobbley# into your local.conf 665eb8dc403SDave Cobbley 666eb8dc403SDave CobbleyFETCHCMD_svn = "/usr/bin/env svn --non-interactive --trust-server-cert" 667eb8dc403SDave CobbleyFETCHCMD_cvs = "/usr/bin/env cvs" 668d5ae7d90SBrad BishopFETCHCMD_wget = "/usr/bin/env wget -t 2 -T 30 --passive-ftp --no-check-certificate" 669eb8dc403SDave CobbleyFETCHCMD_bzr = "/usr/bin/env bzr" 670eb8dc403SDave CobbleyFETCHCMD_hg = "/usr/bin/env hg" 671eb8dc403SDave Cobbley 672eb8dc403SDave CobbleySRCDATE = "${DATE}" 673eb8dc403SDave CobbleySRCREV ??= "INVALID" 674eb8dc403SDave CobbleyAUTOREV = "${@bb.fetch2.get_autorev(d)}" 675eb8dc403SDave CobbleyAUTOREV[vardepvalue] = "${SRCPV}" 676eb8dc403SDave Cobbley# Set Dynamically in base.bbclass 677eb8dc403SDave Cobbley# SRCPV = "${@bb.fetch2.get_srcrev(d)}" 678eb8dc403SDave CobbleySRCPV[vardepvalue] = "${SRCPV}" 679eb8dc403SDave Cobbley 680eb8dc403SDave CobbleySRC_URI = "" 681eb8dc403SDave Cobbley 682eb8dc403SDave Cobbley# Use pseudo as the fakeroot implementation 683eb8dc403SDave CobbleyPSEUDO_LOCALSTATEDIR ?= "${WORKDIR}/pseudo/" 684eb8dc403SDave CobbleyPSEUDO_PASSWD ?= "${STAGING_DIR_TARGET}:${PSEUDO_SYSROOT}" 685eb8dc403SDave CobbleyPSEUDO_SYSROOT = "${COMPONENTS_DIR}/${BUILD_ARCH}/pseudo-native" 686eb8dc403SDave Cobbleyexport PSEUDO_DISABLED = "1" 687eb8dc403SDave Cobbley#export PSEUDO_PREFIX = "${STAGING_DIR_NATIVE}${prefix_native}" 688eb8dc403SDave Cobbley#export PSEUDO_BINDIR = "${STAGING_DIR_NATIVE}${bindir_native}" 689eb8dc403SDave Cobbley#export PSEUDO_LIBDIR = "${STAGING_DIR_NATIVE}$PSEUDOBINDIR/../lib/pseudo/lib 690eb8dc403SDave CobbleyFAKEROOTBASEENV = "PSEUDO_BINDIR=${PSEUDO_SYSROOT}${bindir_native} PSEUDO_LIBDIR=${PSEUDO_SYSROOT}${prefix_native}/lib/pseudo/lib PSEUDO_PREFIX=${PSEUDO_SYSROOT}${prefix_native} PSEUDO_DISABLED=1" 691eb8dc403SDave CobbleyFAKEROOTCMD = "${PSEUDO_SYSROOT}${bindir_native}/pseudo" 692eb8dc403SDave CobbleyFAKEROOTENV = "PSEUDO_PREFIX=${PSEUDO_SYSROOT}${prefix_native} PSEUDO_LOCALSTATEDIR=${PSEUDO_LOCALSTATEDIR} PSEUDO_PASSWD=${PSEUDO_PASSWD} PSEUDO_NOSYMLINKEXP=1 PSEUDO_DISABLED=0" 693eb8dc403SDave CobbleyFAKEROOTNOENV = "PSEUDO_UNLOAD=1" 694eb8dc403SDave CobbleyFAKEROOTDIRS = "${PSEUDO_LOCALSTATEDIR}" 695eb8dc403SDave CobbleyPREFERRED_PROVIDER_virtual/fakeroot-native ?= "pseudo-native" 696eb8dc403SDave Cobbley 697eb8dc403SDave Cobbley################################################################## 698eb8dc403SDave Cobbley# Not sure about the rest of this yet. 699eb8dc403SDave Cobbley################################################################## 700eb8dc403SDave Cobbley 701eb8dc403SDave Cobbley# Pre-build configuration output 702eb8dc403SDave CobbleyBUILDCFG_HEADER = "Build Configuration:" 703eb8dc403SDave CobbleyBUILDCFG_VARS = "BB_VERSION BUILD_SYS NATIVELSBSTRING TARGET_SYS MACHINE DISTRO DISTRO_VERSION TUNE_FEATURES TARGET_FPU" 704eb8dc403SDave CobbleyBUILDCFG_VARS[type] = "list" 705eb8dc403SDave CobbleyBUILDCFG_NEEDEDVARS = "TARGET_ARCH TARGET_OS" 706eb8dc403SDave CobbleyBUILDCFG_NEEDEDVARS[type] = "list" 707eb8dc403SDave Cobbley 708eb8dc403SDave Cobbley# Other 709eb8dc403SDave Cobbley 710eb8dc403SDave Cobbleyexport PKG_CONFIG_DIR = "${STAGING_DIR_HOST}${libdir}/pkgconfig" 711eb8dc403SDave Cobbleyexport PKG_CONFIG_PATH = "${PKG_CONFIG_DIR}:${STAGING_DATADIR}/pkgconfig" 712eb8dc403SDave Cobbleyexport PKG_CONFIG_LIBDIR = "${PKG_CONFIG_DIR}" 713eb8dc403SDave Cobbleyexport PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}" 714eb8dc403SDave Cobbleyexport PKG_CONFIG_DISABLE_UNINSTALLED = "yes" 715eb8dc403SDave Cobbleyexport PKG_CONFIG_SYSTEM_LIBRARY_PATH = "${base_libdir}:${libdir}" 716eb8dc403SDave Cobbleyexport PKG_CONFIG_SYSTEM_INCLUDE_PATH = "${includedir}" 717eb8dc403SDave Cobbley 718eb8dc403SDave Cobbley### 719eb8dc403SDave Cobbley### Config file processing 720eb8dc403SDave Cobbley### 721eb8dc403SDave Cobbley 722eb8dc403SDave Cobbley# An empty distro leads to :: entries in OVERRIDES and FILEOVERRIDES which 723eb8dc403SDave Cobbley# is a bad idea. Setting a dummy value is better than a ton of anonymous python. 724eb8dc403SDave CobbleyDISTRO ??= "nodistro" 725eb8dc403SDave CobbleyDISTRO_NAME ??= "OpenEmbedded" 726*1a4b7ee2SBrad Bishop 727eb8dc403SDave Cobbley# Overrides are processed left to right, so the ones that are named later take precedence. 728*1a4b7ee2SBrad Bishop# You generally want them to go from least to most specific. This means that: 729*1a4b7ee2SBrad Bishop# A variable '<foo>_arm' overrides a variable '<foo>' when ${TARGET_ARCH} is arm. 730*1a4b7ee2SBrad Bishop# A variable '<foo>_qemuarm' overrides '<foo>' and overrides '<foo>_arm' when ${MACHINE} is 'qemuarm'. 731eb8dc403SDave Cobbley# If you use combination ie '<foo>_qemuarm_arm', then '<foo>_qemuarm_arm' will override 732eb8dc403SDave Cobbley# '<foo>_qemuarm' and then '<foo>' will be overriden with that value from '<foo>_qemuarm'. 733eb8dc403SDave Cobbley# And finally '<foo>_forcevariable' overrides any standard variable, with the highest priority. 734*1a4b7ee2SBrad Bishop# This works for functions as well, they are really just variables. 735eb8dc403SDave Cobbley# 736*1a4b7ee2SBrad BishopOVERRIDES = "${TARGET_OS}:${TRANSLATED_TARGET_ARCH}:pn-${PN}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}:${CLASSOVERRIDE}${LIBCOVERRIDE}:forcevariable" 737*1a4b7ee2SBrad BishopLIBCOVERRIDE ?= "" 738eb8dc403SDave CobbleyCLASSOVERRIDE ?= "class-target" 739eb8dc403SDave CobbleyDISTROOVERRIDES ?= "${@d.getVar('DISTRO') or ''}" 740eb8dc403SDave CobbleyMACHINEOVERRIDES ?= "${MACHINE}" 741eb8dc403SDave Cobbley 742eb8dc403SDave CobbleyFILESOVERRIDES = "${TRANSLATED_TARGET_ARCH}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}" 743eb8dc403SDave Cobbley 744eb8dc403SDave Cobbley################################################################## 745eb8dc403SDave Cobbley# Include the rest of the config files. 746eb8dc403SDave Cobbley################################################################## 747eb8dc403SDave Cobbley 748eb8dc403SDave Cobbleyrequire conf/abi_version.conf 749eb8dc403SDave Cobbleyinclude conf/site.conf 750eb8dc403SDave Cobbleyinclude conf/auto.conf 751eb8dc403SDave Cobbleyinclude conf/local.conf 752eb8dc403SDave Cobbleyrequire conf/multiconfig/${BB_CURRENT_MC}.conf 753eb8dc403SDave Cobbleyinclude conf/machine/${MACHINE}.conf 754eb8dc403SDave Cobbleyinclude conf/machine-sdk/${SDKMACHINE}.conf 755eb8dc403SDave Cobbleyinclude conf/distro/${DISTRO}.conf 756eb8dc403SDave Cobbleyinclude conf/distro/defaultsetup.conf 757eb8dc403SDave Cobbleyinclude conf/documentation.conf 758eb8dc403SDave Cobbleyinclude conf/licenses.conf 759eb8dc403SDave Cobbleyrequire conf/sanity.conf 760eb8dc403SDave Cobbley 761eb8dc403SDave Cobbley################################################################## 762eb8dc403SDave Cobbley# Weak variables (usually to retain backwards compatibility) 763eb8dc403SDave Cobbley################################################################## 764eb8dc403SDave Cobbley 765eb8dc403SDave CobbleyDL_DIR ?= "${TOPDIR}/downloads" 766eb8dc403SDave CobbleySSTATE_DIR ?= "${TOPDIR}/sstate-cache" 767eb8dc403SDave CobbleyIMAGE_FSTYPES ?= "tar.gz" 768eb8dc403SDave CobbleyIMAGE_FSTYPES_DEBUGFS ?= "tar.gz" 769eb8dc403SDave Cobbley 770eb8dc403SDave CobbleyINITRAMFS_FSTYPES ?= "cpio.gz" 771eb8dc403SDave Cobbley# The maximum size in Kbytes for the generated initramfs image size. 772eb8dc403SDave Cobbley# Usually, it should be less than 1/2 of ram size, or you may fail to 773eb8dc403SDave Cobbley# boot it. 774eb8dc403SDave CobbleyINITRAMFS_MAXSIZE ??= "131072" 775eb8dc403SDave Cobbley 776eb8dc403SDave CobbleyDEFAULT_TASK_PROVIDER ?= "packagegroup-base" 777eb8dc403SDave CobbleyMACHINE_TASK_PROVIDER ?= "${DEFAULT_TASK_PROVIDER}" 778eb8dc403SDave Cobbley 779eb8dc403SDave Cobbley# The size in Kbytes for the generated image if it is larger than 780eb8dc403SDave Cobbley# the required size (du -ks IMAGE_ROOTFS * IMAGE_OVERHEAD_FACTOR), 781eb8dc403SDave Cobbley# and no effect if less than it. 782eb8dc403SDave CobbleyIMAGE_ROOTFS_SIZE ??= "65536" 783eb8dc403SDave Cobbley 784eb8dc403SDave Cobbley# Forcefully set CACHE now so future changes to things like 785eb8dc403SDave Cobbley# MACHINE don't change the path to the cache 786eb8dc403SDave CobbleyCACHE := "${CACHE}" 787eb8dc403SDave Cobbley 788eb8dc403SDave Cobbley# Default to setting automatically based on cpu count 789eb8dc403SDave CobbleyBB_NUMBER_THREADS ?= "${@oe.utils.cpu_count()}" 790eb8dc403SDave Cobbley 791eb8dc403SDave Cobbley# Default to setting automatically based on cpu count 792eb8dc403SDave CobbleyPARALLEL_MAKE ?= "-j ${@oe.utils.cpu_count()}" 793eb8dc403SDave Cobbley 794eb8dc403SDave Cobbley################################################################## 795eb8dc403SDave Cobbley# Magic Cookie for SANITY CHECK 796eb8dc403SDave Cobbley################################################################## 797eb8dc403SDave CobbleyOES_BITBAKE_CONF = "1" 798eb8dc403SDave Cobbley 799eb8dc403SDave Cobbley################################################################## 800eb8dc403SDave Cobbley# Machine properties and packagegroup-base stuff 801eb8dc403SDave Cobbley################################################################## 802eb8dc403SDave Cobbley 803eb8dc403SDave CobbleyMACHINE_FEATURES ?= "" 804eb8dc403SDave CobbleyDISTRO_FEATURES ?= "" 805eb8dc403SDave Cobbley 806eb8dc403SDave CobbleyDISTRO_EXTRA_RDEPENDS ?= "" 807eb8dc403SDave CobbleyDISTRO_EXTRA_RRECOMMENDS ?= "" 808eb8dc403SDave CobbleyMACHINE_EXTRA_RDEPENDS ?= "" 809eb8dc403SDave CobbleyMACHINE_EXTRA_RRECOMMENDS ?= "" 810eb8dc403SDave CobbleyMACHINE_ESSENTIAL_EXTRA_RDEPENDS ?= "" 811eb8dc403SDave CobbleyMACHINE_ESSENTIAL_EXTRA_RRECOMMENDS ?= "" 812eb8dc403SDave Cobbley 813eb8dc403SDave CobbleyEXTRA_IMAGE_FEATURES ??= "" 814eb8dc403SDave CobbleyIMAGE_FEATURES += "${EXTRA_IMAGE_FEATURES}" 815eb8dc403SDave Cobbley 816eb8dc403SDave Cobbley# Native distro features (will always be used for -native, even if they 817eb8dc403SDave Cobbley# are not enabled for target) 818eb8dc403SDave CobbleyDISTRO_FEATURES_NATIVE ?= "x11 ipv6 xattr" 819eb8dc403SDave CobbleyDISTRO_FEATURES_NATIVESDK ?= "x11 libc-charsets libc-locales libc-locale-code" 820eb8dc403SDave Cobbley 821eb8dc403SDave Cobbley# Normally target distro features will not be applied to native builds: 822eb8dc403SDave Cobbley# Native distro features on this list will use the target feature value 823eb8dc403SDave CobbleyDISTRO_FEATURES_FILTER_NATIVE ?= "api-documentation" 824eb8dc403SDave CobbleyDISTRO_FEATURES_FILTER_NATIVESDK ?= "api-documentation" 825eb8dc403SDave Cobbley 826eb8dc403SDave CobbleyDISTRO_FEATURES_BACKFILL = "pulseaudio sysvinit bluez5 gobject-introspection-data ldconfig" 827eb8dc403SDave CobbleyMACHINE_FEATURES_BACKFILL = "rtc qemu-usermode" 828eb8dc403SDave Cobbley 829eb8dc403SDave CobbleyCOMBINED_FEATURES = "${@oe.utils.set_intersect('DISTRO_FEATURES', 'MACHINE_FEATURES', d)}" 830eb8dc403SDave CobbleyCOMBINED_FEATURES[vardeps] += "DISTRO_FEATURES MACHINE_FEATURES" 831eb8dc403SDave Cobbley 832eb8dc403SDave CobbleySERIAL_CONSOLE ??= "" 833eb8dc403SDave CobbleySERIAL_CONSOLES ??= "${@d.getVar('SERIAL_CONSOLE').replace(' ', ';')}" 834eb8dc403SDave Cobbley 835eb8dc403SDave CobbleyNO_RECOMMENDATIONS ?= "" 836eb8dc403SDave CobbleyBAD_RECOMMENDATIONS ?= "" 837eb8dc403SDave Cobbley 838eb8dc403SDave Cobbley# Make sure MACHINE isn't exported 839eb8dc403SDave Cobbley# (breaks binutils at least) 840eb8dc403SDave CobbleyMACHINE[unexport] = "1" 841eb8dc403SDave Cobbley 842eb8dc403SDave Cobbley# Make sure TARGET_ARCH isn't exported 843eb8dc403SDave Cobbley# (breaks Makefiles using implicit rules, e.g. quilt, as GNU make has this 844eb8dc403SDave Cobbley# in them, undocumented) 845eb8dc403SDave CobbleyTARGET_ARCH[unexport] = "1" 846eb8dc403SDave Cobbley 847eb8dc403SDave Cobbley# Make sure DISTRO isn't exported 848eb8dc403SDave Cobbley# (breaks sysvinit at least) 849eb8dc403SDave CobbleyDISTRO[unexport] = "1" 850eb8dc403SDave Cobbley 851eb8dc403SDave Cobbley# Make sure SHELL isn't exported 852eb8dc403SDave Cobbley# (can break any number of things if the user's shell isn't POSIX-compliant, 853eb8dc403SDave Cobbley# including the flock command). The user's shell shouldn't affect our builds. 854eb8dc403SDave CobbleySHELL[unexport] = "1" 855eb8dc403SDave Cobbley 856eb8dc403SDave Cobbley# Used by canadian-cross to handle string conversions on TARGET_ARCH where needed 857eb8dc403SDave CobbleyTRANSLATED_TARGET_ARCH ??= "${@d.getVar('TARGET_ARCH').replace("_", "-")}" 858eb8dc403SDave Cobbley 859eb8dc403SDave Cobbley# Complete output from bitbake 860eb8dc403SDave CobbleyBB_CONSOLELOG ?= "${LOG_DIR}/cooker/${MACHINE}/${DATETIME}.log" 861eb8dc403SDave Cobbley 862eb8dc403SDave Cobbley# Setup our default hash policy 863eb8dc403SDave CobbleyBB_SIGNATURE_HANDLER ?= "OEBasicHash" 864eb8dc403SDave CobbleyBB_HASHBASE_WHITELIST ?= "TMPDIR FILE PATH PWD BB_TASKHASH BBPATH BBSERVER DL_DIR \ 865eb8dc403SDave Cobbley SSTATE_DIR THISDIR FILESEXTRAPATHS FILE_DIRNAME HOME LOGNAME SHELL TERM \ 866eb8dc403SDave Cobbley USER FILESPATH STAGING_DIR_HOST STAGING_DIR_TARGET COREBASE PRSERV_HOST \ 867eb8dc403SDave Cobbley STAMPS_DIR PRSERV_DUMPDIR PRSERV_DUMPFILE PRSERV_LOCKDOWN PARALLEL_MAKE \ 868eb8dc403SDave Cobbley CCACHE_DIR EXTERNAL_TOOLCHAIN CCACHE CCACHE_NOHASHDIR LICENSE_PATH SDKPKGSUFFIX \ 869eb8dc403SDave Cobbley WARN_QA ERROR_QA WORKDIR STAMPCLEAN PKGDATA_DIR BUILD_ARCH SSTATE_PKGARCH \ 870eb8dc403SDave Cobbley BB_WORKERCONTEXT BB_LIMITEDDEPS extend_recipe_sysroot DEPLOY_DIR" 871eb8dc403SDave CobbleyBB_HASHCONFIG_WHITELIST ?= "${BB_HASHBASE_WHITELIST} DATE TIME SSH_AGENT_PID \ 872eb8dc403SDave Cobbley SSH_AUTH_SOCK PSEUDO_BUILD BB_ENV_EXTRAWHITE DISABLE_SANITY_CHECKS \ 873eb8dc403SDave Cobbley PARALLEL_MAKE BB_NUMBER_THREADS BB_ORIGENV BB_INVALIDCONF BBINCLUDED \ 874eb8dc403SDave Cobbley GIT_PROXY_COMMAND ALL_PROXY all_proxy NO_PROXY no_proxy FTP_PROXY ftp_proxy \ 875eb8dc403SDave Cobbley HTTP_PROXY http_proxy HTTPS_PROXY https_proxy SOCKS5_USER SOCKS5_PASSWD \ 876eb8dc403SDave Cobbley BB_SETSCENE_ENFORCE BB_CMDLINE BB_SERVER_TIMEOUT" 877eb8dc403SDave CobbleyBB_SIGNATURE_EXCLUDE_FLAGS ?= "doc deps depends \ 878eb8dc403SDave Cobbley lockfiles type vardepsexclude vardeps vardepvalue vardepvalueexclude \ 879eb8dc403SDave Cobbley file-checksums python func task export unexport noexec nostamp dirs cleandirs \ 880eb8dc403SDave Cobbley sstate-lockfile-shared prefuncs postfuncs export_func deptask rdeptask \ 881eb8dc403SDave Cobbley recrdeptask nodeprrecs stamp-extra-info sstate-outputdirs filename lineno \ 882*1a4b7ee2SBrad Bishop progress mcdepends" 883eb8dc403SDave Cobbley 884eb8dc403SDave CobbleyMLPREFIX ??= "" 885eb8dc403SDave CobbleyMULTILIB_VARIANTS ??= "" 886