blob: 54a587f1b4d273766941179a3c642bdb430309b4 [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
411# Define where the kernel headers are installed on the target as well as where
412# they are staged.
413KERNEL_SRC_PATH = "/usr/src/kernel"
414
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500415STAGING_KERNEL_DIR = "${TMPDIR}/work-shared/${MACHINE}/kernel-source"
416STAGING_KERNEL_BUILDDIR = "${TMPDIR}/work-shared/${MACHINE}/kernel-build-artifacts"
417
418##################################################################
419# Specific image creation and rootfs population info.
420##################################################################
421
422IMAGE_ROOTFS = "${WORKDIR}/rootfs"
423IMAGE_BASENAME = "${PN}"
424IMAGE_NAME = "${IMAGE_BASENAME}-${MACHINE}-${DATETIME}"
425IMAGE_NAME[vardepsexclude] += "DATETIME"
426IMAGE_LINK_NAME = "${IMAGE_BASENAME}-${MACHINE}"
427
428# This option allows for a percentage overage of the actual image size rather than a
429# fixed extra space, this is space needed for initial startup and basic operations.
430IMAGE_OVERHEAD_FACTOR ?= "1.3"
431# This option allows for adding additional space in K above and beyond what the
432# IMAGE_OVERHEAD_FACTOR might add. This space is for additional packages, user data, ...
433# To set a fixed size then overriding IMAGE_ROOTFS_SIZE with the max size one wants
434# should do the trick
435IMAGE_ROOTFS_EXTRA_SPACE ?= "0"
436
437EXTRA_IMAGEDEPENDS = ""
438
439##################################################################
440# Toolchain info.
441##################################################################
442
443PATH_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}:"
444export PATH
445
446##################################################################
447# Build utility info.
448##################################################################
449
450CCACHE ??= ""
451# Disable ccache explicitly if CCACHE is null since gcc may be a symlink
452# of ccache some distributions (e.g., Fedora 17).
453export CCACHE_DISABLE ??= "${@[0,1][d.getVar('CCACHE', True) == '']}"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600454# ccache < 3.1.10 will create CCACHE_DIR on startup even if disabled, and
455# autogen sets HOME=/dev/null so in certain situations builds can fail.
456# Explicitly export CCACHE_DIR until we can assume ccache >3.1.10 on the host.
457export CCACHE_DIR ??= "${@os.getenv('HOME')}/.ccache"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500458
459TOOLCHAIN_OPTIONS = " --sysroot=${STAGING_DIR_TARGET}"
460
461export CC = "${CCACHE}${HOST_PREFIX}gcc ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}"
462export CXX = "${CCACHE}${HOST_PREFIX}g++ ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}"
463export FC = "${CCACHE}${HOST_PREFIX}gfortran ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}"
464export CPP = "${HOST_PREFIX}gcc -E${TOOLCHAIN_OPTIONS} ${HOST_CC_ARCH}"
465export LD = "${HOST_PREFIX}ld${TOOLCHAIN_OPTIONS} ${HOST_LD_ARCH}"
466export CCLD = "${CC}"
467export AR = "${HOST_PREFIX}ar"
468export AS = "${HOST_PREFIX}as ${HOST_AS_ARCH}"
469export RANLIB = "${HOST_PREFIX}ranlib"
470export STRIP = "${HOST_PREFIX}strip"
471export OBJCOPY = "${HOST_PREFIX}objcopy"
472export OBJDUMP = "${HOST_PREFIX}objdump"
473export STRINGS = "${HOST_PREFIX}strings"
474export NM = "${HOST_PREFIX}nm"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600475export READELF = "${HOST_PREFIX}readelf"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500476PYTHON = "${@sys.executable}"
477
478export BUILD_CC = "${CCACHE}${BUILD_PREFIX}gcc ${BUILD_CC_ARCH}"
479export BUILD_CXX = "${CCACHE}${BUILD_PREFIX}g++ ${BUILD_CC_ARCH}"
480export BUILD_FC = "${CCACHE}${BUILD_PREFIX}gfortran ${BUILD_CC_ARCH}"
481export BUILD_CPP = "${BUILD_PREFIX}gcc ${BUILD_CC_ARCH} -E"
482export BUILD_LD = "${BUILD_PREFIX}ld ${BUILD_LD_ARCH}"
483export BUILD_CCLD = "${BUILD_PREFIX}gcc ${BUILD_CC_ARCH}"
484export BUILD_AR = "${BUILD_PREFIX}ar"
485export BUILD_AS = "${BUILD_PREFIX}as ${BUILD_AS_ARCH}"
486export BUILD_RANLIB = "${BUILD_PREFIX}ranlib"
487export BUILD_STRIP = "${BUILD_PREFIX}strip"
488export BUILD_NM = "${BUILD_PREFIX}nm"
489
490export MAKE = "make"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500491EXTRA_OEMAKE = ""
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500492EXTRA_OECONF = ""
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600493export LC_ALL = "en_US.UTF-8"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500494
495##################################################################
496# Patch handling.
497##################################################################
498PATCHTOOL = "quilt"
499PATCHRESOLVE = "noop"
500
501##################################################################
502# Build flags and options.
503##################################################################
504
505export BUILD_CPPFLAGS = "-isystem${STAGING_INCDIR_NATIVE}"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600506BUILDSDK_CPPFLAGS = ""
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500507export CPPFLAGS = "${TARGET_CPPFLAGS}"
508export TARGET_CPPFLAGS = ""
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500509
510export BUILD_CFLAGS = "${BUILD_CPPFLAGS} ${BUILD_OPTIMIZATION}"
511BUILDSDK_CFLAGS = "${BUILDSDK_CPPFLAGS} ${BUILD_OPTIMIZATION}"
512export CFLAGS = "${TARGET_CFLAGS}"
513export TARGET_CFLAGS = "${TARGET_CPPFLAGS} ${SELECTED_OPTIMIZATION}"
514
515export BUILD_CXXFLAGS = "${BUILD_CFLAGS}"
516export CXXFLAGS = "${TARGET_CXXFLAGS}"
517export TARGET_CXXFLAGS = "${TARGET_CFLAGS}"
518
519export BUILD_LDFLAGS = "-L${STAGING_LIBDIR_NATIVE} \
520 -L${STAGING_BASE_LIBDIR_NATIVE} \
521 -Wl,-rpath-link,${STAGING_LIBDIR_NATIVE} \
522 -Wl,-rpath-link,${STAGING_BASE_LIBDIR_NATIVE} \
523 -Wl,-rpath,${STAGING_LIBDIR_NATIVE} \
524 -Wl,-rpath,${STAGING_BASE_LIBDIR_NATIVE} \
525 -Wl,-O1"
526
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600527BUILDSDK_LDFLAGS = "-Wl,-O1"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500528
529LINKER_HASH_STYLE ??= "gnu"
530# mips does not support GNU hash style therefore we override
531LINKER_HASH_STYLE_mips = "sysv"
532LINKER_HASH_STYLE_mipsel = "sysv"
533LINKER_HASH_STYLE_mips64 = "sysv"
534LINKER_HASH_STYLE_mips64el = "sysv"
535LINKER_HASH_STYLE_mips64n32 = "sysv"
536LINKER_HASH_STYLE_mips64eln32 = "sysv"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600537LINKER_HASH_STYLE_mipsisa32r6 = "sysv"
538LINKER_HASH_STYLE_mipsisa32r6el = "sysv"
539LINKER_HASH_STYLE_mipsisa64r6 = "sysv"
540LINKER_HASH_STYLE_mipsisa64r6el = "sysv"
541
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500542TARGET_LINK_HASH_STYLE ?= "${@['-Wl,--hash-style=gnu',''][d.getVar('LINKER_HASH_STYLE', True) != 'gnu']}"
543
544export LDFLAGS = "${TARGET_LDFLAGS}"
545export TARGET_LDFLAGS = "-Wl,-O1 ${TARGET_LINK_HASH_STYLE}"
546#export TARGET_LDFLAGS = "-L${STAGING_DIR_TARGET}${libdir} \
547# -Wl,-rpath-link,${STAGING_DIR_TARGET}${libdir} \
548# -Wl,-O1"
549
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500550# Pass parallel make options to the compile task
551EXTRA_OEMAKE_prepend_task-compile = "${PARALLEL_MAKE} "
552PARALLEL_MAKEINST ??= "${PARALLEL_MAKE}"
553# Pass parallel make options to the install task
554EXTRA_OEMAKE_prepend_task-install = "${PARALLEL_MAKEINST} "
555
556##################################################################
557# Optimization flags.
558##################################################################
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600559DEBUG_PREFIX_MAP ?= "-fdebug-prefix-map=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR} \
560 -fdebug-prefix-map=${STAGING_DIR_NATIVE}= \
561 -fdebug-prefix-map=${STAGING_DIR_HOST}= \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500562"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600563DEBUG_FLAGS ?= "-g -feliminate-unused-debug-types ${DEBUG_PREFIX_MAP}"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500564
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500565# Disabled until the option works properly -feliminate-dwarf2-dups
566FULL_OPTIMIZATION = "-O2 -pipe ${DEBUG_FLAGS}"
567DEBUG_OPTIMIZATION = "-O -fno-omit-frame-pointer ${DEBUG_FLAGS} -pipe"
568SELECTED_OPTIMIZATION = "${@d.getVar(['FULL_OPTIMIZATION', 'DEBUG_OPTIMIZATION'][d.getVar('DEBUG_BUILD', True) == '1'], True)}"
569SELECTED_OPTIMIZATION[vardeps] += "FULL_OPTIMIZATION DEBUG_OPTIMIZATION"
570BUILD_OPTIMIZATION = "-O2 -pipe"
571
572##################################################################
573# Settings used by bitbake-layers.
574##################################################################
575BBLAYERS_LAYERINDEX_URL ??= "http://layers.openembedded.org/layerindex/"
576BBLAYERS_FETCH_DIR ??= "${COREBASE}"
577
578##################################################################
579# Download locations and utilities.
580##################################################################
581
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600582APACHE_MIRROR = "http://archive.apache.org/dist"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500583DEBIAN_MIRROR = "ftp://ftp.debian.org/debian/pool"
584GENTOO_MIRROR = "http://distfiles.gentoo.org/distfiles"
585GNOME_GIT = "git://git.gnome.org"
586GNOME_MIRROR = "http://ftp.gnome.org/pub/GNOME/sources"
587GNU_MIRROR = "http://ftp.gnu.org/gnu"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600588GNUPG_MIRROR = "https://www.gnupg.org/ftp/gcrypt"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500589GPE_MIRROR = "http://gpe.linuxtogo.org/download/source"
590KERNELORG_MIRROR = "http://kernel.org/pub"
591SOURCEFORGE_MIRROR = "http://downloads.sourceforge.net"
592XLIBS_MIRROR = "http://xlibs.freedesktop.org/release"
593XORG_MIRROR = "http://xorg.freedesktop.org/releases"
594SAVANNAH_GNU_MIRROR = "http://download.savannah.gnu.org/releases"
595SAVANNAH_NONGNU_MIRROR = "http://download.savannah.nongnu.org/releases"
596CPAN_MIRROR = "http://search.cpan.org/CPAN"
597
598SRC_URI[vardepsexclude] += "\
599 APACHE_MIRROR \
600 CPAN_MIRROR \
601 DEBIAN_MIRROR \
602 GENTOO_MIRROR \
603 GNOME_GIT \
604 GNOME_MIRROR \
605 GNU_MIRROR \
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600606 GNUPG_MIRROR \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500607 GPE_MIRROR \
608 KERNELORG_MIRROR \
609 SAVANNAH_GNU_MIRROR \
610 SAVANNAH_NONGNU_MIRROR \
611 SOURCEFORGE_MIRROR \
612 XLIBS_MIRROR \
613 XORG_MIRROR \
614"
615
616# You can use the mirror of your country to get faster downloads by putting
617# export DEBIAN_MIRROR = "ftp://ftp.de.debian.org/debian/pool"
618# into your local.conf
619
620FETCHCMD_svn = "/usr/bin/env svn --non-interactive --trust-server-cert"
621FETCHCMD_cvs = "/usr/bin/env cvs"
622FETCHCMD_wget = "/usr/bin/env wget -t 2 -T 30 -nv --passive-ftp --no-check-certificate"
623FETCHCMD_bzr = "/usr/bin/env bzr"
624FETCHCMD_hg = "/usr/bin/env hg"
625
626SRCDATE = "${DATE}"
627SRCREV ??= "INVALID"
628AUTOREV = "${@bb.fetch2.get_autorev(d)}"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500629# Set Dynamically in base.bbclass
630# SRCPV = "${@bb.fetch2.get_srcrev(d)}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500631SRCPV[vardepvalue] = "${SRCPV}"
632
633SRC_URI = ""
634
635# Use pseudo as the fakeroot implementation
636PSEUDO_LOCALSTATEDIR ?= "${WORKDIR}/pseudo/"
637PSEUDO_PASSWD ?= "${STAGING_DIR_TARGET}:${STAGING_DIR_NATIVE}"
638export PSEUDO_DISABLED = "1"
639#export PSEUDO_PREFIX = "${STAGING_DIR_NATIVE}${prefix_native}"
640#export PSEUDO_BINDIR = "${STAGING_DIR_NATIVE}${bindir_native}"
641#export PSEUDO_LIBDIR = "${STAGING_DIR_NATIVE}$PSEUDOBINDIR/../lib/pseudo/lib
642FAKEROOTBASEENV = "PSEUDO_BINDIR=${STAGING_BINDIR_NATIVE} PSEUDO_LIBDIR=${STAGING_BINDIR_NATIVE}/../lib/pseudo/lib PSEUDO_PREFIX=${STAGING_BINDIR_NATIVE}/../../ PSEUDO_DISABLED=1"
643FAKEROOTCMD = "${STAGING_BINDIR_NATIVE}/pseudo"
644FAKEROOTENV = "PSEUDO_PREFIX=${STAGING_DIR_NATIVE}${prefix_native} PSEUDO_LOCALSTATEDIR=${PSEUDO_LOCALSTATEDIR} PSEUDO_PASSWD=${PSEUDO_PASSWD} PSEUDO_NOSYMLINKEXP=1 PSEUDO_DISABLED=0"
645FAKEROOTNOENV = "PSEUDO_UNLOAD=1"
646FAKEROOTDIRS = "${PSEUDO_LOCALSTATEDIR}"
647PREFERRED_PROVIDER_virtual/fakeroot-native ?= "pseudo-native"
648
649##################################################################
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500650# Not sure about the rest of this yet.
651##################################################################
652
653# Pre-build configuration output
654BUILDCFG_HEADER = "Build Configuration:"
655BUILDCFG_VARS = "BB_VERSION BUILD_SYS NATIVELSBSTRING TARGET_SYS MACHINE DISTRO DISTRO_VERSION TUNE_FEATURES TARGET_FPU"
656BUILDCFG_VARS[type] = "list"
657BUILDCFG_NEEDEDVARS = "TARGET_ARCH TARGET_OS"
658BUILDCFG_NEEDEDVARS[type] = "list"
659
660# Other
661
662export PKG_CONFIG_DIR = "${STAGING_DIR_HOST}${libdir}/pkgconfig"
663export PKG_CONFIG_PATH = "${PKG_CONFIG_DIR}:${STAGING_DATADIR}/pkgconfig"
664export PKG_CONFIG_LIBDIR = "${PKG_CONFIG_DIR}"
665export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}"
666export PKG_CONFIG_DISABLE_UNINSTALLED = "yes"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500667export PKG_CONFIG_SYSTEM_LIBRARY_PATH = "${base_libdir}:${libdir}"
668export PKG_CONFIG_SYSTEM_INCLUDE_PATH = "${includedir}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500669
670###
671### Config file processing
672###
673
674# An empty distro leads to :: entries in OVERRIDES and FILEOVERRIDES which
675# is a bad idea. Setting a dummy value is better than a ton of anonymous python.
676DISTRO ??= "nodistro"
677DISTRO_NAME ??= "OpenEmbedded"
678# Overrides are processed left to right, so the ones that are named later take precedence.
679# You generally want them to go from least to most specific.
680#
681# This means that an envionment variable named '<foo>_arm' overrides an
682# environment variable '<foo>' (when ${TARGET_ARCH} is arm).
683# An environment variable '<foo>_qemuarm' overrides '<foo>' and overrides
684# '<foo>_arm' when ${MACHINE} is 'qemuarm'.
685# If you use combination ie '<foo>_qemuarm_arm', then '<foo>_qemuarm_arm' will override
686# '<foo>_qemuarm' and then '<foo>' will be overriden with that value from '<foo>_qemuarm'.
687# And finally '<foo>_forcevariable' overrides any standard variable, with the highest priority.
688#
689# This works for functions as well, they are really just environment variables.
690# Default OVERRIDES to make compilation fail fast in case of build system misconfiguration.
691OVERRIDES = "${TARGET_OS}:${TRANSLATED_TARGET_ARCH}:build-${BUILD_OS}:pn-${PN}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}:${CLASSOVERRIDE}:forcevariable"
692OVERRIDES[vardepsexclude] = "MACHINEOVERRIDES"
693CLASSOVERRIDE ?= "class-target"
694DISTROOVERRIDES ?= "${@d.getVar('DISTRO', True) or ''}"
695MACHINEOVERRIDES ?= "${MACHINE}"
696MACHINEOVERRIDES[vardepsexclude] = "MACHINE"
697
698FILESOVERRIDES = "${TRANSLATED_TARGET_ARCH}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}"
699
700##################################################################
701# Include the rest of the config files.
702##################################################################
703
704require conf/abi_version.conf
705include conf/site.conf
706include conf/auto.conf
707include conf/local.conf
708include conf/build/${BUILD_SYS}.conf
709include conf/target/${TARGET_SYS}.conf
710include conf/machine/${MACHINE}.conf
711include conf/machine-sdk/${SDKMACHINE}.conf
712include conf/distro/${DISTRO}.conf
713include conf/distro/defaultsetup.conf
714include conf/documentation.conf
715include conf/licenses.conf
716require conf/sanity.conf
717
718##################################################################
719# Weak variables (usually to retain backwards compatibility)
720##################################################################
721
722DL_DIR ?= "${TOPDIR}/downloads"
723SSTATE_DIR ?= "${TOPDIR}/sstate-cache"
724IMAGE_FSTYPES ?= "tar.gz"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600725IMAGE_FSTYPES_DEBUGFS ?= "${IMAGE_FSTYPES}"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500726
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500727INITRAMFS_FSTYPES ?= "cpio.gz"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500728# The maximum size in Kbytes for the generated initramfs image size.
729# Usually, it should be less than 1/2 of ram size, or you may fail to
730# boot it.
731INITRAMFS_MAXSIZE ??= "131072"
732
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500733DEFAULT_TASK_PROVIDER ?= "packagegroup-base"
734MACHINE_TASK_PROVIDER ?= "${DEFAULT_TASK_PROVIDER}"
735
736# The size in Kbytes for the generated image if it is larger than
737# the required size (du -ks IMAGE_ROOTFS * IMAGE_OVERHEAD_FACTOR),
738# and no effect if less than it.
739IMAGE_ROOTFS_SIZE ??= "65536"
740
741# Forcefully set CACHE now so future changes to things like
742# MACHINE don't change the path to the cache
743CACHE := "${CACHE}"
744
745# Default to setting automatically based on cpu count
746BB_NUMBER_THREADS ?= "${@oe.utils.cpu_count()}"
747
748# Default to setting automatically based on cpu count
749PARALLEL_MAKE ?= "-j ${@oe.utils.cpu_count()}"
750
751##################################################################
752# Magic Cookie for SANITY CHECK
753##################################################################
754OES_BITBAKE_CONF = "1"
755
756##################################################################
757# Machine properties and packagegroup-base stuff
758##################################################################
759
760MACHINE_FEATURES ?= ""
761DISTRO_FEATURES ?= ""
762
763DISTRO_EXTRA_RDEPENDS ?= ""
764DISTRO_EXTRA_RRECOMMENDS ?= ""
765MACHINE_EXTRA_RDEPENDS ?= ""
766MACHINE_EXTRA_RRECOMMENDS ?= ""
767MACHINE_ESSENTIAL_EXTRA_RDEPENDS ?= ""
768MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS ?= ""
769
770EXTRA_IMAGE_FEATURES ??= ""
771IMAGE_FEATURES += "${EXTRA_IMAGE_FEATURES}"
772
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500773DISTRO_FEATURES_BACKFILL = "pulseaudio sysvinit bluez5 gobject-introspection-data"
774MACHINE_FEATURES_BACKFILL = "rtc qemu-usermode"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500775
776COMBINED_FEATURES = "${@oe.utils.set_intersect('DISTRO_FEATURES', 'MACHINE_FEATURES', d)}"
777COMBINED_FEATURES[vardeps] += "DISTRO_FEATURES MACHINE_FEATURES"
778
779SERIAL_CONSOLE ??= ""
780SERIAL_CONSOLES ??= "${@d.getVar('SERIAL_CONSOLE', True).replace(' ', ';')}"
781
782NO_RECOMMENDATIONS ?= ""
783BAD_RECOMMENDATIONS ?= ""
784
785# Make sure MACHINE isn't exported
786# (breaks binutils at least)
787MACHINE[unexport] = "1"
788
789# Make sure TARGET_ARCH isn't exported
790# (breaks Makefiles using implicit rules, e.g. quilt, as GNU make has this
791# in them, undocumented)
792TARGET_ARCH[unexport] = "1"
793
794# Make sure DISTRO isn't exported
795# (breaks sysvinit at least)
796DISTRO[unexport] = "1"
797
798# Make sure SHELL isn't exported
799# (can break any number of things if the user's shell isn't POSIX-compliant,
800# including the flock command). The user's shell shouldn't affect our builds.
801SHELL[unexport] = "1"
802
803# Used by canadian-cross to handle string conversions on TARGET_ARCH where needed
804TRANSLATED_TARGET_ARCH ??= "${@d.getVar('TARGET_ARCH', True).replace("_", "-")}"
805
806# Complete output from bitbake
807BB_CONSOLELOG ?= "${LOG_DIR}/cooker/${MACHINE}/${DATETIME}.log"
808
809# Setup our default hash policy
810BB_SIGNATURE_HANDLER ?= "OEBasicHash"
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600811BB_HASHBASE_WHITELIST ?= "TMPDIR FILE PATH PWD BB_TASKHASH BBPATH BBSERVER DL_DIR \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500812 SSTATE_DIR THISDIR FILESEXTRAPATHS FILE_DIRNAME HOME LOGNAME SHELL TERM \
813 USER FILESPATH STAGING_DIR_HOST STAGING_DIR_TARGET COREBASE PRSERV_HOST \
814 PRSERV_DUMPDIR PRSERV_DUMPFILE PRSERV_LOCKDOWN PARALLEL_MAKE \
815 CCACHE_DIR EXTERNAL_TOOLCHAIN CCACHE CCACHE_DISABLE LICENSE_PATH SDKPKGSUFFIX \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500816 WARN_QA ERROR_QA WORKDIR STAMPCLEAN PKGDATA_DIR BUILD_ARCH SSTATE_PKGARCH \
817 BB_WORKERCONTEXT"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500818BB_HASHCONFIG_WHITELIST ?= "${BB_HASHBASE_WHITELIST} DATE TIME SSH_AGENT_PID \
819 SSH_AUTH_SOCK PSEUDO_BUILD BB_ENV_EXTRAWHITE DISABLE_SANITY_CHECKS \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500820 PARALLEL_MAKE BB_NUMBER_THREADS BB_ORIGENV BB_INVALIDCONF BBINCLUDED \
821 GIT_PROXY_COMMAND ALL_PROXY all_proxy NO_PROXY no_proxy FTP_PROXY ftp_proxy \
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600822 HTTP_PROXY http_proxy HTTPS_PROXY https_proxy SOCKS5_USER SOCKS5_PASSWD \
823 BB_SETSCENE_ENFORCE"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500824BB_SIGNATURE_EXCLUDE_FLAGS ?= "doc deps depends \
825 lockfiles type vardepsexclude vardeps vardepvalue vardepvalueexclude \
826 file-checksums python func task export unexport noexec nostamp dirs cleandirs \
827 sstate-lockfile-shared prefuncs postfuncs export_func deptask rdeptask \
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600828 recrdeptask nodeprrecs stamp-extra-info sstate-outputdirs filename lineno \
829 progress"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500830
831MLPREFIX ??= ""
832MULTILIB_VARIANTS ??= ""