blob: 6e767b1bc1b4add0674b7fbccfcf04f82149e0f3 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001##################################################################
2# Standard target filesystem paths.
3##################################################################
4#
5# If changing these values, beware that native/cross/nativesdk bbclass
6# files may also need changes to keep in sync.
7#
8
9# Used by multilib code to change the library paths
10baselib = "${BASELIB}"
11baselib[vardepvalue] = "${baselib}"
12BASELIB = "lib"
13BASELIB_powerpc64 = "lib64"
14
15# Path prefixes
16export base_prefix = ""
17export prefix = "/usr"
Patrick Williamsc0f7c042017-02-23 20:41:17 -060018export exec_prefix = "${prefix}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050019
20# Base paths
21export base_bindir = "${base_prefix}/bin"
22export base_sbindir = "${base_prefix}/sbin"
23export base_libdir = "${base_prefix}/${baselib}"
24export nonarch_base_libdir = "${base_prefix}/lib"
25
26# Architecture independent paths
27export sysconfdir = "${base_prefix}/etc"
28export servicedir = "${base_prefix}/srv"
29export sharedstatedir = "${base_prefix}/com"
30export localstatedir = "${base_prefix}/var"
31export datadir = "${prefix}/share"
32export infodir = "${datadir}/info"
33export mandir = "${datadir}/man"
34export docdir = "${datadir}/doc"
35export systemd_unitdir = "${nonarch_base_libdir}/systemd"
36export systemd_system_unitdir = "${nonarch_base_libdir}/systemd/system"
37export nonarch_libdir = "${exec_prefix}/lib"
38export systemd_user_unitdir = "${nonarch_libdir}/systemd/user"
39
40# Architecture dependent paths
41export bindir = "${exec_prefix}/bin"
42export sbindir = "${exec_prefix}/sbin"
43export libdir = "${exec_prefix}/${baselib}"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050044export libexecdir = "${exec_prefix}/libexec"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050045export includedir = "${exec_prefix}/include"
46export oldincludedir = "${exec_prefix}/include"
47localedir = "${libdir}/locale"
48
49# Linkage between native/cross/nativesdk layouts
50base_bindir_native = "/bin"
51base_sbindir_native = "/sbin"
52sysconfdir_native = "/etc"
53prefix_native = "/usr"
54bindir_native = "${prefix_native}/bin"
55sbindir_native = "${prefix_native}/sbin"
56includedir_native = "${prefix_native}/include"
57libdir_native = "${prefix_native}/lib"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050058libexecdir_native = "${prefix_native}/libexec"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050059base_libdir_native = "/lib"
60datadir_native = "${prefix_native}/share"
61bindir_cross = "/bin"
62bindir_crossscripts = "${bindir}/crossscripts"
63prefix_nativesdk = "/usr"
64bindir_nativesdk = "${prefix_nativesdk}/bin"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050065sbindir_nativesdk = "${prefix_nativesdk}/sbin"
66base_bindir_nativesdk = "/bin"
67base_sbindir_nativesdk = "/sbin"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050068includedir_nativesdk = "${prefix_nativesdk}/include"
69libdir_nativesdk = "${prefix_nativesdk}/lib"
70base_libdir_nativesdk = "/lib"
71localstatedir_nativesdk = "/var"
72
73#
74# Cross recipes need to know about the target layout
75# := is used carefully here
76#
77target_datadir := "${datadir}"
78# Used to find env/perl/python
79USRBINPATH = "${bindir}"
80USRBINPATH_class-native = "/usr/bin"
81USRBINPATH_class-nativesdk = "/usr/bin"
82
83# Root home directory
84ROOT_HOME ??= "/home/root"
85
86##################################################################
87# Architecture-dependent build variables.
88##################################################################
89
90# Immediate expansion since there is no point in reapeatedly calling
91# os.uname() throughout parsing
92BUILD_ARCH := "${@os.uname()[4]}"
93BUILD_OS := "${@os.uname()[0].lower()}"
94BUILD_VENDOR = ""
95BUILD_SYS = "${BUILD_ARCH}${BUILD_VENDOR}-${BUILD_OS}"
96BUILD_PREFIX = ""
97BUILD_CC_ARCH = ""
98BUILD_LD_ARCH = ""
99BUILD_AS_ARCH = ""
100BUILD_EXEEXT = ""
101
102HOST_ARCH = "${TARGET_ARCH}"
103HOST_OS = "${TARGET_OS}"
104HOST_VENDOR = "${TARGET_VENDOR}"
105HOST_SYS = "${HOST_ARCH}${HOST_VENDOR}-${HOST_OS}"
106HOST_PREFIX = "${TARGET_PREFIX}"
107HOST_CC_ARCH = "${TARGET_CC_ARCH}"
108HOST_LD_ARCH = "${TARGET_LD_ARCH}"
109HOST_AS_ARCH = "${TARGET_AS_ARCH}"
110HOST_EXEEXT = ""
111
112TUNE_ARCH ??= "INVALID"
113TUNE_CCARGS ??= ""
114TUNE_CCARGS[vardepvalue] = "${TUNE_CCARGS}"
115TUNE_LDARGS ??= ""
116TUNE_ASARGS ??= ""
117TUNE_FEATURES ??= "${TUNE_FEATURES_tune-${DEFAULTTUNE}}"
118LIBCEXTENSION ??= ""
119ABIEXTENSION ??= ""
120USE_NLS ??= "${@bb.utils.contains('DISTRO_FEATURES', 'libc-locale-code', 'yes', 'no', d)}"
121SDKUSE_NLS ??= "yes"
122
123TARGET_ARCH = "${TUNE_ARCH}"
124TARGET_OS = "linux${LIBCEXTENSION}${ABIEXTENSION}"
125TARGET_VENDOR = "-oe"
126TARGET_SYS = "${TARGET_ARCH}${TARGET_VENDOR}${@['-' + d.getVar('TARGET_OS', True), ''][d.getVar('TARGET_OS', True) == ('' or 'custom')]}"
127TARGET_PREFIX = "${TARGET_SYS}-"
128TARGET_CC_ARCH = "${TUNE_CCARGS}"
129TARGET_LD_ARCH = "${TUNE_LDARGS}"
130TARGET_AS_ARCH = "${TUNE_ASARGS}"
131
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600132SDKMACHINE ??= "x86_64"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500133SDK_OS = "${BUILD_OS}"
134SDK_VENDOR = "-oesdk"
135SDK_SYS = "${SDK_ARCH}${SDK_VENDOR}${@['-' + d.getVar('SDK_OS', True), ''][d.getVar('SDK_OS', True) == ('' or 'custom')]}"
136SDK_PREFIX = "${SDK_SYS}-"
137SDK_CC_ARCH = "${BUILD_CC_ARCH}"
138SDKPKGSUFFIX = "nativesdk"
139SDK_PACKAGE_ARCHS = "all any noarch ${SDK_ARCH}-${SDKPKGSUFFIX}"
140SDK_LD_ARCH = "${BUILD_LD_ARCH}"
141SDK_AS_ARCH = "${BUILD_AS_ARCH}"
142
143TUNE_PKGARCH ??= ""
144PACKAGE_ARCH ??= "${TUNE_PKGARCH}"
145MACHINE_ARCH = "${@[d.getVar('TUNE_PKGARCH', True), d.getVar('MACHINE', True)][bool(d.getVar('MACHINE', True))].replace('-', '_')}"
146PACKAGE_EXTRA_ARCHS ??= "${PACKAGE_EXTRA_ARCHS_tune-${DEFAULTTUNE}}"
147PACKAGE_ARCHS = "all any noarch ${PACKAGE_EXTRA_ARCHS} ${MACHINE_ARCH}"
148# MACHINE_ARCH shouldn't be included here as a variable dependency
149# since machine specific packages are handled using multimachine
150PACKAGE_ARCHS[vardepsexclude] = "MACHINE_ARCH"
151
152MULTIMACH_TARGET_SYS = "${PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}"
153MULTIMACH_HOST_SYS = "${PACKAGE_ARCH}${HOST_VENDOR}-${HOST_OS}"
154
155##################################################################
156# Date/time variables.
157##################################################################
158
159DATE := "${@time.strftime('%Y%m%d',time.gmtime())}"
160TIME := "${@time.strftime('%H%M%S',time.gmtime())}"
161DATETIME = "${DATE}${TIME}"
162
163##################################################################
164# Openembedded Software Prerequisites.
165##################################################################
166
167# python-native should be here but python relies on building
168# its own in staging
169ASSUME_PROVIDED = "\
170 bzip2-native \
171 chrpath-native \
Patrick Williamsf1e5d692016-03-30 15:21:19 -0500172 file-native \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500173 findutils-native \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500174 git-native \
175 grep-native \
176 diffstat-native \
177 patch-native \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500178 libgcc-native \
179 hostperl-runtime-native \
180 hostpython-runtime-native \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500181 tar-native \
182 virtual/libintl-native \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500183 virtual/libiconv-native \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500184 texinfo-native \
185 bash-native \
186 sed-native \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500187 wget-native \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500188 "
189# gzip-native should be listed above?
190
191##################################################################
192# Package default variables.
193##################################################################
194
195PN = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE', False),d)[0] or 'defaultpkgname'}"
196PV = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE', False),d)[1] or '1.0'}"
197PR = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE', False),d)[2] or 'r0'}"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500198PE = ""
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500199PF = "${PN}-${EXTENDPE}${PV}-${PR}"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500200EXTENDPE = "${@['','${PE}_'][int(d.getVar('PE', True) or 0) > 0]}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500201P = "${PN}-${PV}"
202
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500203PRAUTO = ""
204EXTENDPRAUTO = "${@['.${PRAUTO}', ''][not d.getVar('PRAUTO', True)]}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500205PRAUTOINX = "${PF}"
206
207PKGV ?= "${PV}"
208PKGR ?= "${PR}${EXTENDPRAUTO}"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500209PKGE ?= "${@['','${PE}'][int(d.getVar('PE', True) or 0) > 0]}"
210EXTENDPKGEVER = "${@['','${PKGE}:'][d.getVar('PKGE', True).strip() != '']}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500211EXTENDPKGV ?= "${EXTENDPKGEVER}${PKGV}-${PKGR}"
212
213# Base package name
214# Automatically derives "foo" from "foo-native", "foo-cross" or "foo-initial"
215# otherwise it is the same as PN and P
216SPECIAL_PKGSUFFIX = "-native -cross -initial -intermediate -crosssdk -cross-canadian"
217BPN = "${@base_prune_suffix(d.getVar('PN', True), d.getVar('SPECIAL_PKGSUFFIX', True).split(), d)}"
218BP = "${BPN}-${PV}"
219
220# Package info.
221
222SECTION = "base"
223PRIORITY = "optional"
224SUMMARY ?= "${PN} version ${PV}-${PR}"
225DESCRIPTION ?= "${SUMMARY}."
226
227# The following two are commented out because they result in a recursive
228# definition of the variable in some corner cases. These are left in
229# to illustrate the intended behavior.
230#SUMMARY_${PN} ?= "${SUMMARY}"
231#DESCRIPTION_${PN} ?= "${DESCRIPTION}"
232
233SUMMARY_${PN}-dbg ?= "${SUMMARY} - Debugging files"
234DESCRIPTION_${PN}-dbg ?= "${DESCRIPTION} \
235This package contains ELF symbols and related sources for debugging purposes."
236
237SUMMARY_${PN}-dev ?= "${SUMMARY} - Development files"
238DESCRIPTION_${PN}-dev ?= "${DESCRIPTION} \
239This package contains symbolic links, header files, and \
240related items necessary for software development."
241
242SUMMARY_${PN}-staticdev ?= "${SUMMARY} - Development files (Static Libraries)"
243DESCRIPTION_${PN}-staticdev?= "${DESCRIPTION} \
244This package contains static libraries for software development."
245
246SUMMARY_${PN}-doc ?= "${SUMMARY} - Documentation files"
247DESCRIPTION_${PN}-doc ?= "${DESCRIPTION} \
248This package contains documentation."
249
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600250LICENSE ??= "INVALID"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500251MAINTAINER = "OE-Core Developers <openembedded-core@lists.openembedded.org>"
252HOMEPAGE = ""
253
254# Package dependencies and provides.
255
256# Ensure that -dev packages recommend the corresponding -dev packages of their
257# deps, and the same for -dbg.
258DEPCHAIN_PRE = ""
259DEPCHAIN_POST = "-dev -dbg"
260
261DEPENDS = ""
262RDEPENDS = ""
263PROVIDES = ""
264PROVIDES_prepend = "${PN} "
265RPROVIDES = ""
266
267MULTI_PROVIDER_WHITELIST = "virtual/libintl virtual/libintl-native virtual/nativesdk-libintl virtual/xserver virtual/update-alternatives-native virtual/update-alternatives"
268
269SOLIBS = ".so.*"
270SOLIBS_darwin = ".dylib"
271
272SOLIBSDEV = ".so"
273# Due to the ordering of PACKAGES and the naming of the dev symlinks on darwin,
274# we can't make the symlinks end up in the -dev packages easily at this point. This hack
275# at least means builds aren't completely broken and symlinks don't take up much space.
276SOLIBSDEV_darwin = ".dylibbroken"
277
278PACKAGE_BEFORE_PN ?= ""
279PACKAGES = "${PN}-dbg ${PN}-staticdev ${PN}-dev ${PN}-doc ${PN}-locale ${PACKAGE_BEFORE_PN} ${PN}"
280PACKAGES_DYNAMIC = "^${PN}-locale-.*"
281FILES = ""
282
283FILES_${PN} = "${bindir}/* ${sbindir}/* ${libexecdir}/* ${libdir}/lib*${SOLIBS} \
284 ${sysconfdir} ${sharedstatedir} ${localstatedir} \
285 ${base_bindir}/* ${base_sbindir}/* \
286 ${base_libdir}/*${SOLIBS} \
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600287 ${base_prefix}/lib/udev ${prefix}/lib/udev \
288 ${base_libdir}/udev ${libdir}/udev \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500289 ${datadir}/${BPN} ${libdir}/${BPN}/* \
290 ${datadir}/pixmaps ${datadir}/applications \
291 ${datadir}/idl ${datadir}/omf ${datadir}/sounds \
292 ${libdir}/bonobo/servers"
293
294FILES_${PN}-bin = "${bindir}/* ${sbindir}/*"
295
296FILES_${PN}-doc = "${docdir} ${mandir} ${infodir} ${datadir}/gtk-doc \
297 ${datadir}/gnome/help"
298SECTION_${PN}-doc = "doc"
299
300FILES_SOLIBSDEV ?= "${base_libdir}/lib*${SOLIBSDEV} ${libdir}/lib*${SOLIBSDEV}"
301FILES_${PN}-dev = "${includedir} ${FILES_SOLIBSDEV} ${libdir}/*.la \
302 ${libdir}/*.o ${libdir}/pkgconfig ${datadir}/pkgconfig \
303 ${datadir}/aclocal ${base_libdir}/*.o \
304 ${libdir}/${BPN}/*.la ${base_libdir}/*.la"
305SECTION_${PN}-dev = "devel"
306ALLOW_EMPTY_${PN}-dev = "1"
307RDEPENDS_${PN}-dev = "${PN} (= ${EXTENDPKGV})"
308
309FILES_${PN}-staticdev = "${libdir}/*.a ${base_libdir}/*.a ${libdir}/${BPN}/*.a"
310SECTION_${PN}-staticdev = "devel"
311RDEPENDS_${PN}-staticdev = "${PN}-dev (= ${EXTENDPKGV})"
312
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500313FILES_${PN}-dbg = "/usr/lib/debug /usr/src/debug"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500314
315SECTION_${PN}-dbg = "devel"
316ALLOW_EMPTY_${PN}-dbg = "1"
317
318FILES_${PN}-locale = "${datadir}/locale"
319
320# File manifest
321
322FILE_DIRNAME = "${@os.path.dirname(d.getVar('FILE', False))}"
323# FILESPATH is set in base.bbclass
324#FILESPATH = "${FILE_DIRNAME}/${PF}:${FILE_DIRNAME}/${P}:${FILE_DIRNAME}/${PN}:${FILE_DIRNAME}/${BP}:${FILE_DIRNAME}/${BPN}:${FILE_DIRNAME}/files:${FILE_DIRNAME}"
325# This default was only used for checking
326FILESEXTRAPATHS ?= "__default:"
327
328##################################################################
329# General work and output directories for the build system.
330##################################################################
331
332TMPDIR ?= "${TOPDIR}/tmp"
333CACHE = "${TMPDIR}/cache${@['', '/' + str(d.getVar('MACHINE', True))][bool(d.getVar('MACHINE', True))]}${@['', '/' + str(d.getVar('SDKMACHINE', True))][bool(d.getVar('SDKMACHINE', True))]}"
334# The persistent cache should be shared by all builds
335PERSISTENT_DIR = "${TOPDIR}/cache"
336LOG_DIR = "${TMPDIR}/log"
337CO_DIR = "${DL_DIR}"
338CVSDIR = "${CO_DIR}/cvs"
339SVNDIR = "${CO_DIR}/svn"
340GITDIR = "${CO_DIR}/git2"
341BZRDIR = "${CO_DIR}/bzr"
342HGDIR = "${CO_DIR}/hg"
343
344STAMPS_DIR ?= "${TMPDIR}/stamps"
345STAMP = "${STAMPS_DIR}/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR}"
346STAMPCLEAN = "${STAMPS_DIR}/${MULTIMACH_TARGET_SYS}/${PN}/*-*"
347BASE_WORKDIR ?= "${TMPDIR}/work"
348WORKDIR = "${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR}"
349T = "${WORKDIR}/temp"
350D = "${WORKDIR}/image"
351S = "${WORKDIR}/${BP}"
352B = "${S}"
353
354STAGING_DIR = "${TMPDIR}/sysroots"
355
356STAGING_DIR_NATIVE = "${STAGING_DIR}/${BUILD_SYS}"
357STAGING_BINDIR_NATIVE = "${STAGING_DIR_NATIVE}${bindir_native}"
358STAGING_BINDIR_CROSS = "${STAGING_BINDIR}/crossscripts"
359STAGING_BINDIR_TOOLCHAIN = "${STAGING_DIR_NATIVE}${bindir_native}/${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}"
360STAGING_LIBDIR_NATIVE = "${STAGING_DIR_NATIVE}${libdir_native}"
361STAGING_LIBEXECDIR_NATIVE = "${STAGING_DIR_NATIVE}${libexecdir_native}"
362STAGING_BASE_LIBDIR_NATIVE = "${STAGING_DIR_NATIVE}${base_libdir_native}"
363STAGING_SBINDIR_NATIVE = "${STAGING_DIR_NATIVE}${sbindir_native}"
364STAGING_INCDIR_NATIVE = "${STAGING_DIR_NATIVE}${includedir_native}"
365STAGING_ETCDIR_NATIVE = "${STAGING_DIR_NATIVE}${sysconfdir_native}"
366STAGING_DATADIR_NATIVE = "${STAGING_DIR_NATIVE}${datadir_native}"
367
368STAGING_DIR_HOST = "${STAGING_DIR}/${MACHINE}"
369STAGING_BINDIR = "${STAGING_DIR_HOST}${bindir}"
370STAGING_LIBDIR = "${STAGING_DIR_HOST}${libdir}"
371STAGING_LIBEXECDIR = "${STAGING_DIR_HOST}${libexecdir}"
372STAGING_BASELIBDIR = "${STAGING_DIR_HOST}${base_libdir}"
373STAGING_INCDIR = "${STAGING_DIR_HOST}${includedir}"
374STAGING_DATADIR = "${STAGING_DIR_HOST}${datadir}"
375STAGING_EXECPREFIXDIR = "${STAGING_DIR_HOST}${exec_prefix}"
376STAGING_LOADER_DIR = "${STAGING_DIR_HOST}/loader"
377STAGING_FIRMWARE_DIR = "${STAGING_DIR_HOST}/firmware"
378
379STAGING_DIR_TARGET = "${STAGING_DIR}/${MACHINE}"
380STAGING_DIR_TCBOOTSTRAP = "${STAGING_DIR_TARGET}-tcbootstrap"
381
382# Setting DEPLOY_DIR outside of TMPDIR is helpful, when you are using
383# packaged staging and/or multimachine.
384DEPLOY_DIR ?= "${TMPDIR}/deploy"
385DEPLOY_DIR_TAR = "${DEPLOY_DIR}/tar"
386DEPLOY_DIR_IPK = "${DEPLOY_DIR}/ipk"
387DEPLOY_DIR_RPM = "${DEPLOY_DIR}/rpm"
388DEPLOY_DIR_DEB = "${DEPLOY_DIR}/deb"
389DEPLOY_DIR_IMAGE ?= "${DEPLOY_DIR}/images/${MACHINE}"
390DEPLOY_DIR_TOOLS = "${DEPLOY_DIR}/tools"
391
392PKGDATA_DIR = "${STAGING_DIR_HOST}/pkgdata"
393
394##################################################################
395# SDK variables.
396##################################################################
397
398SDK_NAME_PREFIX ?= "oecore"
399SDK_NAME = "${SDK_NAME_PREFIX}-${SDK_ARCH}-${TUNE_PKGARCH}"
400SDKPATH = "/usr/local/${SDK_NAME_PREFIX}-${SDK_ARCH}"
401SDKPATHNATIVE = "${SDKPATH}/sysroots/${SDK_SYS}"
402
403##################################################################
404# Kernel info.
405##################################################################
406
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600407OLDEST_KERNEL = "3.2.0"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500408OLDEST_KERNEL_aarch64 = "3.14"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600409OLDEST_KERNEL_nios2 = "3.19"
410
Brad Bishop37a0e4d2017-12-04 01:01:44 -0500411# SDK_OLDEST_KERNEL can't be set using overrides since there are
412# none for the SDK architecture. Best to set it from a machine-sdk
413# include file if you need an SDK arch-specific value
414SDK_OLDEST_KERNEL = "3.2.0"
415
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600416# Define where the kernel headers are installed on the target as well as where
417# they are staged.
418KERNEL_SRC_PATH = "/usr/src/kernel"
419
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500420STAGING_KERNEL_DIR = "${TMPDIR}/work-shared/${MACHINE}/kernel-source"
421STAGING_KERNEL_BUILDDIR = "${TMPDIR}/work-shared/${MACHINE}/kernel-build-artifacts"
422
423##################################################################
424# Specific image creation and rootfs population info.
425##################################################################
426
427IMAGE_ROOTFS = "${WORKDIR}/rootfs"
428IMAGE_BASENAME = "${PN}"
429IMAGE_NAME = "${IMAGE_BASENAME}-${MACHINE}-${DATETIME}"
430IMAGE_NAME[vardepsexclude] += "DATETIME"
431IMAGE_LINK_NAME = "${IMAGE_BASENAME}-${MACHINE}"
432
433# This option allows for a percentage overage of the actual image size rather than a
434# fixed extra space, this is space needed for initial startup and basic operations.
435IMAGE_OVERHEAD_FACTOR ?= "1.3"
436# This option allows for adding additional space in K above and beyond what the
437# IMAGE_OVERHEAD_FACTOR might add. This space is for additional packages, user data, ...
438# To set a fixed size then overriding IMAGE_ROOTFS_SIZE with the max size one wants
439# should do the trick
440IMAGE_ROOTFS_EXTRA_SPACE ?= "0"
441
442EXTRA_IMAGEDEPENDS = ""
443
444##################################################################
445# Toolchain info.
446##################################################################
447
448PATH_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}:"
449export PATH
450
451##################################################################
452# Build utility info.
453##################################################################
454
455CCACHE ??= ""
456# Disable ccache explicitly if CCACHE is null since gcc may be a symlink
457# of ccache some distributions (e.g., Fedora 17).
458export CCACHE_DISABLE ??= "${@[0,1][d.getVar('CCACHE', True) == '']}"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600459# ccache < 3.1.10 will create CCACHE_DIR on startup even if disabled, and
460# autogen sets HOME=/dev/null so in certain situations builds can fail.
461# Explicitly export CCACHE_DIR until we can assume ccache >3.1.10 on the host.
462export CCACHE_DIR ??= "${@os.getenv('HOME')}/.ccache"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500463
464TOOLCHAIN_OPTIONS = " --sysroot=${STAGING_DIR_TARGET}"
465
466export CC = "${CCACHE}${HOST_PREFIX}gcc ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}"
467export CXX = "${CCACHE}${HOST_PREFIX}g++ ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}"
468export FC = "${CCACHE}${HOST_PREFIX}gfortran ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}"
469export CPP = "${HOST_PREFIX}gcc -E${TOOLCHAIN_OPTIONS} ${HOST_CC_ARCH}"
470export LD = "${HOST_PREFIX}ld${TOOLCHAIN_OPTIONS} ${HOST_LD_ARCH}"
471export CCLD = "${CC}"
472export AR = "${HOST_PREFIX}ar"
473export AS = "${HOST_PREFIX}as ${HOST_AS_ARCH}"
474export RANLIB = "${HOST_PREFIX}ranlib"
475export STRIP = "${HOST_PREFIX}strip"
476export OBJCOPY = "${HOST_PREFIX}objcopy"
477export OBJDUMP = "${HOST_PREFIX}objdump"
478export STRINGS = "${HOST_PREFIX}strings"
479export NM = "${HOST_PREFIX}nm"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600480export READELF = "${HOST_PREFIX}readelf"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500481PYTHON = "${@sys.executable}"
482
483export BUILD_CC = "${CCACHE}${BUILD_PREFIX}gcc ${BUILD_CC_ARCH}"
484export BUILD_CXX = "${CCACHE}${BUILD_PREFIX}g++ ${BUILD_CC_ARCH}"
485export BUILD_FC = "${CCACHE}${BUILD_PREFIX}gfortran ${BUILD_CC_ARCH}"
486export BUILD_CPP = "${BUILD_PREFIX}gcc ${BUILD_CC_ARCH} -E"
487export BUILD_LD = "${BUILD_PREFIX}ld ${BUILD_LD_ARCH}"
488export BUILD_CCLD = "${BUILD_PREFIX}gcc ${BUILD_CC_ARCH}"
489export BUILD_AR = "${BUILD_PREFIX}ar"
490export BUILD_AS = "${BUILD_PREFIX}as ${BUILD_AS_ARCH}"
491export BUILD_RANLIB = "${BUILD_PREFIX}ranlib"
492export BUILD_STRIP = "${BUILD_PREFIX}strip"
493export BUILD_NM = "${BUILD_PREFIX}nm"
494
495export MAKE = "make"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500496EXTRA_OEMAKE = ""
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500497EXTRA_OECONF = ""
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600498export LC_ALL = "en_US.UTF-8"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500499
500##################################################################
501# Patch handling.
502##################################################################
503PATCHTOOL = "quilt"
504PATCHRESOLVE = "noop"
505
506##################################################################
507# Build flags and options.
508##################################################################
509
510export BUILD_CPPFLAGS = "-isystem${STAGING_INCDIR_NATIVE}"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600511BUILDSDK_CPPFLAGS = ""
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500512export CPPFLAGS = "${TARGET_CPPFLAGS}"
513export TARGET_CPPFLAGS = ""
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500514
515export BUILD_CFLAGS = "${BUILD_CPPFLAGS} ${BUILD_OPTIMIZATION}"
516BUILDSDK_CFLAGS = "${BUILDSDK_CPPFLAGS} ${BUILD_OPTIMIZATION}"
517export CFLAGS = "${TARGET_CFLAGS}"
518export TARGET_CFLAGS = "${TARGET_CPPFLAGS} ${SELECTED_OPTIMIZATION}"
519
520export BUILD_CXXFLAGS = "${BUILD_CFLAGS}"
521export CXXFLAGS = "${TARGET_CXXFLAGS}"
522export TARGET_CXXFLAGS = "${TARGET_CFLAGS}"
523
524export BUILD_LDFLAGS = "-L${STAGING_LIBDIR_NATIVE} \
525 -L${STAGING_BASE_LIBDIR_NATIVE} \
526 -Wl,-rpath-link,${STAGING_LIBDIR_NATIVE} \
527 -Wl,-rpath-link,${STAGING_BASE_LIBDIR_NATIVE} \
528 -Wl,-rpath,${STAGING_LIBDIR_NATIVE} \
529 -Wl,-rpath,${STAGING_BASE_LIBDIR_NATIVE} \
530 -Wl,-O1"
531
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600532BUILDSDK_LDFLAGS = "-Wl,-O1"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500533
534LINKER_HASH_STYLE ??= "gnu"
535# mips does not support GNU hash style therefore we override
536LINKER_HASH_STYLE_mips = "sysv"
537LINKER_HASH_STYLE_mipsel = "sysv"
538LINKER_HASH_STYLE_mips64 = "sysv"
539LINKER_HASH_STYLE_mips64el = "sysv"
540LINKER_HASH_STYLE_mips64n32 = "sysv"
541LINKER_HASH_STYLE_mips64eln32 = "sysv"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600542LINKER_HASH_STYLE_mipsisa32r6 = "sysv"
543LINKER_HASH_STYLE_mipsisa32r6el = "sysv"
544LINKER_HASH_STYLE_mipsisa64r6 = "sysv"
545LINKER_HASH_STYLE_mipsisa64r6el = "sysv"
546
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500547TARGET_LINK_HASH_STYLE ?= "${@['-Wl,--hash-style=gnu',''][d.getVar('LINKER_HASH_STYLE', True) != 'gnu']}"
548
549export LDFLAGS = "${TARGET_LDFLAGS}"
550export TARGET_LDFLAGS = "-Wl,-O1 ${TARGET_LINK_HASH_STYLE}"
551#export TARGET_LDFLAGS = "-L${STAGING_DIR_TARGET}${libdir} \
552# -Wl,-rpath-link,${STAGING_DIR_TARGET}${libdir} \
553# -Wl,-O1"
554
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500555# Pass parallel make options to the compile task
556EXTRA_OEMAKE_prepend_task-compile = "${PARALLEL_MAKE} "
557PARALLEL_MAKEINST ??= "${PARALLEL_MAKE}"
558# Pass parallel make options to the install task
559EXTRA_OEMAKE_prepend_task-install = "${PARALLEL_MAKEINST} "
560
561##################################################################
562# Optimization flags.
563##################################################################
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600564DEBUG_PREFIX_MAP ?= "-fdebug-prefix-map=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR} \
565 -fdebug-prefix-map=${STAGING_DIR_NATIVE}= \
566 -fdebug-prefix-map=${STAGING_DIR_HOST}= \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500567"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600568DEBUG_FLAGS ?= "-g -feliminate-unused-debug-types ${DEBUG_PREFIX_MAP}"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500569
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500570# Disabled until the option works properly -feliminate-dwarf2-dups
571FULL_OPTIMIZATION = "-O2 -pipe ${DEBUG_FLAGS}"
572DEBUG_OPTIMIZATION = "-O -fno-omit-frame-pointer ${DEBUG_FLAGS} -pipe"
573SELECTED_OPTIMIZATION = "${@d.getVar(['FULL_OPTIMIZATION', 'DEBUG_OPTIMIZATION'][d.getVar('DEBUG_BUILD', True) == '1'], True)}"
574SELECTED_OPTIMIZATION[vardeps] += "FULL_OPTIMIZATION DEBUG_OPTIMIZATION"
575BUILD_OPTIMIZATION = "-O2 -pipe"
576
577##################################################################
578# Settings used by bitbake-layers.
579##################################################################
580BBLAYERS_LAYERINDEX_URL ??= "http://layers.openembedded.org/layerindex/"
581BBLAYERS_FETCH_DIR ??= "${COREBASE}"
582
583##################################################################
584# Download locations and utilities.
585##################################################################
586
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600587APACHE_MIRROR = "http://archive.apache.org/dist"
Brad Bishop37a0e4d2017-12-04 01:01:44 -0500588DEBIAN_MIRROR = "http://ftp.debian.org/debian/pool"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500589GENTOO_MIRROR = "http://distfiles.gentoo.org/distfiles"
590GNOME_GIT = "git://git.gnome.org"
591GNOME_MIRROR = "http://ftp.gnome.org/pub/GNOME/sources"
592GNU_MIRROR = "http://ftp.gnu.org/gnu"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600593GNUPG_MIRROR = "https://www.gnupg.org/ftp/gcrypt"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500594GPE_MIRROR = "http://gpe.linuxtogo.org/download/source"
595KERNELORG_MIRROR = "http://kernel.org/pub"
596SOURCEFORGE_MIRROR = "http://downloads.sourceforge.net"
597XLIBS_MIRROR = "http://xlibs.freedesktop.org/release"
598XORG_MIRROR = "http://xorg.freedesktop.org/releases"
599SAVANNAH_GNU_MIRROR = "http://download.savannah.gnu.org/releases"
600SAVANNAH_NONGNU_MIRROR = "http://download.savannah.nongnu.org/releases"
601CPAN_MIRROR = "http://search.cpan.org/CPAN"
602
603SRC_URI[vardepsexclude] += "\
604 APACHE_MIRROR \
605 CPAN_MIRROR \
606 DEBIAN_MIRROR \
607 GENTOO_MIRROR \
608 GNOME_GIT \
609 GNOME_MIRROR \
610 GNU_MIRROR \
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600611 GNUPG_MIRROR \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500612 GPE_MIRROR \
613 KERNELORG_MIRROR \
614 SAVANNAH_GNU_MIRROR \
615 SAVANNAH_NONGNU_MIRROR \
616 SOURCEFORGE_MIRROR \
617 XLIBS_MIRROR \
618 XORG_MIRROR \
619"
620
621# You can use the mirror of your country to get faster downloads by putting
Brad Bishop37a0e4d2017-12-04 01:01:44 -0500622# export DEBIAN_MIRROR = "http://ftp.de.debian.org/debian/pool"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500623# into your local.conf
624
625FETCHCMD_svn = "/usr/bin/env svn --non-interactive --trust-server-cert"
626FETCHCMD_cvs = "/usr/bin/env cvs"
627FETCHCMD_wget = "/usr/bin/env wget -t 2 -T 30 -nv --passive-ftp --no-check-certificate"
628FETCHCMD_bzr = "/usr/bin/env bzr"
629FETCHCMD_hg = "/usr/bin/env hg"
630
631SRCDATE = "${DATE}"
632SRCREV ??= "INVALID"
633AUTOREV = "${@bb.fetch2.get_autorev(d)}"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500634# Set Dynamically in base.bbclass
635# SRCPV = "${@bb.fetch2.get_srcrev(d)}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500636SRCPV[vardepvalue] = "${SRCPV}"
637
638SRC_URI = ""
639
640# Use pseudo as the fakeroot implementation
641PSEUDO_LOCALSTATEDIR ?= "${WORKDIR}/pseudo/"
642PSEUDO_PASSWD ?= "${STAGING_DIR_TARGET}:${STAGING_DIR_NATIVE}"
643export PSEUDO_DISABLED = "1"
644#export PSEUDO_PREFIX = "${STAGING_DIR_NATIVE}${prefix_native}"
645#export PSEUDO_BINDIR = "${STAGING_DIR_NATIVE}${bindir_native}"
646#export PSEUDO_LIBDIR = "${STAGING_DIR_NATIVE}$PSEUDOBINDIR/../lib/pseudo/lib
647FAKEROOTBASEENV = "PSEUDO_BINDIR=${STAGING_BINDIR_NATIVE} PSEUDO_LIBDIR=${STAGING_BINDIR_NATIVE}/../lib/pseudo/lib PSEUDO_PREFIX=${STAGING_BINDIR_NATIVE}/../../ PSEUDO_DISABLED=1"
648FAKEROOTCMD = "${STAGING_BINDIR_NATIVE}/pseudo"
649FAKEROOTENV = "PSEUDO_PREFIX=${STAGING_DIR_NATIVE}${prefix_native} PSEUDO_LOCALSTATEDIR=${PSEUDO_LOCALSTATEDIR} PSEUDO_PASSWD=${PSEUDO_PASSWD} PSEUDO_NOSYMLINKEXP=1 PSEUDO_DISABLED=0"
650FAKEROOTNOENV = "PSEUDO_UNLOAD=1"
651FAKEROOTDIRS = "${PSEUDO_LOCALSTATEDIR}"
652PREFERRED_PROVIDER_virtual/fakeroot-native ?= "pseudo-native"
653
654##################################################################
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500655# Not sure about the rest of this yet.
656##################################################################
657
658# Pre-build configuration output
659BUILDCFG_HEADER = "Build Configuration:"
660BUILDCFG_VARS = "BB_VERSION BUILD_SYS NATIVELSBSTRING TARGET_SYS MACHINE DISTRO DISTRO_VERSION TUNE_FEATURES TARGET_FPU"
661BUILDCFG_VARS[type] = "list"
662BUILDCFG_NEEDEDVARS = "TARGET_ARCH TARGET_OS"
663BUILDCFG_NEEDEDVARS[type] = "list"
664
665# Other
666
667export PKG_CONFIG_DIR = "${STAGING_DIR_HOST}${libdir}/pkgconfig"
668export PKG_CONFIG_PATH = "${PKG_CONFIG_DIR}:${STAGING_DATADIR}/pkgconfig"
669export PKG_CONFIG_LIBDIR = "${PKG_CONFIG_DIR}"
670export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}"
671export PKG_CONFIG_DISABLE_UNINSTALLED = "yes"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500672export PKG_CONFIG_SYSTEM_LIBRARY_PATH = "${base_libdir}:${libdir}"
673export PKG_CONFIG_SYSTEM_INCLUDE_PATH = "${includedir}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500674
675###
676### Config file processing
677###
678
679# An empty distro leads to :: entries in OVERRIDES and FILEOVERRIDES which
680# is a bad idea. Setting a dummy value is better than a ton of anonymous python.
681DISTRO ??= "nodistro"
682DISTRO_NAME ??= "OpenEmbedded"
683# Overrides are processed left to right, so the ones that are named later take precedence.
684# You generally want them to go from least to most specific.
685#
686# This means that an envionment variable named '<foo>_arm' overrides an
687# environment variable '<foo>' (when ${TARGET_ARCH} is arm).
688# An environment variable '<foo>_qemuarm' overrides '<foo>' and overrides
689# '<foo>_arm' when ${MACHINE} is 'qemuarm'.
690# If you use combination ie '<foo>_qemuarm_arm', then '<foo>_qemuarm_arm' will override
691# '<foo>_qemuarm' and then '<foo>' will be overriden with that value from '<foo>_qemuarm'.
692# And finally '<foo>_forcevariable' overrides any standard variable, with the highest priority.
693#
694# This works for functions as well, they are really just environment variables.
695# Default OVERRIDES to make compilation fail fast in case of build system misconfiguration.
696OVERRIDES = "${TARGET_OS}:${TRANSLATED_TARGET_ARCH}:build-${BUILD_OS}:pn-${PN}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}:${CLASSOVERRIDE}:forcevariable"
697OVERRIDES[vardepsexclude] = "MACHINEOVERRIDES"
698CLASSOVERRIDE ?= "class-target"
699DISTROOVERRIDES ?= "${@d.getVar('DISTRO', True) or ''}"
700MACHINEOVERRIDES ?= "${MACHINE}"
701MACHINEOVERRIDES[vardepsexclude] = "MACHINE"
702
703FILESOVERRIDES = "${TRANSLATED_TARGET_ARCH}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}"
704
705##################################################################
706# Include the rest of the config files.
707##################################################################
708
709require conf/abi_version.conf
710include conf/site.conf
711include conf/auto.conf
712include conf/local.conf
Brad Bishop37a0e4d2017-12-04 01:01:44 -0500713include conf/multiconfig/${BB_CURRENT_MC}.conf
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500714include conf/build/${BUILD_SYS}.conf
715include conf/target/${TARGET_SYS}.conf
716include conf/machine/${MACHINE}.conf
717include conf/machine-sdk/${SDKMACHINE}.conf
718include conf/distro/${DISTRO}.conf
719include conf/distro/defaultsetup.conf
720include conf/documentation.conf
721include conf/licenses.conf
722require conf/sanity.conf
723
724##################################################################
725# Weak variables (usually to retain backwards compatibility)
726##################################################################
727
728DL_DIR ?= "${TOPDIR}/downloads"
729SSTATE_DIR ?= "${TOPDIR}/sstate-cache"
730IMAGE_FSTYPES ?= "tar.gz"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600731IMAGE_FSTYPES_DEBUGFS ?= "${IMAGE_FSTYPES}"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500732
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500733INITRAMFS_FSTYPES ?= "cpio.gz"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500734# The maximum size in Kbytes for the generated initramfs image size.
735# Usually, it should be less than 1/2 of ram size, or you may fail to
736# boot it.
737INITRAMFS_MAXSIZE ??= "131072"
738
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500739DEFAULT_TASK_PROVIDER ?= "packagegroup-base"
740MACHINE_TASK_PROVIDER ?= "${DEFAULT_TASK_PROVIDER}"
741
742# The size in Kbytes for the generated image if it is larger than
743# the required size (du -ks IMAGE_ROOTFS * IMAGE_OVERHEAD_FACTOR),
744# and no effect if less than it.
745IMAGE_ROOTFS_SIZE ??= "65536"
746
747# Forcefully set CACHE now so future changes to things like
748# MACHINE don't change the path to the cache
749CACHE := "${CACHE}"
750
751# Default to setting automatically based on cpu count
752BB_NUMBER_THREADS ?= "${@oe.utils.cpu_count()}"
753
754# Default to setting automatically based on cpu count
755PARALLEL_MAKE ?= "-j ${@oe.utils.cpu_count()}"
756
757##################################################################
758# Magic Cookie for SANITY CHECK
759##################################################################
760OES_BITBAKE_CONF = "1"
761
762##################################################################
763# Machine properties and packagegroup-base stuff
764##################################################################
765
766MACHINE_FEATURES ?= ""
767DISTRO_FEATURES ?= ""
768
769DISTRO_EXTRA_RDEPENDS ?= ""
770DISTRO_EXTRA_RRECOMMENDS ?= ""
771MACHINE_EXTRA_RDEPENDS ?= ""
772MACHINE_EXTRA_RRECOMMENDS ?= ""
773MACHINE_ESSENTIAL_EXTRA_RDEPENDS ?= ""
774MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS ?= ""
775
776EXTRA_IMAGE_FEATURES ??= ""
777IMAGE_FEATURES += "${EXTRA_IMAGE_FEATURES}"
778
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500779DISTRO_FEATURES_BACKFILL = "pulseaudio sysvinit bluez5 gobject-introspection-data"
780MACHINE_FEATURES_BACKFILL = "rtc qemu-usermode"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500781
782COMBINED_FEATURES = "${@oe.utils.set_intersect('DISTRO_FEATURES', 'MACHINE_FEATURES', d)}"
783COMBINED_FEATURES[vardeps] += "DISTRO_FEATURES MACHINE_FEATURES"
784
785SERIAL_CONSOLE ??= ""
786SERIAL_CONSOLES ??= "${@d.getVar('SERIAL_CONSOLE', True).replace(' ', ';')}"
787
788NO_RECOMMENDATIONS ?= ""
789BAD_RECOMMENDATIONS ?= ""
790
791# Make sure MACHINE isn't exported
792# (breaks binutils at least)
793MACHINE[unexport] = "1"
794
795# Make sure TARGET_ARCH isn't exported
796# (breaks Makefiles using implicit rules, e.g. quilt, as GNU make has this
797# in them, undocumented)
798TARGET_ARCH[unexport] = "1"
799
800# Make sure DISTRO isn't exported
801# (breaks sysvinit at least)
802DISTRO[unexport] = "1"
803
804# Make sure SHELL isn't exported
805# (can break any number of things if the user's shell isn't POSIX-compliant,
806# including the flock command). The user's shell shouldn't affect our builds.
807SHELL[unexport] = "1"
808
809# Used by canadian-cross to handle string conversions on TARGET_ARCH where needed
810TRANSLATED_TARGET_ARCH ??= "${@d.getVar('TARGET_ARCH', True).replace("_", "-")}"
811
812# Complete output from bitbake
813BB_CONSOLELOG ?= "${LOG_DIR}/cooker/${MACHINE}/${DATETIME}.log"
814
815# Setup our default hash policy
816BB_SIGNATURE_HANDLER ?= "OEBasicHash"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600817BB_HASHBASE_WHITELIST ?= "TMPDIR FILE PATH PWD BB_TASKHASH BBPATH BBSERVER DL_DIR \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500818 SSTATE_DIR THISDIR FILESEXTRAPATHS FILE_DIRNAME HOME LOGNAME SHELL TERM \
819 USER FILESPATH STAGING_DIR_HOST STAGING_DIR_TARGET COREBASE PRSERV_HOST \
820 PRSERV_DUMPDIR PRSERV_DUMPFILE PRSERV_LOCKDOWN PARALLEL_MAKE \
821 CCACHE_DIR EXTERNAL_TOOLCHAIN CCACHE CCACHE_DISABLE LICENSE_PATH SDKPKGSUFFIX \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500822 WARN_QA ERROR_QA WORKDIR STAMPCLEAN PKGDATA_DIR BUILD_ARCH SSTATE_PKGARCH \
823 BB_WORKERCONTEXT"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500824BB_HASHCONFIG_WHITELIST ?= "${BB_HASHBASE_WHITELIST} DATE TIME SSH_AGENT_PID \
825 SSH_AUTH_SOCK PSEUDO_BUILD BB_ENV_EXTRAWHITE DISABLE_SANITY_CHECKS \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500826 PARALLEL_MAKE BB_NUMBER_THREADS BB_ORIGENV BB_INVALIDCONF BBINCLUDED \
827 GIT_PROXY_COMMAND ALL_PROXY all_proxy NO_PROXY no_proxy FTP_PROXY ftp_proxy \
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600828 HTTP_PROXY http_proxy HTTPS_PROXY https_proxy SOCKS5_USER SOCKS5_PASSWD \
829 BB_SETSCENE_ENFORCE"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500830BB_SIGNATURE_EXCLUDE_FLAGS ?= "doc deps depends \
831 lockfiles type vardepsexclude vardeps vardepvalue vardepvalueexclude \
832 file-checksums python func task export unexport noexec nostamp dirs cleandirs \
833 sstate-lockfile-shared prefuncs postfuncs export_func deptask rdeptask \
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600834 recrdeptask nodeprrecs stamp-extra-info sstate-outputdirs filename lineno \
835 progress"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500836
837MLPREFIX ??= ""
838MULTILIB_VARIANTS ??= ""