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