summaryrefslogtreecommitdiff
path: root/classes
AgeCommit message (Collapse)AuthorFiles
2009-09-02gnome bbclass: remove to more auto generated cruft that breaks package ↵Koen Kooi1
management
2009-09-01package_deb: create md5sums control filesMichael Smith2
These are created with the package and get installed in /var/dpkg/info. Afterward it's a great way to find modified files for backup with a little shell script magic. It feels a bit weird to still use MD5, but that seems to be the convention in the Debian world. Signed-off-by: Michael Smith <msmith@cbnco.com> Acked-by: Chris Larson <clarson@kergoth.com>
2009-08-30base.bbclass: Pass in PATH to popen.Khem Raj1
On Mac OSX its not able to find md5sum if path is not passed to os.popen shell. Signed-off-by: Khem Raj <raj.khem@gmail.com> Acked-by: Koen Kooi <koen@openembedded.org>
2009-08-27Add task-metadata-track.bbclass, for tracking task changes to metadata.Chris Larson1
This class uses events to capture the state of the datastore when the task starts, and after it completes. It diffs those captured states, and emits messages showing which variables changed, and what their values were changed to. It provides a mechanism to blacklist variables you expect to change, both globally and on a per-task basis. Signed-off-by: Chris Larson <clarson@kergoth.com>
2009-08-26srctree: prefix messages with ${PF} and kill do_package hacks.Chris Larson1
Signed-off-by: Chris Larson <clarson@mvista.com>
2009-08-26base.bbclass: add cleanall task.Chris Larson1
Can be particularly useful when using multiple srctree recipes. Signed-off-by: Chris Larson <clarson@mvista.com>
2009-08-26srctree, clean: cleanup & split out do_clean bits into clean.bbclass.Chris Larson2
Signed-off-by: Chris Larson <clarson@mvista.com>
2009-08-26srctree: completely reimplement the task merging into do_populate_staging.Chris Larson1
This fixes issues seen with the use of kernel.bbclass, so in existing source tree kernel builds work happily now. Signed-off-by: Chris Larson <clarson@mvista.com>
2009-08-26srctree.bbclass: Don't automatically use git clean.Chris Larson1
This should be an opt-in feature. Signed-off-by: Chris Larson <clarson@mvista.com>
2009-08-26base.bbclass: Remove redundant import of subprocess and signal.Khem Raj1
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2009-08-25Merge branch 'org.openembedded.dev' of git@git.openembedded.org:openembedded ↵Khem Raj3
into org.openembedded.dev
2009-08-26gitver.bbclass: add initial version.Chris Larson1
This provides a GITVER variable which is a (fairly) sane version, for use in ${PV}, extracted from the ${S} git checkout, assuming it is one. This is most useful in concert with srctree.bbclass. Signed-off-by: Chris Larson <clarson@kergoth.com>
2009-08-26srctree.bbclass: add initial version.Chris Larson1
This enables operation inside of an existing source tree for a project, rather than using the fetch/unpack/patch idiom. By default, it expects that you're keeping the recipe(s) inside the aforementioned source tree, but you could override S to point at an external directory and place the recipes in a normal collection/overlay, if you so chose. It also provides some convenience python functions for assembling your do_clean, if you want to leverage things like 'git clean' to simplify the operation. Signed-off-by: Chris Larson <clarson@kergoth.com>
2009-08-26package_ipk.bbclass: don't choke on empty SRC_URI.Chris Larson1
Signed-off-by: Chris Larson <clarson@kergoth.com>
2009-08-24Merge branch 'org.openembedded.dev' of git@git.openembedded.org:openembedded ↵Khem Raj4
into org.openembedded.dev
2009-08-24patch.bbclass: Add "git" patchtool mechanism, which uses git-applyDale Farnsworth1
It can be selected by setting PATCHTOOL = "git". This is useful because git-apply honors the permissions information produced by git-format-patch. Signed-off-by: Dale Farnsworth <dfarnsworth@mvista.com> Signed-off-by: Chris Larson <clarson@mvista.com> Acked-by: Denys Dmytriyenko <denis@denix.org>
2009-08-24kernel.bbclass: Set EXTRA_OEMAKE to null for kernelDale Farnsworth1
Currently the only thing in EXTRA_OEMAKE is '-e MAKEFLAGS='. We don't want to overide the kernel's Makefile variables from the environment. It caused the passed -j<N> parameter from PARALLEL_MAKE to be ignored. Signed-off-by: Dale Farnsworth <dfarnsworth@mvista.com> Signed-off-by: Chris Larson <clarson@mvista.com> Acked-by: Denys Dmytriyenko <denis@denix.org>
2009-08-24kernel.bbclass: Install & package symvers as /boot/Module.symvers-<ver>.Chris Larson1
Signed-off-by: Chris Larson <clarson@mvista.com> Acked-by: Michael Smith <msmith@cbnco.com>
2009-08-24distutils-common-base.bbclass: only raise missing python-native error if ↵Chris Larson1
python-native isn't in DEPENDS. Signed-off-by: Chris Larson <clarson@mvista.com> Acked-by: Michael 'Mickey' Lauer <mlauer@vanille-media.de>
2009-08-24mesa-dri: move tls configure logic to a classMichael Smith1
Will allow reuse by xorg-xserver. Signed-off-by: Michael Smith <msmith@cbnco.com>
2009-08-23base.bbclass: Replace os.system with subprocess call.Khem Raj1
Often gzip is reporting broken pipe errors with do_unpack of tar.gz files. If you use the commands described above to extract a tar.gz file, gzip sometimes emits a Broken pipe error message. This can safely be ignored if tar extracted all files without any other error message. We do not let python install its SIGPIPE handler and use subprocess call to invoke the command. This is based on the following python bug report. http://bugs.python.org/issue1652 Signed-off-by: Khem Raj <raj.khem@gmail.com>
2009-08-22kernel.bbclass: stage more include files for x86 in 2.6.27+Michael Smith1
Some packages include <linux/types.h>, which requires <asm/types.h>. Supplement b6220af33a70d96345dea130005ce842eeadfdf5 to copy files from arch/x86/include/asm to include/asm-x86. Signed-off-by: Michael Smith <msmith@cbnco.com> Acked-by: Roman I Khimov <khimov@altell.ru>
2009-08-19src_distribute_local: Change cp -f to cp -fr to account for directories.Jeremy Puhlman1
Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com> Signed-off-by: Chris Larson <clarson@mvista.com>
2009-08-19src_distribute: force do_fetch execution in do_distribute_sources.Chris Larson1
Works around src_distribute failures with the use of packaged staging. Signed-off-by: Chris Larson <clarson@mvista.com>
2009-08-19src_distribute*.bbclass: cleanup, revamp parts, distribute all sources.Chris Larson2
- Kill the big shell function with the case statement used in _local in favor of a set of bitbake variables, with the appropriate one selected as SRC_DISTRIBUTECOMMAND. - Add and use SRC_DISTRIBUTE_DLONLY to toggle distribution of all sources versus just those downloaded to DL_DIR. This variable expects to be set to an integer, anything but 0 will enable dlonly operation. This is disabled by default. - Add a more sanely named distribute_sources_all, and make distsrcall depend on it, for compatibility. - By default, distributes the sources into ${SRC_DISTRIBUTEDIR}/${LIC}/${PN}/. - Move some _local specific bits, like use of SRC_DISTRIBUTEDIR, out of the main class. - Set a "LIC" var along with the "SRC" when running SRC_DISTRIBUTECOMMAND, to facilitate the above. Signed-off-by: Chris Larson <clarson@mvista.com>
2009-08-19devshell.bbclass: set a default for XAUTHORITY and export ↵Chris Larson1
DBUS_SESSION_BUS_ADDRESS. Signed-off-by: Chris Larson <clarson@mvista.com>
2009-08-19package_rpm: don't run against native/cross recipes, explicitlyChris Larson1
In the past, it only avoided adding the rpm-native/fakeroot-native deps if PACKAGES is empty, but unfortunately some native recipes have PACKAGES set to non-empty, so let's explicitly check for native/cross. Signed-off-by: Chris Larson <clarson@mvista.com>
2009-08-19base.bbclass: catch bb.MalformedUrl in do_fetch.Chris Larson1
Signed-off-by: Chris Larson <clarson@mvista.com>
2009-08-19Let the distro control whether we include hostap or madwifi.Chris Larson1
- Add base_ifelse convenience function to base.bbclass. - Replace all conditionals in the recipes relating to hostap and madwifi to look for their name in COMBINED_FEATURES rather than looking for specific buses (pci, pcmcia). - Change the default COMBINED_FEATURES to enable: - madwifi, when: - distro has pci, wifi, and madwifi in its features - machine has pci in its features - hostap, when: - 'wifi' and 'hostap' are in distro features - either 'pci' or 'pcmcia' are in both distro and machine features Signed-off-by: Chris Larson <clarson@mvista.com>
2009-08-19base.bbclass: introduce OE source mirror network as last resort for do_fetchRolf Leggewie1
Updating recipes and checksums.ini for vanishing upstream hosts or simple restructuring can quickly become a chore for OE devs if taken seriously. The OE user experience suffers severely when at any given point in time 4 to 5 recipes on average fail do_fetch for a simple image. The solution is for OE to provide its own caching of upstream sources. mirrors.openembedded.org is a swarm of possibly incomplete source mirrors provided by the community and load-balanced via DNS round robin. They act as a first line of defense and lower bandwidth load on melo which hosts sources.openembedded.org. The melo mirror aims to have a complete copy of free-to-publish sources used by the current org.oe.dev branch. More information at http://wiki.openembedded.net/index.php/Sources_mirror Acked-by: Holger Freyther <zecke@selfish.org> Acked-by: Chris Larson <clarson@kergoth.com>
2009-08-18package_tar.bbclass: Do not set IMAGE_PKGTYPE to unbreak parsingHolger Hans Peter Freyther1
image.bbclass is trying to inherit package_${IMAGE_PKGTYPE} and this will fail because a rootfs_tar.bbclass doesn't exist. When planning to build images one needs to inherit package_ipk, package_rpm or package_deb in addition to INHERIT += "package_tar". Signed-off-by: Holger Hans Peter Freyther <zecke@selfish.org> Acked-by: Philip Balister <philip@balister.org>
2009-08-14base.bbclass: ftp.matrix.com.br no longer existsRolf Leggewie1
* Acked-By: Holger Freyther <zecke@selfish.org> * Acked-by: Phil Blundell <philb@gnu.org>
2009-08-14kernel.bbclass: introduce MODULES_IMAGE_BASE_NAMEDenys Dmytriyenko1
Similar to KERNEL_IMAGE_BASE_NAME, allow overwriting from a recipe Signed-off-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Henning Heinold <heinold@inf.fu-berlin.de>
2009-08-09sanity.bbclass: Correct typo to refer to PACKAGE_EXTRA_ARCHSKhem Raj1
We were using EXTRA_PACKAGE_ARCHS which was sort of misleading if you started to search for this variable. It was a typo hence fixed as obvious. Signed-off-by: Khem Raj <raj.khem@gmail.com>
2009-08-08image.bbclass: fix bug in lingua code (code wasn't spitting entries like ↵Steve Sakoman1
fr-fr and thus locale-fr packages were bing omitted)
2009-08-08gconf.bbclass: adjust the ordering of things so that a package ↵Steve Sakoman1
pkg_postinst_append is executed after the class postinst. This is important since recipes like gpanel need to to execute gconftool-2 --load after the gconf class code has processed the schema info
2009-08-06vala: here comes 0.7.5+fso2Michael 'Mickey' Lauer1
2009-08-01base.bbclass: Strip -sdk from the PN for BPN as wellHolger Hans Peter Freyther1
This is fixing the compilation of libtool-sdk_2.6.6a which is currently the only user of BPN.
2009-07-31kernel.bbclass : moved uImage creation from do_deploy to between do_compileGraham Gower1
and do_install as discussed on ML. linux.inc : removed uImage creation, its now in kernel.bbclass Signed-off-by: Graham Gower <graham.gower@gmail.com> Acked-by: Graeme Gregory <dp@xora.org.uk> Acked-by: Koen Kooi <koen@openembedded.org>
2009-07-29qt4x11 bbclass: only match first 12 chars in automagical dependency adderKoen Kooi1
2009-07-28oestats-client: restore support for proxiesDmitry Eremin-Solenikov1
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
2009-07-24Revert "image.bbclass: reorder do_rootfs"Richard Purdie1
This reverts commit 736c06e8d8efa79d3d2bc512f13a51f0f63412e2 as this change breaks future versions of bitbake. See the OE mailing list, in the "Bitbake runqueue performance improvement" thread for a discussion on why this isn't the best way to solve multi-image problem and that other better solutions exist.
2009-07-22base bbclass: try to find the git binaries in PATH instead of BBPATHKoen Kooi1
* Also, how do I get the build banner back? This bug went unnoticed due to it being gone
2009-07-22oestats-client.bbclass: support arbitrary URLs (Closes: #5283)Jeremy Lainé1
2009-07-17packagehistory bbclass: hotfix from RP to work around the ↵Koen Kooi1
multiple-machine-share-same-kernel problem
2009-07-16angstrom.bbclass : a utility bbclass for angstrom, currently implementsGraeme Gregory1
a recipe blacklister
2009-07-14packagehistory: add another QA class from pokyKoen Kooi1
2009-07-11package classes: count dotfiles as non-emptyMichael Smith4
Allow a package to be built that contains only dotfiles or dot directories under '/'. Signed-off-by: Michael Smith <msmith@cbnco.com>
2009-07-10Revert "base.bbclass: add support for machine configuration fallback"Graeme Gregory1
This reverts commit 6633c4c95a713bc365f5d87acc4a94621ed50034.
2009-07-10base.bbclass: add support for machine configuration fallbackOtavio Salvador1
To avoid duplicating a lot of configurations for similar machines we needed to introduce a new concept of machine fallback. It basically means that when a list is set in MACHINE_FALLBACK variable, following is done: - those machines are added to the override list, after the machine itself; - if any of these machines matches, the package is dealt as machine specific one. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>