summaryrefslogtreecommitdiff
path: root/classes/base.bbclass
AgeCommit message (Collapse)AuthorFiles
2010-04-08Using NotHandled/Handled in event handlers is deprecatedChris Larson1
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-03-27Fixed concurrency problem for ZIP packed recipes.Ihar Hrachyshka1
The problem occured when unzip-native is not yet staged, and ZIP archive unpacking already started resulting in failed do_unpack task. Added NEED_UNZIP_FOR_UNPACK variable to use in recipes which do_unpack with unzip utility but doesn't have '.zip' in SRC_URI (f.e. .EXE windows self-extraction binaries). Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com> Signed-off-by: Koen Kooi <koen@openembedded.org>
2010-03-23base.bbclass: add missing import of metadata_scmAntonio Ospite1
In commit 89b7e433719f43f1c36c76cb8856d559014e99bc metadata_scm.bbclass functions were factored out from base.bbclass, but the new file was not included. This prevented METADATA_SCM, METADATA_REVISION, METADATA_BRANCH to be set; for instance this caused oestats-client stop working. Signed-off-by: Antonio Ospite <ospite@studenti.unina.it> Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-03-21base.bbclass: add popen/system convenience functionsChristopher Larson1
Provides oe_popen, which is a subprocess.Popen wrapper that automatically provides our exported variables in the environment, including the PATH, and oe_system, which is just a wrapper that acts like system. Signed-off-by: Chris Larson <clarson@mvista.com> Acked-by: Tom Rini <tom_rini@mentor.com>
2010-03-19base: erk, don't remove do_setscene from EXPORT_FUNCTIONS, sillyChris Larson1
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-03-19Initial split of base.bbclassChris Larson1
Acked-by: Richard Purdie <rpurdie@linux.intel.com> Acked-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl> Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-03-19Don't inherit siteinfo in base.bbclassChris Larson1
Acked-by: Richard Purdie <rpurdie@linux.intel.com> Acked-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl> Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-03-19base.bbclass: Add note about base_path_relativeChris Larson1
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-03-15base.bbclass: fix quoting for md5/sha256 checksums checkingMarcin Juszkiewicz1
Signed-off-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
2010-03-15base.bbclass/bitbake.conf: Fix some string quoting to handle more unusual ↵Richard Purdie1
URLs (from Poky)
2010-03-11base: don't write to system /etc dir, use new STAGING_ETCDIR insteadMartin Jansa1
* ETCDIR instead SYSCONFDIR, because there already was STAGING_ETCDIR_NATIVE Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2010-03-11base: also stage ${sysconfdir}Phil Blundell1
2010-03-08base.bbclass: provide shortcut syntax for first anonymous entry in SRC_URIBernhard Reutner-Fischer1
2010-03-03qemu: Move gcc version check, qemu-TARGET logic into qemu.bbclassTom Rini1
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.
2010-03-02qemu: Perform our sanity checks based on ENABLE_BINARY_LOCALE_GENERATIONTom Rini1
Perform qemu-related checks not based on if we're ARM but based on if we'll be using qemu for binary locale generation. Clarify what the first of these sanity checks does. Next, change the check for a provided qemu binary to be generic enough to work on all arches (and catch distribution or user built versions of qemu). While we're in here, correct the gcc version check code in base.bbclass. Signed-off-by: Tom Rini <tom_rini@mentor.com> Acked-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Chris Larson <chris_larson@mentor.com>
2010-03-02base.bbclass: create tmp/legacy-staging.log file with names of recipes which ↵Marcin Juszkiewicz1
need work Signed-off-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
2010-02-25Revert "base.bbclass: use bb.utils.*_sum instead of calling md5/sha sum ↵Chris Larson1
commands" Back this out for the time being, things are exploding now. This reverts commit df32920678d15c86897b50b752b937210a01edea.
2010-02-25base.bbclass: use bb.utils.*_sum instead of calling md5/sha sum commandsRoss Burton1
Patch courtesy the Poky project. Signed-off-by: Chris Larson <clarson@mvista.com> Acked-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl> Acked-by: Tom Rini <tom_rini@mentor.com>
2010-02-11base.bbclass: handle xz compressed files and tarballsBernhard Reutner-Fischer1
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2010-02-01base.bbclass: in base_contains, check for var existance before using itBrian Pomerantz1
When using base_contains() to check for a string in a variable for a, if the variable is not defined an exception occurs. By checking the existance of the variable and returning false if it isn't there, a value can be checked for a variable regardless of whether or not it is defined. Signed-off-by: Brian Pomerantz <bapper@mvista.com> Signed-off-by: Chris Larson <clarson@mvista.com> Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl> Signed-off-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
2010-01-27base.bbclass: pre-create SRC_URI checksums to include in the recipeDenys Dmytriyenko1
Signed-off-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Frans meulenbroeks <fransmeulenbroeks@gmail.com>
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.