diff options
Diffstat (limited to 'meta/conf/bitbake.conf')
-rw-r--r-- | meta/conf/bitbake.conf | 414 |
1 files changed, 414 insertions, 0 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf new file mode 100644 index 0000000000..529405a3eb --- /dev/null +++ b/meta/conf/bitbake.conf | |||
@@ -0,0 +1,414 @@ | |||
1 | ################################################################## | ||
2 | # Standard target filesystem paths. | ||
3 | ################################################################## | ||
4 | |||
5 | # Path prefixes | ||
6 | export base_prefix = "" | ||
7 | export prefix = "/usr" | ||
8 | export exec_prefix = "${prefix}" | ||
9 | |||
10 | # Base paths | ||
11 | export base_bindir = "${base_prefix}/bin" | ||
12 | export base_sbindir = "${base_prefix}/sbin" | ||
13 | export base_libdir = "${base_prefix}/lib" | ||
14 | |||
15 | # Architecture independent paths | ||
16 | export datadir = "${prefix}/share" | ||
17 | export sysconfdir = "/etc" | ||
18 | export sharedstatedir = "${prefix}/com" | ||
19 | export localstatedir = "/var" | ||
20 | export infodir = "${datadir}/info" | ||
21 | export mandir = "${datadir}/man" | ||
22 | export docdir = "${datadir}/doc" | ||
23 | export servicedir = "/srv" | ||
24 | |||
25 | # Architecture dependent paths | ||
26 | export bindir = "${exec_prefix}/bin" | ||
27 | export sbindir = "${exec_prefix}/sbin" | ||
28 | export libexecdir = "${exec_prefix}/libexec" | ||
29 | export libdir = "${exec_prefix}/lib" | ||
30 | export includedir = "${exec_prefix}/include" | ||
31 | export oldincludedir = "${exec_prefix}/include" | ||
32 | |||
33 | ################################################################## | ||
34 | # Architecture-dependent build variables. | ||
35 | ################################################################## | ||
36 | |||
37 | BUILD_ARCH = "${@os.uname()[4]}" | ||
38 | BUILD_OS = "${@os.uname()[0].lower()}" | ||
39 | BUILD_VENDOR = "" | ||
40 | BUILD_SYS = "${BUILD_ARCH}${BUILD_VENDOR}-${BUILD_OS}" | ||
41 | BUILD_PREFIX = "" | ||
42 | BUILD_CC_ARCH = "" | ||
43 | |||
44 | HOST_ARCH = "${TARGET_ARCH}" | ||
45 | HOST_OS = "${TARGET_OS}" | ||
46 | HOST_VENDOR = "${TARGET_VENDOR}" | ||
47 | HOST_SYS = "${HOST_ARCH}${HOST_VENDOR}-${HOST_OS}" | ||
48 | HOST_PREFIX = "${TARGET_PREFIX}" | ||
49 | HOST_CC_ARCH = "${TARGET_CC_ARCH}" | ||
50 | |||
51 | TARGET_ARCH = "INVALID" | ||
52 | TARGET_OS = "INVALID" | ||
53 | TARGET_VENDOR = "${BUILD_VENDOR}" | ||
54 | TARGET_SYS = "${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}" | ||
55 | TARGET_PREFIX = "${TARGET_SYS}-" | ||
56 | TARGET_CC_ARCH = "" | ||
57 | |||
58 | PACKAGE_ARCH = "${HOST_ARCH}" | ||
59 | MACHINE_ARCH = "${@[bb.data.getVar('HOST_ARCH', d, 1), bb.data.getVar('MACHINE', d, 1)][bool(bb.data.getVar('MACHINE', d, 1))]}" | ||
60 | IPKG_ARCHS = "all any noarch ${TARGET_ARCH} ${IPKG_EXTRA_ARCHS} ${MACHINE}" | ||
61 | |||
62 | ################################################################## | ||
63 | # Date/time variables. | ||
64 | ################################################################## | ||
65 | |||
66 | DATE := "${@time.strftime('%Y%m%d',time.gmtime())}" | ||
67 | TIME := "${@time.strftime('%H%M%S',time.gmtime())}" | ||
68 | DATETIME = "${DATE}${TIME}" | ||
69 | |||
70 | ################################################################## | ||
71 | # Openembedded Software Prerequisites. | ||
72 | ################################################################## | ||
73 | |||
74 | # python-native should be here but python relies on building | ||
75 | # its own in staging | ||
76 | ASSUME_PROVIDED = "cvs-native svn-native bzip2-native diffstat-native patch-native python-native-runtime perl-native-runtime texinfo-native" | ||
77 | |||
78 | ################################################################## | ||
79 | # Package default variables. | ||
80 | ################################################################## | ||
81 | |||
82 | PN = "${@bb.parse.BBHandler.vars_from_file(bb.data.getVar('FILE',d),d)[0] or 'defaultpkgname'}" | ||
83 | PV = "${@bb.parse.BBHandler.vars_from_file(bb.data.getVar('FILE',d),d)[1] or '1.0'}" | ||
84 | PR = "${@bb.parse.BBHandler.vars_from_file(bb.data.getVar('FILE',d),d)[2] or 'r0'}" | ||
85 | PF = "${PN}-${PV}-${PR}" | ||
86 | P = "${PN}-${PV}" | ||
87 | |||
88 | # Package info. | ||
89 | |||
90 | SECTION = "base" | ||
91 | PRIORITY = "optional" | ||
92 | DESCRIPTION = "Version ${PV}-${PR} of package ${PN}" | ||
93 | LICENSE = "unknown" | ||
94 | MAINTAINER = "OpenEmbedded Team <oe@handhelds.org>" | ||
95 | HOMEPAGE = "unknown" | ||
96 | |||
97 | # Package dependencies and provides. | ||
98 | |||
99 | DEPENDS = "" | ||
100 | RDEPENDS = "" | ||
101 | PROVIDES = "" | ||
102 | PROVIDES_prepend = "${P} ${PF} ${PN} " | ||
103 | RPROVIDES = "" | ||
104 | |||
105 | PACKAGES = "${PN} ${PN}-doc ${PN}-dev ${PN}-locale" | ||
106 | FILES = "" | ||
107 | FILES_${PN} = "${bindir} ${sbindir} ${libexecdir} ${libdir}/lib*.so.* \ | ||
108 | ${sysconfdir} ${sharedstatedir} ${localstatedir} \ | ||
109 | /bin /sbin /lib/*.so* ${datadir}/${PN} ${libdir}/${PN} \ | ||
110 | ${datadir}/pixmaps ${datadir}/applications \ | ||
111 | ${datadir}/idl ${datadir}/omf ${datadir}/sounds \ | ||
112 | ${libdir}/bonobo/servers" | ||
113 | SECTION_${PN}-doc = "doc" | ||
114 | FILES_${PN}-doc = "${docdir} ${mandir} ${infodir} ${datadir}/gtk-doc \ | ||
115 | ${datadir}/gnome/help" | ||
116 | SECTION_${PN}-dev = "devel" | ||
117 | FILES_${PN}-dev = "${includedir} ${libdir}/lib*.so ${libdir}/*.la \ | ||
118 | ${libdir}/*.a ${libdir}/*.o ${libdir}/pkgconfig \ | ||
119 | /lib/*.a /lib/*.o ${datadir}/aclocal" | ||
120 | FILES_${PN}-locale = "${datadir}/locale" | ||
121 | |||
122 | # File manifest | ||
123 | |||
124 | export MANIFEST = "${FILESDIR}/manifest" | ||
125 | |||
126 | FILE_DIRNAME = "${@os.path.dirname(bb.data.getVar('FILE', d))}" | ||
127 | FILESPATH = "${FILE_DIRNAME}/${PF}:${FILE_DIRNAME}/${P}:${FILE_DIRNAME}/${PN}:${FILE_DIRNAME}/files:${FILE_DIRNAME}" | ||
128 | FILESDIR = "${@bb.which(bb.data.getVar('FILESPATH', d, 1), '.')}" | ||
129 | |||
130 | ################################################################## | ||
131 | # General work and output directories for the build system. | ||
132 | ################################################################## | ||
133 | |||
134 | TMPDIR = "${TOPDIR}/tmp" | ||
135 | CACHE = "${TMPDIR}/cache" | ||
136 | DL_DIR = "${TMPDIR}/downloads" | ||
137 | CVSDIR = "${DL_DIR}/cvs" | ||
138 | GITDIR = "${DL_DIR}/git" | ||
139 | |||
140 | STAMP = "${TMPDIR}/stamps/${PF}" | ||
141 | WORKDIR = "${TMPDIR}/work/${PF}" | ||
142 | T = "${WORKDIR}/temp" | ||
143 | D = "${WORKDIR}/image" | ||
144 | S = "${WORKDIR}/${P}" | ||
145 | B = "${S}" | ||
146 | |||
147 | STAGING_DIR = "${TMPDIR}/staging" | ||
148 | STAGING_BINDIR = "${STAGING_DIR}/${BUILD_SYS}/bin" | ||
149 | STAGING_LIBDIR = "${STAGING_DIR}/${HOST_SYS}/lib" | ||
150 | STAGING_INCDIR = "${STAGING_DIR}/${HOST_SYS}/include" | ||
151 | STAGING_DATADIR = "${STAGING_DIR}/${HOST_SYS}/share" | ||
152 | STAGING_LOADER_DIR = "${STAGING_DIR}/${HOST_SYS}/loader" | ||
153 | |||
154 | DEPLOY_DIR = "${TMPDIR}/deploy" | ||
155 | DEPLOY_DIR_TAR = "${DEPLOY_DIR}/tar" | ||
156 | DEPLOY_DIR_IPK = "${DEPLOY_DIR}/ipk" | ||
157 | DEPLOY_DIR_RPM = "${DEPLOY_DIR}/rpm" | ||
158 | |||
159 | ################################################################## | ||
160 | # Kernel info. | ||
161 | ################################################################## | ||
162 | |||
163 | OLDEST_KERNEL = "2.4.0" | ||
164 | STAGING_KERNEL_DIR = "${STAGING_DIR}/${HOST_SYS}/kernel" | ||
165 | |||
166 | ################################################################## | ||
167 | # Specific image creation and rootfs population info. | ||
168 | ################################################################## | ||
169 | |||
170 | DEPLOY_DIR_IMAGE = "${DEPLOY_DIR}/images" | ||
171 | IMAGE_ROOTFS = "${TMPDIR}/rootfs" | ||
172 | IMAGE_BASENAME = "rootfs" | ||
173 | IMAGE_NAME = "${IMAGE_BASENAME}-${MACHINE}-${DATETIME}" | ||
174 | IMAGE_CMD = "" | ||
175 | IMAGE_CMD_jffs2 = "mkfs.jffs2 --root=${IMAGE_ROOTFS} --faketime \ | ||
176 | --output=${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.jffs2 \ | ||
177 | ${EXTRA_IMAGECMD}" | ||
178 | IMAGE_CMD_cramfs = "mkcramfs ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cramfs ${EXTRA_IMAGECMD}" | ||
179 | IMAGE_CMD_ext2 = "genext2fs -b ${IMAGE_ROOTFS_SIZE} -d ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext2 ${EXTRA_IMAGECMD}" | ||
180 | IMAGE_CMD_ext2.gz = "mkdir ${DEPLOY_DIR_IMAGE}/tmp.gz; genext2fs -b ${IMAGE_ROOTFS_SIZE} -d ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext2 ${EXTRA_IMAGECMD}; gzip -f -9 ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext2; mv ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext2.gz ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext2.gz; rmdir ${DEPLOY_DIR_IMAGE}/tmp.gz" | ||
181 | IMAGE_CMD_squashfs = "mksquashfs ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.squashfs ${EXTRA_IMAGECMD} -noappend" | ||
182 | IMAGE_CMD_tar = "cd ${IMAGE_ROOTFS} && tar -jcvf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.tar.bz2 ." | ||
183 | IMAGE_CMD_tar.gz = "cd ${IMAGE_ROOTFS} && tar -zcvf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.tar.gz ." | ||
184 | IMAGE_CMD_tar.bz2 = "cd ${IMAGE_ROOTFS} && tar -jcvf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.tar.bz2 ." | ||
185 | EXTRA_IMAGECMD = "" | ||
186 | EXTRA_IMAGECMD_jffs2 = "--pad --little-endian --eraseblock=0x40000" | ||
187 | EXTRA_IMAGECMD_squashfs = "-le -b 16384" | ||
188 | IMAGE_FSTYPE = "jffs2" | ||
189 | IMAGE_FSTYPES = "${IMAGE_FSTYPE}" | ||
190 | IMAGE_ROOTFS_SIZE_ext2 = "65536" | ||
191 | IMAGE_ROOTFS_SIZE_ext2.gz = "65536" | ||
192 | |||
193 | IMAGE_DEPENDS = "" | ||
194 | IMAGE_DEPENDS_jffs2 = "mtd-utils-native" | ||
195 | IMAGE_DEPENDS_cramfs = "cramfs-native" | ||
196 | IMAGE_DEPENDS_ext2 = "genext2fs-native" | ||
197 | IMAGE_DEPENDS_ext2.gz = "genext2fs-native" | ||
198 | IMAGE_DEPENDS_squashfs = "squashfs-tools-native" | ||
199 | EXTRA_IMAGEDEPENDS = "" | ||
200 | |||
201 | ################################################################## | ||
202 | # Toolchain info. | ||
203 | ################################################################## | ||
204 | |||
205 | CROSS_DIR = "${TMPDIR}/cross" | ||
206 | CROSS_DATADIR = "${CROSS_DIR}/share" | ||
207 | export PATH_prepend = "${STAGING_BINDIR}/${HOST_SYS}:${STAGING_BINDIR}:${CROSS_DIR}/bin:" | ||
208 | |||
209 | ################################################################## | ||
210 | # Build utility info. | ||
211 | ################################################################## | ||
212 | |||
213 | CCACHE = "${@bb.which(bb.data.getVar('PATH', d), 'ccache') and 'ccache '}" | ||
214 | |||
215 | export CC = "${CCACHE}${HOST_PREFIX}gcc ${HOST_CC_ARCH}" | ||
216 | export CXX = "${CCACHE}${HOST_PREFIX}g++ ${HOST_CC_ARCH}" | ||
217 | export F77 = "${CCACHE}${HOST_PREFIX}g77 ${HOST_CC_ARCH}" | ||
218 | export CPP = "${HOST_PREFIX}gcc -E" | ||
219 | export LD = "${HOST_PREFIX}ld" | ||
220 | export CCLD = "${CC}" | ||
221 | export AR = "${HOST_PREFIX}ar" | ||
222 | export AS = "${HOST_PREFIX}as" | ||
223 | export RANLIB = "${HOST_PREFIX}ranlib" | ||
224 | export STRIP = "${HOST_PREFIX}strip" | ||
225 | |||
226 | export BUILD_CC = "${CCACHE}${BUILD_PREFIX}gcc ${BUILD_CC_ARCH}" | ||
227 | export BUILD_CXX = "${CCACHE}${BUILD_PREFIX}g++ ${BUILD_CC_ARCH}" | ||
228 | export BUILD_F77 = "${CCACHE}${BUILD_PREFIX}g77 ${BUILD_CC_ARCH}" | ||
229 | export BUILD_CPP = "${BUILD_PREFIX}cpp" | ||
230 | export BUILD_LD = "${BUILD_PREFIX}ld" | ||
231 | export BUILD_CCLD = "${BUILD_PREFIX}gcc" | ||
232 | export BUILD_AR = "${BUILD_PREFIX}ar" | ||
233 | export BUILD_RANLIB = "${BUILD_PREFIX}ranlib" | ||
234 | export BUILD_STRIP = "${BUILD_PREFIX}strip" | ||
235 | |||
236 | export MAKE = "make" | ||
237 | EXTRA_OEMAKE = "-e MAKEFLAGS=" | ||
238 | |||
239 | ################################################################## | ||
240 | # Build flags and options. | ||
241 | ################################################################## | ||
242 | |||
243 | export BUILD_CPPFLAGS = "-isystem${STAGING_DIR}/${BUILD_SYS}/include" | ||
244 | export CPPFLAGS = "${TARGET_CPPFLAGS}" | ||
245 | export TARGET_CPPFLAGS = "-isystem${STAGING_DIR}/${TARGET_SYS}/include" | ||
246 | |||
247 | export BUILD_CFLAGS = "${BUILD_CPPFLAGS} ${BUILD_OPTIMIZATION}" | ||
248 | export CFLAGS = "${TARGET_CFLAGS}" | ||
249 | export TARGET_CFLAGS = "${TARGET_CPPFLAGS} ${SELECTED_OPTIMIZATION}" | ||
250 | |||
251 | export BUILD_CXXFLAGS = "${BUILD_CFLAGS} -fpermissive" | ||
252 | export CXXFLAGS = "${TARGET_CXXFLAGS}" | ||
253 | export TARGET_CXXFLAGS = "${TARGET_CFLAGS} -fpermissive" | ||
254 | |||
255 | export BUILD_LDFLAGS = "-L${STAGING_DIR}/${BUILD_SYS}/lib \ | ||
256 | -Wl,-rpath-link,${STAGING_DIR}/${BUILD_SYS}/lib \ | ||
257 | -Wl,-rpath,${STAGING_DIR}/${BUILD_SYS}/lib -Wl,-O1" | ||
258 | export LDFLAGS = "${TARGET_LDFLAGS}" | ||
259 | export TARGET_LDFLAGS = "-L${STAGING_DIR}/${TARGET_SYS}/lib \ | ||
260 | -Wl,-rpath-link,${STAGING_DIR}/${TARGET_SYS}/lib \ | ||
261 | -Wl,-O1" | ||
262 | |||
263 | # Which flags to leave by strip-flags() in bin/build/oebuild.sh ? | ||
264 | ALLOWED_FLAGS = "-O -mcpu -march -pipe" | ||
265 | |||
266 | # Pass parallel make options to the compile task only | ||
267 | EXTRA_OEMAKE_prepend_task_do_compile = "${PARALLEL_MAKE} " | ||
268 | |||
269 | ################################################################## | ||
270 | # Optimization flags. | ||
271 | ################################################################## | ||
272 | |||
273 | FULL_OPTIMIZATION = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2" | ||
274 | DEBUG_OPTIMIZATION = "-O -g" | ||
275 | SELECTED_OPTIMIZATION = "${@bb.data.getVar(['FULL_OPTIMIZATION', 'DEBUG_OPTIMIZATION'][bb.data.getVar('DEBUG_BUILD', d, 1) == '1'], d, 1)}" | ||
276 | BUILD_OPTIMIZATION = "-O2" | ||
277 | |||
278 | ################################################################## | ||
279 | # Bootstrap stuff. | ||
280 | ################################################################## | ||
281 | |||
282 | BOOTSTRAP_EXTRA_RDEPENDS = "" | ||
283 | BOOTSTRAP_EXTRA_RRECOMMENDS = "" | ||
284 | |||
285 | ################################################################## | ||
286 | # Palmtop stuff. | ||
287 | ################################################################## | ||
288 | |||
289 | export QTDIR = "${STAGING_DIR}/${HOST_SYS}/qt2" | ||
290 | export QPEDIR = "${STAGING_DIR}/${HOST_SYS}" | ||
291 | export OPIEDIR = "${STAGING_DIR}/${HOST_SYS}" | ||
292 | export palmtopdir = "/opt/QtPalmtop" | ||
293 | export palmqtdir = "/opt/QtPalmtop" | ||
294 | |||
295 | ################################################################## | ||
296 | # Download locations and utilities. | ||
297 | ################################################################## | ||
298 | |||
299 | GNU_MIRROR = "ftp://ftp.gnu.org/gnu" | ||
300 | DEBIAN_MIRROR = "ftp://ftp.debian.org/debian/pool" | ||
301 | SOURCEFORGE_MIRROR = "http://heanet.dl.sourceforge.net/sourceforge" | ||
302 | GPE_MIRROR = "http://handhelds.org/pub/projects/gpe/source" | ||
303 | XLIBS_MIRROR = "http://xlibs.freedesktop.org/release" | ||
304 | XORG_MIRROR = "http://xorg.freedesktop.org/releases" | ||
305 | GNOME_MIRROR = "http://ftp.gnome.org/pub/GNOME/sources" | ||
306 | FREEBSD_MIRROR = "ftp://ftp.freebsd.org/pub/FreeBSD/" | ||
307 | HANDHELDS_CVS = "cvs://anoncvs:anoncvs@anoncvs.handhelds.org/cvs" | ||
308 | E_CVS = "cvs://anonymous@anoncvs.enlightenment.org/var/cvs/e" | ||
309 | E_URI = "http://enlightenment.freedesktop.org/files" | ||
310 | FREEDESKTOP_CVS = "cvs://anoncvs:anoncvs@anoncvs.freedesktop.org/cvs" | ||
311 | GENTOO_MIRROR = "http://distro.ibiblio.org/pub/linux/distributions/gentoo/distfiles" | ||
312 | APACHE_MIRROR = "http://www.apache.org/dist" | ||
313 | |||
314 | # You can use the mirror of your country to get faster downloads by putting | ||
315 | # export DEBIAN_MIRROR = "ftp://ftp.de.debian.org/debian/pool" | ||
316 | # export SOURCEFORGE_MIRROR = "http://belnet.dl.sourceforge.net/sourceforge" | ||
317 | # into your local.conf | ||
318 | |||
319 | FETCHCOMMAND = "ERROR, this must be a BitBake bug" | ||
320 | FETCHCOMMAND_wget = "/usr/bin/env wget -t 5 --passive-ftp -P ${DL_DIR} ${URI}" | ||
321 | FETCHCOMMAND_cvs = "/usr/bin/env cvs -d${CVSROOT} co ${CVSCOOPTS} ${CVSMODULE}" | ||
322 | RESUMECOMMAND = "ERROR, this must be a BitBake bug" | ||
323 | RESUMECOMMAND_wget = "/usr/bin/env wget -c -t 5 --passive-ftp -P ${DL_DIR} ${URI}" | ||
324 | UPDATECOMMAND = "ERROR, this must be a BitBake bug" | ||
325 | UPDATECOMMAND_cvs = "/usr/bin/env cvs -d${CVSROOT} update -d -P ${CVSCOOPTS}" | ||
326 | SRCDATE = "${DATE}" | ||
327 | |||
328 | SRC_URI = "file://${FILE}" | ||
329 | |||
330 | ################################################################## | ||
331 | # Miscellaneous utilities. | ||
332 | ################################################################## | ||
333 | |||
334 | MKTEMPDIRCMD = "mktemp -d -q ${TMPBASE}" | ||
335 | MKTEMPCMD = "mktemp -q ${TMPBASE}" | ||
336 | |||
337 | # Program to be used to patch sources, use 'inherit patcher' to overwrite this: | ||
338 | |||
339 | PATCHCLEANCMD = 'if [ -n "`quilt applied`" ]; then quilt pop -a -R -f || exit 1; fi' | ||
340 | PATCHCMD = "pnum='%s'; name='%s'; patch='%s'; mkdir -p patches ; quilt upgrade >/dev/null 2>&1; quilt import -f -p $pnum -n $name $patch; chmod u+w patches/$name; quilt push" | ||
341 | PATCH_DEPENDS = "quilt-native" | ||
342 | |||
343 | # GNU patch tries to be intellgent about checking out read-only files from | ||
344 | # a RCS, which freaks out those special folks with active Perforce clients | ||
345 | # the following makes patch ignore RCS: | ||
346 | |||
347 | export PATCH_GET=0 | ||
348 | |||
349 | # Program to be used to build ipkg packages | ||
350 | |||
351 | IPKGBUILDCMD = "ipkg-build -o 0 -g 0" | ||
352 | |||
353 | ################################################################## | ||
354 | # Not sure about the rest of this yet. | ||
355 | ################################################################## | ||
356 | |||
357 | # slot - currently unused by OE. portage remnants | ||
358 | SLOT = "0" | ||
359 | |||
360 | # Other | ||
361 | |||
362 | export PKG_CONFIG_PATH = "${STAGING_DATADIR}/pkgconfig" | ||
363 | export PKG_CONFIG_DISABLE_UNINSTALLED = "yes" | ||
364 | |||
365 | export QMAKE_MKSPEC_PATH = "${STAGING_DIR}/${BUILD_SYS}/share/qmake" | ||
366 | export STAGING_SIPDIR = "${STAGING_DIR}/${BUILD_SYS}/share/sip" | ||
367 | export STAGING_IDLDIR = "${STAGING_DATADIR}/idl" | ||
368 | |||
369 | # default test results for autoconf | ||
370 | # possible candidate for moving into autotools.oeclass -CL | ||
371 | export CONFIG_SITE = "${@bb.which(bb.data.getVar('BBPATH', d, 1), 'site/%s-%s' % (bb.data.getVar('HOST_ARCH', d, 1), bb.data.getVar('HOST_OS', d, 1)))}" | ||
372 | |||
373 | # library package naming | ||
374 | AUTO_LIBNAME_PKGS = "${PACKAGES}" | ||
375 | |||
376 | ### | ||
377 | ### Config file processing | ||
378 | ### | ||
379 | |||
380 | # This means that an envionment variable named '<foo>_arm' overrides an | ||
381 | # environment variable '<foo>' (when ${TARGET_ARCH} is arm). And the same: an | ||
382 | # environment variable '<foo>_ramses' overrides both '<foo>' and '<foo>_arm | ||
383 | # when ${MACHINE} is 'ramses'. And finally '<foo>_local' overrides anything. | ||
384 | # | ||
385 | # This works for functions as well, they are really just environment variables. | ||
386 | #OVERRIDES = "local:${MACHINE}:${DISTRO}:${TARGET_OS}:${TARGET_ARCH}:build-${BUILD_OS}" | ||
387 | # Alternative OVERRIDES to make compilation fail fast, we will enable it by default soon | ||
388 | OVERRIDES = "local:${MACHINE}:${DISTRO}:${TARGET_OS}:${TARGET_ARCH}:build-${BUILD_OS}:fail-fast:pn-${PN}" | ||
389 | |||
390 | ################################################################## | ||
391 | # Include the rest of the config files. | ||
392 | ################################################################## | ||
393 | |||
394 | include conf/site.conf | ||
395 | include conf/auto.conf | ||
396 | include conf/local.conf | ||
397 | include conf/build/${BUILD_SYS}.conf | ||
398 | include conf/target/${TARGET_SYS}.conf | ||
399 | include conf/machine/${MACHINE}.conf | ||
400 | include conf/distro/${DISTRO}.conf | ||
401 | include conf/documentation.conf | ||
402 | require conf/sanity.conf | ||
403 | |||
404 | ################################################################## | ||
405 | # Weak variables (usually to retain backwards compatibility) | ||
406 | ################################################################## | ||
407 | |||
408 | PCMCIA_MANAGER ?= "pcmcia-cs" | ||
409 | |||
410 | |||
411 | ################################################################## | ||
412 | # Magic Cookie for SANITY CHECK | ||
413 | ################################################################## | ||
414 | OES_BITBAKE_CONF = "1" | ||