summaryrefslogtreecommitdiffstats
path: root/meta/conf/bitbake.conf
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2006-07-21 10:10:31 +0000
committerRichard Purdie <richard@openedhand.com>2006-07-21 10:10:31 +0000
commitb2f192faabe412adce79534e22efe9fb69ee40e2 (patch)
tree7076c49d4286f8a1733650bd8fbc7161af200d57 /meta/conf/bitbake.conf
parent2cf0eadf9f730027833af802d7e6c90b44248f80 (diff)
downloadpoky-b2f192faabe412adce79534e22efe9fb69ee40e2.tar.gz
Rename /openembedded/ -> /meta/
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@530 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/conf/bitbake.conf')
-rw-r--r--meta/conf/bitbake.conf414
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
6export base_prefix = ""
7export prefix = "/usr"
8export exec_prefix = "${prefix}"
9
10# Base paths
11export base_bindir = "${base_prefix}/bin"
12export base_sbindir = "${base_prefix}/sbin"
13export base_libdir = "${base_prefix}/lib"
14
15# Architecture independent paths
16export datadir = "${prefix}/share"
17export sysconfdir = "/etc"
18export sharedstatedir = "${prefix}/com"
19export localstatedir = "/var"
20export infodir = "${datadir}/info"
21export mandir = "${datadir}/man"
22export docdir = "${datadir}/doc"
23export servicedir = "/srv"
24
25# Architecture dependent paths
26export bindir = "${exec_prefix}/bin"
27export sbindir = "${exec_prefix}/sbin"
28export libexecdir = "${exec_prefix}/libexec"
29export libdir = "${exec_prefix}/lib"
30export includedir = "${exec_prefix}/include"
31export oldincludedir = "${exec_prefix}/include"
32
33##################################################################
34# Architecture-dependent build variables.
35##################################################################
36
37BUILD_ARCH = "${@os.uname()[4]}"
38BUILD_OS = "${@os.uname()[0].lower()}"
39BUILD_VENDOR = ""
40BUILD_SYS = "${BUILD_ARCH}${BUILD_VENDOR}-${BUILD_OS}"
41BUILD_PREFIX = ""
42BUILD_CC_ARCH = ""
43
44HOST_ARCH = "${TARGET_ARCH}"
45HOST_OS = "${TARGET_OS}"
46HOST_VENDOR = "${TARGET_VENDOR}"
47HOST_SYS = "${HOST_ARCH}${HOST_VENDOR}-${HOST_OS}"
48HOST_PREFIX = "${TARGET_PREFIX}"
49HOST_CC_ARCH = "${TARGET_CC_ARCH}"
50
51TARGET_ARCH = "INVALID"
52TARGET_OS = "INVALID"
53TARGET_VENDOR = "${BUILD_VENDOR}"
54TARGET_SYS = "${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}"
55TARGET_PREFIX = "${TARGET_SYS}-"
56TARGET_CC_ARCH = ""
57
58PACKAGE_ARCH = "${HOST_ARCH}"
59MACHINE_ARCH = "${@[bb.data.getVar('HOST_ARCH', d, 1), bb.data.getVar('MACHINE', d, 1)][bool(bb.data.getVar('MACHINE', d, 1))]}"
60IPKG_ARCHS = "all any noarch ${TARGET_ARCH} ${IPKG_EXTRA_ARCHS} ${MACHINE}"
61
62##################################################################
63# Date/time variables.
64##################################################################
65
66DATE := "${@time.strftime('%Y%m%d',time.gmtime())}"
67TIME := "${@time.strftime('%H%M%S',time.gmtime())}"
68DATETIME = "${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
76ASSUME_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
82PN = "${@bb.parse.BBHandler.vars_from_file(bb.data.getVar('FILE',d),d)[0] or 'defaultpkgname'}"
83PV = "${@bb.parse.BBHandler.vars_from_file(bb.data.getVar('FILE',d),d)[1] or '1.0'}"
84PR = "${@bb.parse.BBHandler.vars_from_file(bb.data.getVar('FILE',d),d)[2] or 'r0'}"
85PF = "${PN}-${PV}-${PR}"
86P = "${PN}-${PV}"
87
88# Package info.
89
90SECTION = "base"
91PRIORITY = "optional"
92DESCRIPTION = "Version ${PV}-${PR} of package ${PN}"
93LICENSE = "unknown"
94MAINTAINER = "OpenEmbedded Team <oe@handhelds.org>"
95HOMEPAGE = "unknown"
96
97# Package dependencies and provides.
98
99DEPENDS = ""
100RDEPENDS = ""
101PROVIDES = ""
102PROVIDES_prepend = "${P} ${PF} ${PN} "
103RPROVIDES = ""
104
105PACKAGES = "${PN} ${PN}-doc ${PN}-dev ${PN}-locale"
106FILES = ""
107FILES_${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"
113SECTION_${PN}-doc = "doc"
114FILES_${PN}-doc = "${docdir} ${mandir} ${infodir} ${datadir}/gtk-doc \
115 ${datadir}/gnome/help"
116SECTION_${PN}-dev = "devel"
117FILES_${PN}-dev = "${includedir} ${libdir}/lib*.so ${libdir}/*.la \
118 ${libdir}/*.a ${libdir}/*.o ${libdir}/pkgconfig \
119 /lib/*.a /lib/*.o ${datadir}/aclocal"
120FILES_${PN}-locale = "${datadir}/locale"
121
122# File manifest
123
124export MANIFEST = "${FILESDIR}/manifest"
125
126FILE_DIRNAME = "${@os.path.dirname(bb.data.getVar('FILE', d))}"
127FILESPATH = "${FILE_DIRNAME}/${PF}:${FILE_DIRNAME}/${P}:${FILE_DIRNAME}/${PN}:${FILE_DIRNAME}/files:${FILE_DIRNAME}"
128FILESDIR = "${@bb.which(bb.data.getVar('FILESPATH', d, 1), '.')}"
129
130##################################################################
131# General work and output directories for the build system.
132##################################################################
133
134TMPDIR = "${TOPDIR}/tmp"
135CACHE = "${TMPDIR}/cache"
136DL_DIR = "${TMPDIR}/downloads"
137CVSDIR = "${DL_DIR}/cvs"
138GITDIR = "${DL_DIR}/git"
139
140STAMP = "${TMPDIR}/stamps/${PF}"
141WORKDIR = "${TMPDIR}/work/${PF}"
142T = "${WORKDIR}/temp"
143D = "${WORKDIR}/image"
144S = "${WORKDIR}/${P}"
145B = "${S}"
146
147STAGING_DIR = "${TMPDIR}/staging"
148STAGING_BINDIR = "${STAGING_DIR}/${BUILD_SYS}/bin"
149STAGING_LIBDIR = "${STAGING_DIR}/${HOST_SYS}/lib"
150STAGING_INCDIR = "${STAGING_DIR}/${HOST_SYS}/include"
151STAGING_DATADIR = "${STAGING_DIR}/${HOST_SYS}/share"
152STAGING_LOADER_DIR = "${STAGING_DIR}/${HOST_SYS}/loader"
153
154DEPLOY_DIR = "${TMPDIR}/deploy"
155DEPLOY_DIR_TAR = "${DEPLOY_DIR}/tar"
156DEPLOY_DIR_IPK = "${DEPLOY_DIR}/ipk"
157DEPLOY_DIR_RPM = "${DEPLOY_DIR}/rpm"
158
159##################################################################
160# Kernel info.
161##################################################################
162
163OLDEST_KERNEL = "2.4.0"
164STAGING_KERNEL_DIR = "${STAGING_DIR}/${HOST_SYS}/kernel"
165
166##################################################################
167# Specific image creation and rootfs population info.
168##################################################################
169
170DEPLOY_DIR_IMAGE = "${DEPLOY_DIR}/images"
171IMAGE_ROOTFS = "${TMPDIR}/rootfs"
172IMAGE_BASENAME = "rootfs"
173IMAGE_NAME = "${IMAGE_BASENAME}-${MACHINE}-${DATETIME}"
174IMAGE_CMD = ""
175IMAGE_CMD_jffs2 = "mkfs.jffs2 --root=${IMAGE_ROOTFS} --faketime \
176 --output=${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.jffs2 \
177 ${EXTRA_IMAGECMD}"
178IMAGE_CMD_cramfs = "mkcramfs ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cramfs ${EXTRA_IMAGECMD}"
179IMAGE_CMD_ext2 = "genext2fs -b ${IMAGE_ROOTFS_SIZE} -d ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext2 ${EXTRA_IMAGECMD}"
180IMAGE_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"
181IMAGE_CMD_squashfs = "mksquashfs ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.squashfs ${EXTRA_IMAGECMD} -noappend"
182IMAGE_CMD_tar = "cd ${IMAGE_ROOTFS} && tar -jcvf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.tar.bz2 ."
183IMAGE_CMD_tar.gz = "cd ${IMAGE_ROOTFS} && tar -zcvf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.tar.gz ."
184IMAGE_CMD_tar.bz2 = "cd ${IMAGE_ROOTFS} && tar -jcvf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.tar.bz2 ."
185EXTRA_IMAGECMD = ""
186EXTRA_IMAGECMD_jffs2 = "--pad --little-endian --eraseblock=0x40000"
187EXTRA_IMAGECMD_squashfs = "-le -b 16384"
188IMAGE_FSTYPE = "jffs2"
189IMAGE_FSTYPES = "${IMAGE_FSTYPE}"
190IMAGE_ROOTFS_SIZE_ext2 = "65536"
191IMAGE_ROOTFS_SIZE_ext2.gz = "65536"
192
193IMAGE_DEPENDS = ""
194IMAGE_DEPENDS_jffs2 = "mtd-utils-native"
195IMAGE_DEPENDS_cramfs = "cramfs-native"
196IMAGE_DEPENDS_ext2 = "genext2fs-native"
197IMAGE_DEPENDS_ext2.gz = "genext2fs-native"
198IMAGE_DEPENDS_squashfs = "squashfs-tools-native"
199EXTRA_IMAGEDEPENDS = ""
200
201##################################################################
202# Toolchain info.
203##################################################################
204
205CROSS_DIR = "${TMPDIR}/cross"
206CROSS_DATADIR = "${CROSS_DIR}/share"
207export PATH_prepend = "${STAGING_BINDIR}/${HOST_SYS}:${STAGING_BINDIR}:${CROSS_DIR}/bin:"
208
209##################################################################
210# Build utility info.
211##################################################################
212
213CCACHE = "${@bb.which(bb.data.getVar('PATH', d), 'ccache') and 'ccache '}"
214
215export CC = "${CCACHE}${HOST_PREFIX}gcc ${HOST_CC_ARCH}"
216export CXX = "${CCACHE}${HOST_PREFIX}g++ ${HOST_CC_ARCH}"
217export F77 = "${CCACHE}${HOST_PREFIX}g77 ${HOST_CC_ARCH}"
218export CPP = "${HOST_PREFIX}gcc -E"
219export LD = "${HOST_PREFIX}ld"
220export CCLD = "${CC}"
221export AR = "${HOST_PREFIX}ar"
222export AS = "${HOST_PREFIX}as"
223export RANLIB = "${HOST_PREFIX}ranlib"
224export STRIP = "${HOST_PREFIX}strip"
225
226export BUILD_CC = "${CCACHE}${BUILD_PREFIX}gcc ${BUILD_CC_ARCH}"
227export BUILD_CXX = "${CCACHE}${BUILD_PREFIX}g++ ${BUILD_CC_ARCH}"
228export BUILD_F77 = "${CCACHE}${BUILD_PREFIX}g77 ${BUILD_CC_ARCH}"
229export BUILD_CPP = "${BUILD_PREFIX}cpp"
230export BUILD_LD = "${BUILD_PREFIX}ld"
231export BUILD_CCLD = "${BUILD_PREFIX}gcc"
232export BUILD_AR = "${BUILD_PREFIX}ar"
233export BUILD_RANLIB = "${BUILD_PREFIX}ranlib"
234export BUILD_STRIP = "${BUILD_PREFIX}strip"
235
236export MAKE = "make"
237EXTRA_OEMAKE = "-e MAKEFLAGS="
238
239##################################################################
240# Build flags and options.
241##################################################################
242
243export BUILD_CPPFLAGS = "-isystem${STAGING_DIR}/${BUILD_SYS}/include"
244export CPPFLAGS = "${TARGET_CPPFLAGS}"
245export TARGET_CPPFLAGS = "-isystem${STAGING_DIR}/${TARGET_SYS}/include"
246
247export BUILD_CFLAGS = "${BUILD_CPPFLAGS} ${BUILD_OPTIMIZATION}"
248export CFLAGS = "${TARGET_CFLAGS}"
249export TARGET_CFLAGS = "${TARGET_CPPFLAGS} ${SELECTED_OPTIMIZATION}"
250
251export BUILD_CXXFLAGS = "${BUILD_CFLAGS} -fpermissive"
252export CXXFLAGS = "${TARGET_CXXFLAGS}"
253export TARGET_CXXFLAGS = "${TARGET_CFLAGS} -fpermissive"
254
255export 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"
258export LDFLAGS = "${TARGET_LDFLAGS}"
259export 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 ?
264ALLOWED_FLAGS = "-O -mcpu -march -pipe"
265
266# Pass parallel make options to the compile task only
267EXTRA_OEMAKE_prepend_task_do_compile = "${PARALLEL_MAKE} "
268
269##################################################################
270# Optimization flags.
271##################################################################
272
273FULL_OPTIMIZATION = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2"
274DEBUG_OPTIMIZATION = "-O -g"
275SELECTED_OPTIMIZATION = "${@bb.data.getVar(['FULL_OPTIMIZATION', 'DEBUG_OPTIMIZATION'][bb.data.getVar('DEBUG_BUILD', d, 1) == '1'], d, 1)}"
276BUILD_OPTIMIZATION = "-O2"
277
278##################################################################
279# Bootstrap stuff.
280##################################################################
281
282BOOTSTRAP_EXTRA_RDEPENDS = ""
283BOOTSTRAP_EXTRA_RRECOMMENDS = ""
284
285##################################################################
286# Palmtop stuff.
287##################################################################
288
289export QTDIR = "${STAGING_DIR}/${HOST_SYS}/qt2"
290export QPEDIR = "${STAGING_DIR}/${HOST_SYS}"
291export OPIEDIR = "${STAGING_DIR}/${HOST_SYS}"
292export palmtopdir = "/opt/QtPalmtop"
293export palmqtdir = "/opt/QtPalmtop"
294
295##################################################################
296# Download locations and utilities.
297##################################################################
298
299GNU_MIRROR = "ftp://ftp.gnu.org/gnu"
300DEBIAN_MIRROR = "ftp://ftp.debian.org/debian/pool"
301SOURCEFORGE_MIRROR = "http://heanet.dl.sourceforge.net/sourceforge"
302GPE_MIRROR = "http://handhelds.org/pub/projects/gpe/source"
303XLIBS_MIRROR = "http://xlibs.freedesktop.org/release"
304XORG_MIRROR = "http://xorg.freedesktop.org/releases"
305GNOME_MIRROR = "http://ftp.gnome.org/pub/GNOME/sources"
306FREEBSD_MIRROR = "ftp://ftp.freebsd.org/pub/FreeBSD/"
307HANDHELDS_CVS = "cvs://anoncvs:anoncvs@anoncvs.handhelds.org/cvs"
308E_CVS = "cvs://anonymous@anoncvs.enlightenment.org/var/cvs/e"
309E_URI = "http://enlightenment.freedesktop.org/files"
310FREEDESKTOP_CVS = "cvs://anoncvs:anoncvs@anoncvs.freedesktop.org/cvs"
311GENTOO_MIRROR = "http://distro.ibiblio.org/pub/linux/distributions/gentoo/distfiles"
312APACHE_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
319FETCHCOMMAND = "ERROR, this must be a BitBake bug"
320FETCHCOMMAND_wget = "/usr/bin/env wget -t 5 --passive-ftp -P ${DL_DIR} ${URI}"
321FETCHCOMMAND_cvs = "/usr/bin/env cvs -d${CVSROOT} co ${CVSCOOPTS} ${CVSMODULE}"
322RESUMECOMMAND = "ERROR, this must be a BitBake bug"
323RESUMECOMMAND_wget = "/usr/bin/env wget -c -t 5 --passive-ftp -P ${DL_DIR} ${URI}"
324UPDATECOMMAND = "ERROR, this must be a BitBake bug"
325UPDATECOMMAND_cvs = "/usr/bin/env cvs -d${CVSROOT} update -d -P ${CVSCOOPTS}"
326SRCDATE = "${DATE}"
327
328SRC_URI = "file://${FILE}"
329
330##################################################################
331# Miscellaneous utilities.
332##################################################################
333
334MKTEMPDIRCMD = "mktemp -d -q ${TMPBASE}"
335MKTEMPCMD = "mktemp -q ${TMPBASE}"
336
337# Program to be used to patch sources, use 'inherit patcher' to overwrite this:
338
339PATCHCLEANCMD = 'if [ -n "`quilt applied`" ]; then quilt pop -a -R -f || exit 1; fi'
340PATCHCMD = "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"
341PATCH_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
347export PATCH_GET=0
348
349# Program to be used to build ipkg packages
350
351IPKGBUILDCMD = "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
358SLOT = "0"
359
360# Other
361
362export PKG_CONFIG_PATH = "${STAGING_DATADIR}/pkgconfig"
363export PKG_CONFIG_DISABLE_UNINSTALLED = "yes"
364
365export QMAKE_MKSPEC_PATH = "${STAGING_DIR}/${BUILD_SYS}/share/qmake"
366export STAGING_SIPDIR = "${STAGING_DIR}/${BUILD_SYS}/share/sip"
367export STAGING_IDLDIR = "${STAGING_DATADIR}/idl"
368
369# default test results for autoconf
370# possible candidate for moving into autotools.oeclass -CL
371export 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
374AUTO_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
388OVERRIDES = "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
394include conf/site.conf
395include conf/auto.conf
396include conf/local.conf
397include conf/build/${BUILD_SYS}.conf
398include conf/target/${TARGET_SYS}.conf
399include conf/machine/${MACHINE}.conf
400include conf/distro/${DISTRO}.conf
401include conf/documentation.conf
402require conf/sanity.conf
403
404##################################################################
405# Weak variables (usually to retain backwards compatibility)
406##################################################################
407
408PCMCIA_MANAGER ?= "pcmcia-cs"
409
410
411##################################################################
412# Magic Cookie for SANITY CHECK
413##################################################################
414OES_BITBAKE_CONF = "1"