summaryrefslogtreecommitdiffstats
path: root/openembedded/conf/bitbake.conf
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2005-08-31 10:45:47 +0000
committerRichard Purdie <richard@openedhand.com>2005-08-31 10:45:47 +0000
commit4b46c1f6e891b1ddd5968536440b888661fade3e (patch)
treee0ba2c1f56f61b868bf746da5c4feabb25b800b2 /openembedded/conf/bitbake.conf
downloadpoky-4b46c1f6e891b1ddd5968536440b888661fade3e.tar.gz
Initial population
git-svn-id: https://svn.o-hand.com/repos/poky@1 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'openembedded/conf/bitbake.conf')
-rw-r--r--openembedded/conf/bitbake.conf381
1 files changed, 381 insertions, 0 deletions
diff --git a/openembedded/conf/bitbake.conf b/openembedded/conf/bitbake.conf
new file mode 100644
index 0000000000..04603d393d
--- /dev/null
+++ b/openembedded/conf/bitbake.conf
@@ -0,0 +1,381 @@
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))]}"
60
61##################################################################
62# Date/time variables.
63##################################################################
64
65DATE := "${@time.strftime('%Y%m%d',time.gmtime())}"
66TIME := "${@time.strftime('%H%M%S',time.gmtime())}"
67DATETIME = "${DATE}${TIME}"
68
69##################################################################
70# Package default variables.
71##################################################################
72
73PN = "${@bb.parse.BBHandler.vars_from_file(bb.data.getVar('FILE',d),d)[0] or 'defaultpkgname'}"
74PV = "${@bb.parse.BBHandler.vars_from_file(bb.data.getVar('FILE',d),d)[1] or '1.0'}"
75PR = "${@bb.parse.BBHandler.vars_from_file(bb.data.getVar('FILE',d),d)[2] or 'r0'}"
76PF = "${PN}-${PV}-${PR}"
77P = "${PN}-${PV}"
78
79# Package info.
80
81SECTION = "base"
82PRIORITY = "optional"
83DESCRIPTION = "Version ${PV}-${PR} of package ${PN}"
84LICENSE = "unknown"
85MAINTAINER = "OpenEmbedded Team <oe@handhelds.org>"
86HOMEPAGE = "unknown"
87
88# Package dependencies and provides.
89
90DEPENDS = ""
91RDEPENDS = ""
92PROVIDES = ""
93PROVIDES_prepend = "${P} ${PF} ${PN} "
94RPROVIDES = ""
95
96PACKAGES = "${PN} ${PN}-doc ${PN}-dev ${PN}-locale"
97FILES = ""
98FILES_${PN} = "${bindir} ${sbindir} ${libexecdir} ${libdir}/lib*.so.* \
99 ${sysconfdir} ${sharedstatedir} ${localstatedir} \
100 /bin /sbin /lib/*.so* ${datadir}/${PN} ${libdir}/${PN} \
101 ${datadir}/pixmaps ${datadir}/applications \
102 ${datadir}/idl ${datadir}/omf ${datadir}/sounds \
103 ${libdir}/bonobo/servers"
104SECTION_${PN}-doc = "doc"
105FILES_${PN}-doc = "${docdir} ${mandir} ${infodir} ${datadir}/gtk-doc \
106 ${datadir}/gnome/help"
107SECTION_${PN}-dev = "devel"
108FILES_${PN}-dev = "${includedir} ${libdir}/lib*.so ${libdir}/*.la \
109 ${libdir}/*.a ${libdir}/*.o ${libdir}/pkgconfig \
110 /lib/*.a /lib/*.o ${datadir}/aclocal"
111FILES_${PN}-locale = "${datadir}/locale"
112
113# File manifest
114
115export MANIFEST = "${FILESDIR}/manifest"
116
117FILE_DIRNAME = "${@os.path.dirname(bb.data.getVar('FILE', d))}"
118FILESPATH = "${FILE_DIRNAME}/${PF}:${FILE_DIRNAME}/${P}:${FILE_DIRNAME}/${PN}:${FILE_DIRNAME}/files:${FILE_DIRNAME}"
119FILESDIR = "${@bb.which(bb.data.getVar('FILESPATH', d, 1), '.')}"
120
121##################################################################
122# General work and output directories for the build system.
123##################################################################
124
125TMPDIR = "${TOPDIR}/tmp"
126CACHE = "${TMPDIR}/cache"
127DL_DIR = "${TMPDIR}/downloads"
128CVSDIR = "${DL_DIR}/cvs"
129
130STAMP = "${TMPDIR}/stamps/${PF}"
131WORKDIR = "${TMPDIR}/work/${PF}"
132T = "${WORKDIR}/temp"
133D = "${WORKDIR}/image"
134S = "${WORKDIR}/${P}"
135B = "${S}"
136
137STAGING_DIR = "${TMPDIR}/staging"
138STAGING_BINDIR = "${STAGING_DIR}/${BUILD_SYS}/bin"
139STAGING_LIBDIR = "${STAGING_DIR}/${HOST_SYS}/lib"
140STAGING_INCDIR = "${STAGING_DIR}/${HOST_SYS}/include"
141STAGING_DATADIR = "${STAGING_DIR}/${HOST_SYS}/share"
142STAGING_LOADER_DIR = "${STAGING_DIR}/${HOST_SYS}/loader"
143
144DEPLOY_DIR = "${TMPDIR}/deploy"
145DEPLOY_DIR_TAR = "${DEPLOY_DIR}/tar"
146DEPLOY_DIR_IPK = "${DEPLOY_DIR}/ipk"
147DEPLOY_DIR_RPM = "${DEPLOY_DIR}/rpm"
148
149##################################################################
150# Kernel info.
151##################################################################
152
153OLDEST_KERNEL = "2.4.0"
154STAGING_KERNEL_DIR = "${STAGING_DIR}/${HOST_SYS}/kernel"
155
156##################################################################
157# Specific image creation and rootfs population info.
158##################################################################
159
160DEPLOY_DIR_IMAGE = "${DEPLOY_DIR}/images"
161IMAGE_ROOTFS = "${TMPDIR}/rootfs"
162IMAGE_BASENAME = "rootfs"
163IMAGE_NAME = "${IMAGE_BASENAME}-${MACHINE}-${DATETIME}"
164IMAGE_CMD = ""
165IMAGE_CMD_jffs2 = "mkfs.jffs2 --root=${IMAGE_ROOTFS} --faketime \
166 --output=${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.jffs2 \
167 ${EXTRA_IMAGECMD}"
168IMAGE_CMD_cramfs = "mkcramfs ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cramfs ${EXTRA_IMAGECMD}"
169IMAGE_CMD_ext2 = "genext2fs -b ${IMAGE_ROOTFS_SIZE} -d ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext2 ${EXTRA_IMAGECMD}"
170IMAGE_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"
171IMAGE_CMD_squashfs = "mksquashfs ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.squashfs ${EXTRA_IMAGECMD} -noappend"
172IMAGE_CMD_tar = "cd ${IMAGE_ROOTFS} && tar -jcvf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.tar.bz2 ."
173EXTRA_IMAGECMD = ""
174EXTRA_IMAGECMD_jffs2 = "--pad --little-endian --eraseblock=0x40000"
175EXTRA_IMAGECMD_squashfs = "-le -b 16384"
176IMAGE_FSTYPE = "jffs2"
177IMAGE_FSTYPES = "${IMAGE_FSTYPE}"
178IMAGE_ROOTFS_SIZE_ext2 = "65536"
179IMAGE_ROOTFS_SIZE_ext2.gz = "65536"
180
181IMAGE_DEPENDS = ""
182IMAGE_DEPENDS_jffs2 = "mtd-utils-native"
183IMAGE_DEPENDS_cramfs = "cramfs-native"
184IMAGE_DEPENDS_ext2 = "genext2fs-native"
185IMAGE_DEPENDS_ext2.gz = "genext2fs-native"
186IMAGE_DEPENDS_squashfs = "squashfs-tools-native"
187EXTRA_IMAGEDEPENDS = ""
188
189##################################################################
190# Toolchain info.
191##################################################################
192
193CROSS_DIR = "${TMPDIR}/cross"
194CROSS_DATADIR = "${CROSS_DIR}/share"
195export PATH_prepend = "${STAGING_BINDIR}/${HOST_SYS}:${STAGING_BINDIR}:${CROSS_DIR}/bin:"
196
197##################################################################
198# Build utility info.
199##################################################################
200
201CCACHE = "${@bb.which(bb.data.getVar('PATH', d), 'ccache') and 'ccache '}"
202
203export CC = "${CCACHE}${HOST_PREFIX}gcc ${HOST_CC_ARCH}"
204export CXX = "${CCACHE}${HOST_PREFIX}g++ ${HOST_CC_ARCH}"
205export F77 = "${CCACHE}${HOST_PREFIX}g77 ${HOST_CC_ARCH}"
206export CPP = "${HOST_PREFIX}gcc -E"
207export LD = "${HOST_PREFIX}ld"
208export CCLD = "${CC}"
209export AR = "${HOST_PREFIX}ar"
210export AS = "${HOST_PREFIX}as"
211export RANLIB = "${HOST_PREFIX}ranlib"
212export STRIP = "${HOST_PREFIX}strip"
213
214export BUILD_CC = "${CCACHE}${BUILD_PREFIX}gcc ${BUILD_CC_ARCH}"
215export BUILD_CXX = "${CCACHE}${BUILD_PREFIX}g++ ${BUILD_CC_ARCH}"
216export BUILD_F77 = "${CCACHE}${BUILD_PREFIX}g77 ${BUILD_CC_ARCH}"
217export BUILD_CPP = "${BUILD_PREFIX}cpp"
218export BUILD_LD = "${BUILD_PREFIX}ld"
219export BUILD_CCLD = "${BUILD_PREFIX}gcc"
220export BUILD_AR = "${BUILD_PREFIX}ar"
221export BUILD_RANLIB = "${BUILD_PREFIX}ranlib"
222export BUILD_STRIP = "${BUILD_PREFIX}strip"
223
224export MAKE = "make"
225EXTRA_OEMAKE = "-e MAKEFLAGS="
226
227##################################################################
228# Build flags and options.
229##################################################################
230
231export BUILD_CPPFLAGS = "-I${STAGING_DIR}/${BUILD_SYS}/include"
232export CPPFLAGS = "${TARGET_CPPFLAGS}"
233export TARGET_CPPFLAGS = "-I${STAGING_DIR}/${TARGET_SYS}/include"
234
235export BUILD_CFLAGS = "${BUILD_CPPFLAGS} ${BUILD_OPTIMIZATION}"
236export CFLAGS = "${TARGET_CFLAGS}"
237export TARGET_CFLAGS = "${TARGET_CPPFLAGS} ${SELECTED_OPTIMIZATION}"
238
239export BUILD_CXXFLAGS = "${BUILD_CFLAGS} -fpermissive"
240export CXXFLAGS = "${TARGET_CXXFLAGS}"
241export TARGET_CXXFLAGS = "${TARGET_CFLAGS} -fpermissive"
242
243export BUILD_LDFLAGS = "-L${STAGING_DIR}/${BUILD_SYS}/lib \
244 -Wl,-rpath-link,${STAGING_DIR}/${BUILD_SYS}/lib \
245 -Wl,-rpath,${STAGING_DIR}/${BUILD_SYS}/lib -Wl,-O1"
246export LDFLAGS = "${TARGET_LDFLAGS}"
247export TARGET_LDFLAGS = "-L${STAGING_DIR}/${TARGET_SYS}/lib \
248 -Wl,-rpath-link,${STAGING_DIR}/${TARGET_SYS}/lib \
249 -Wl,-O1"
250
251# Which flags to leave by strip-flags() in bin/build/oebuild.sh ?
252ALLOWED_FLAGS = "-O -mcpu -march -pipe"
253
254# Pass parallel make options to the compile task only
255EXTRA_OEMAKE_prepend_task_do_compile = "${PARALLEL_MAKE} "
256
257##################################################################
258# Optimization flags.
259##################################################################
260
261FULL_OPTIMIZATION = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2"
262DEBUG_OPTIMIZATION = "-O -g"
263SELECTED_OPTIMIZATION = "${@bb.data.getVar(['FULL_OPTIMIZATION', 'DEBUG_OPTIMIZATION'][bb.data.getVar('DEBUG_BUILD', d, 1) == '1'], d, 1)}"
264BUILD_OPTIMIZATION = "-O2"
265
266##################################################################
267# Bootstrap stuff.
268##################################################################
269
270BOOTSTRAP_EXTRA_DEPENDS = ""
271BOOTSTRAP_EXTRA_RDEPENDS = ""
272BOOTSTRAP_EXTRA_RRECOMMENDS = ""
273
274##################################################################
275# Palmtop stuff.
276##################################################################
277
278export QTDIR = "${STAGING_DIR}/${HOST_SYS}/qt2"
279export QPEDIR = "${STAGING_DIR}/${HOST_SYS}"
280export OPIEDIR = "${STAGING_DIR}/${HOST_SYS}"
281export palmtopdir = "/opt/QtPalmtop"
282export palmqtdir = "/opt/QtPalmtop"
283
284##################################################################
285# Download locations and utilities.
286##################################################################
287
288GNU_MIRROR = "ftp://ftp.gnu.org/gnu"
289DEBIAN_MIRROR = "ftp://ftp.debian.org/debian/pool"
290SOURCEFORGE_MIRROR = "http://heanet.dl.sourceforge.net/sourceforge"
291GPE_MIRROR = "http://ftp.handhelds.org/pub/projects/gpe/source"
292XLIBS_MIRROR = "http://xlibs.freedesktop.org/release"
293GNOME_MIRROR = "http://ftp.gnome.org/pub/GNOME/sources"
294HANDHELDS_CVS = "cvs://anoncvs:anoncvs@cvs.handhelds.org/cvs"
295
296# You can use the mirror of your country to get faster downloads by putting
297# export DEBIAN_MIRROR = "ftp://ftp.de.debian.org/debian/pool"
298# export SOURCEFORGE_MIRROR = "http://belnet.dl.sourceforge.net/sourceforge"
299# into your local.conf
300
301FETCHCOMMAND = ""
302FETCHCOMMAND_wget = "/usr/bin/env wget -t 5 --passive-ftp -P ${DL_DIR} ${URI}"
303FETCHCOMMAND_cvs = "/usr/bin/env cvs -d${CVSROOT} co ${CVSCOOPTS} ${CVSMODULE}"
304RESUMECOMMAND = ""
305RESUMECOMMAND_wget = "/usr/bin/env wget -c -t 5 --passive-ftp -P ${DL_DIR} ${URI}"
306UPDATECOMMAND = ""
307UPDATECOMMAND_cvs = "/usr/bin/env cvs update -d -P ${CVSCOOPTS}"
308CVSDATE = "${DATE}"
309
310SRC_URI = "file://${FILE}"
311
312##################################################################
313# Miscellaneous utilities.
314##################################################################
315
316MKTEMPDIRCMD = "mktemp -d -q ${TMPBASE}"
317MKTEMPCMD = "mktemp -q ${TMPBASE}"
318
319# Program to be used to patch sources, use 'inherit patcher' to overwrite this:
320
321PATCHCLEANCMD = 'if [ -n "`quilt applied`" ]; then quilt pop -a -R -f || exit 1; fi'
322PATCHCMD = "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"
323PATCH_DEPENDS = "quilt-native"
324
325# GNU patch tries to be intellgent about checking out read-only files from
326# a RCS, which freaks out those special folks with active Perforce clients
327# the following makes patch ignore RCS:
328
329export PATCH_GET=0
330
331# Program to be used to build ipkg packages
332
333IPKGBUILDCMD = "ipkg-build -o 0 -g 0"
334
335##################################################################
336# Not sure about the rest of this yet.
337##################################################################
338
339# slot - currently unused by OE. portage remnants
340SLOT = "0"
341
342# Other
343
344export PKG_CONFIG_PATH = "${STAGING_DATADIR}/pkgconfig"
345export PKG_CONFIG_DISABLE_UNINSTALLED = "yes"
346
347export QMAKE_MKSPEC_PATH = "${STAGING_DIR}/${BUILD_SYS}/share/qmake"
348export STAGING_SIPDIR = "${STAGING_DIR}/${BUILD_SYS}/share/sip"
349export STAGING_IDLDIR = "${STAGING_DATADIR}/idl"
350
351# default test results for autoconf
352# possible candidate for moving into autotools.oeclass -CL
353export 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)))}"
354
355# library package naming
356AUTO_LIBNAME_PKGS = "${PACKAGES}"
357
358###
359### Config file processing
360###
361
362# This means that an envionment variable named '<foo>_arm' overrides an
363# environment variable '<foo>' (when ${TARGET_ARCH} is arm). And the same: an
364# environment variable '<foo>_ramses' overrides both '<foo>' and '<foo>_arm
365# when ${MACHINE} is 'ramses'. And finally '<foo>_local' overrides anything.
366#
367# This works for functions as well, they are really just environment variables.
368OVERRIDES = "local:${MACHINE}:${DISTRO}:${TARGET_OS}:${TARGET_ARCH}:build-${BUILD_OS}"
369
370##################################################################
371# Include the rest of the config files.
372##################################################################
373
374include conf/site.conf
375include conf/auto.conf
376include conf/local.conf
377include conf/build/${BUILD_SYS}.conf
378include conf/target/${TARGET_SYS}.conf
379include conf/machine/${MACHINE}.conf
380include conf/distro/${DISTRO}.conf
381include conf/documentation.conf