summaryrefslogtreecommitdiff
path: root/classes/base.bbclass
AgeCommit message (Collapse)AuthorFiles
2010-04-26qemu: Move gcc version check, qemu-TARGET logic into qemu.bbclassJesse Gilles1
Move the logic to determine what qemu-TARGET to run into qemu.bbclass so we can check for the right binary in sanity.bbclass. This code was duplicated by glibc-package and eglibc-package anyhow and with the new fn we can clean up the usage in these classes a bit. Now that we have a class for qemu stuff, and the gcc check is just for qemu, move it there. Conflicts: classes/base.bbclass classes/sanity.bbclass
2009-11-16classes: Drop a number of unneeded import calls (from Poky)Richard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-13fix c&p error in last patchPhil Blundell1
2009-11-13base.bbclass: add support for checksums in .bb filesPhil Blundell1
2009-11-12base.bbclass: Fix legacy staging package generation as pre hook was called ↵Richard Purdie1
too late. Also allow legacy staging to be forced with FORCE_LEGACY_STAGING Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-11base.bbclass: Detect recipes where there are problems with staging functions ↵Richard Purdie1
after staging upgrades Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-10base.bbclass: Replace the base_package_name function with the ↵Richard Purdie1
base_prune_suffix() function from Poky and extend the number of special suffixes Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-10native.bbclass: Add BBCLASSEXTEND support (from poky)Richard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-10base.bbclass: Fix staging for native and non-native packagesRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-10base.bbclass: Add stubs for functions when package-staging isn't active and ↵Richard Purdie1
fix a typo Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-10base.bbclass: Note legacy staging packages in debug outputRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-10base.bbclass: Rework staging function to use a DESTDIR style configuration ↵Richard Purdie1
based on the data from the do_install step (from Poky). This falls back to any standard do_stage function if defined, see the mailing list for more info. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-10packaged-staging.bbclass: Use a variable for the location of the staging ↵Richard Purdie1
lock file (from Poky) Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-10binconfig/pkgconfig.bbclass: Convert staging functions into ↵Richard Purdie1
SYSROOT_PREPROCESS_FUNCS operating on SYSROOT_DESTDIR Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-10autotools.bbclass: Separate out useful staging functions into base.bbclass ↵Richard Purdie1
and call from autotools classes (from Poky) Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-10Start removal of layout_* variables and replace these with new mechanisms to ↵Richard Purdie1
allow nextgen SDK generation (from Poky) Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-09base.bbclass: Promote packagedata inherit to a direct inherit due to ↵Richard Purdie1
ordering issues Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-09packagedata.bbclass: Split package data handling functions out from ↵Richard Purdie1
base.bclass (from Poky) Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-09base.bbclass: Drop import bb and import os as no longer neededRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-09base.bbclass: Drop legacy rebuild mangling codeRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-03base.bbclass: Better error message in case the Config Parser failsHolger Hans Peter Freyther1
http://patchwork.openembedded.org/patch/1088/ Tested-by: Ed Nelson <enelson1000@comcast.net>
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-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-26base.bbclass: Remove redundant import of subprocess and signal.Khem Raj1
Signed-off-by: Khem Raj <raj.khem@gmail.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-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-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-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-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-06-24bitbake.conf, base.bbclass: Changed build config summary header to be a ↵Chris Larson1
variable. Default in bitbake.conf for BUILDCFG_HEADER is "Build Configuration". This lets distributions make their builds ever so slightly prettier :) Signed-off-by: Chris Larson <clarson@mvista.com> Acked-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
2009-06-17base.bbclass: set PATH when calling git for metadata scm bits.Chris Larson1
Signed-off-by: Chris Larson <clarson@mvista.com>
2009-06-17base.bbclass: make git fail silently in the metadata scm bits.Chris Larson1
Signed-off-by: Chris Larson <clarson@mvista.com>
2009-05-14Shorten some full paths printed to the user.Chris Larson1
Adds a base_path_out convenience function, which prepares a full path for display to the user. The initial implementation just makes it relative to ${TOPDIR}. This function is then used for some messages outputted to the user (packaged-staging, patch application, clean, unpack tasks). Signed-off-by: Chris Larson <clarson@mvista.com>
2009-05-14First pass of cleanup of messages outputted to the user.Chris Larson1
OpenEmbedded outputs a lot of messages that the user is likely to never care about. We should only output something when it reflects upon their recipe (i.e. unpacking their sources, applying their patches), or is quite significant or unusual. Signed-off-by: Chris Larson <clarson@mvista.com>
2009-05-04base.bbclass: added 'gcc-3.4' to list of gcc3 versions (Debian systems)Marcin Juszkiewicz1
2009-05-03base.bbclass: check_gcc3 needs to check for gcc-3.4.6 first.Tom Rini1
Comment on what this function is used for primarily. The default gcc3-native that we build is called 'gcc-3.4.6' so look for that one first.
2009-04-30coreutils-native: make mandatory dep for all packagesRoman I Khimov1
Gives us guaranteed sane GNU coreutils on any host. Should greatly ease support for various non-GNU host systems and allow to safely remove some other native packages like 'install-native'. Acked-by: Otavio Salvador <otavio@ossystems.com.br>
2009-04-21base.bbclass: Combine all checksum.ini files found in BBPATHPetri Lehtinen1
This makes it possible for overlays to have checksum.ini. Signed-off-by: Petri Lehtinen <petri.lehtinen@inoi.fi> Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Chris Larson <clarson@kergoth.com> Acked-by: Otavio Salvador <otavio@ossystems.com.br>
2009-03-23base.bbclass: rstrip the git branch/revision.Chris Larson1
Signed-off-by: Chris Larson <clarson@mvista.com>
2009-03-23base.bbclass: Abort early if localpath() was unable to find a local file for ↵Chris Larson1
the url. Signed-off-by: Chris Larson <clarson@mvista.com>
2009-03-21base.bbclass: Fix typo.Chris Larson1
Signed-off-by: Chris Larson <clarson@kergoth.com>
2009-03-21base.bbclass: revert removal of base_set_filespath until the refs can be ↵Chris Larson1
removed. Also added a deprecation message to it. Signed-off-by: Chris Larson <clarson@kergoth.com>
2009-03-21base.bbclass: Add base_path_relative.Chris Larson1
base_path_relative returns a relative path from src to dest. Examples: >>> base_path_relative("/usr/bin", "/tmp/foo/bar") ../../tmp/foo/bar >>> base_path_relative("/usr/bin", "/usr/lib") ../lib >>> base_path_relative("/tmp", "/tmp/foo/bar") foo/bar Signed-off-by: Chris Larson <clarson@mvista.com>
2009-03-21bitbake.conf: Move the list of vars shown in the pre-build config display to ↵Chris Larson1
here. Now a distro or machine can add their own variables to display. Signed-off-by: Chris Larson <clarson@mvista.com>
2009-03-21base.bbclass: make oe_unpack_file of dirs use FILESPATH, not FILESDIR.Chris Larson1
Signed-off-by: Chris Larson <clarson@mvista.com>
2009-03-21classes/base.bbclass: Locate the scm base path via BBPATH.Chris Larson1
Currently, if the first item in BBFILES isn't in the main OE repository, the build fails entirely due to a ValueError. This isn't optimal. Rather than searching through BBFILES to find it, which could be slow when BBFILES contains thousands of files, let's just find base.bbclass and use that repository. Also, use better methods to find the git revision and branch, and identify the scm based on the existance of .svn/.git/_MTN to avoid calling out subprocesses unnecessarily. Signed-off-by: Chris Larson <clarson@mvista.com>
2009-03-21base.bbclass: Kill the 'Pkg' messages in the event handler.Chris Larson1
Now that bitbake operates at a task level, not a package level, the package messages are, at best, useless, and at worst, confusing for the user. Signed-off-by: Chris Larson <clarson@mvista.com>
2009-03-21bitbake.conf: rework FILESPATH generation.Chris Larson1
Rework FILESPATH generation to be done in bitbake.conf, avoiding the confusion about it being in multiple places. Adds FILESPATHBASE and FILESPATHPKG which can be manipulated rather than manipulating FILESPATH directly. One usage possibility: FILESPATHBASE =. "${TOPDIR}/files:" Which would let me provide a custom busybox config for this build by copying the defconfig from the openembedded metadata into my build/files/busybox-1.0/ directory, for example. Signed-off-by: Chris Larson <clarson@mvista.com>